当前位置:网站首页>Analysis of header NAT & DHCP protocol
Analysis of header NAT & DHCP protocol
2022-04-22 02:14:00 【Bad bad-5】
- One key deployment
- In the command line interface, copy the following script to the new script file
- Execute the script
- test
NAT Protocol analysis
#!/bin/bash
# The first level
cat > /home/headless/Desktop/workspace/myshixun/message-1.txt << EOF client IP:192.168.1.100 Source IP And port :192.168.1.100;4335 Purpose IP And port :64.233.169.104;80 from Google The server receives the corresponding status code 200、 state OK Of HTTP Time to respond to the message :7.158797s Carry status code 200、 state OK Of HTTP In response to the message IP Source on datagram IP Address and port :64.233.169.104;80 Carry status code 200、 state OK Of HTTP In response to the message IP The purpose of the datagram IP Address and port :192.168.1.100;4335 EOF
# The second level
cat > /home/headless/Desktop/workspace/myshixun/message-2.txt << EOF The news appears in NAT_ISP_side The time to track the file is :6.069168s Host this HTTP GET News IP The source of the datagram IP And the ports are :71.192.34.104;4335 Host this HTTP GET News IP The purpose of the datagram IP And the ports are :64.233.169.104;80 Compare two trace files ,HTTP GET Whether any fields in the message have changed : no EOF
DHCP Protocol analysis
#!/bin/bash
# The first level
cat > /home/headless/Desktop/workspace/myshixun/message-1.txt <<EOF DHCP The message is through UDP still TCP Sent :UDP DHCP Find out ,DHCP Provide ,DHCP Request and DHCP ACK Of Transaction-ID What are the values ? DHCP Find out :0x3e5e0ce3 DHCP Provide :0x3e5e0ce3 DHCP request :0x3e5e0ce3 DHCP ACK:0x3e5e0ce3 The link layer address of the host :00:08:74:4f:36:23 EOF
# The second level
cat > /home/headless/Desktop/workspace/myshixun/message-2.txt <<EOF This machine DHCP The server IP The address is :192.168.1.1 IP How long is the lease ( Company s):86400s EOF
All of the above are original , If unknown or wrong , Please point out .
版权声明
本文为[Bad bad-5]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220208011465.html
边栏推荐
- Unity3d RPG role playing game source code (top and bottom) --- source code analysis ----- 01 ------ protagonist character animation
- Advanced Android interview answer, full analysis of gradle source code
- Introduction to Alibaba's super large-scale Flink cluster operation and maintenance system
- PMSM or im12 sector model predictive torque control
- Longest common substring
- Leetcode 1539, the kth missing positive integer
- 头歌 DHCP服务配置
- What methods can be used to generate sort scan operators, query SQL parsing to generate ast, and then transform to generate physical execution plan?
- Stack and queue
- 树、二叉树和森林的转换
猜你喜欢

The difference between B tree and B + tree

Page 49 information planning and digital transformation of petroleum and petrochemical industry

Advanced Android interview answer, full analysis of gradle source code

Transformation of trees, binary trees and forests
![[check which package provides the installed packages and commands]](/img/d8/ce76b177937b46c12469ea2bddf565.png)
[check which package provides the installed packages and commands]

Jetcode prize essay solicitation activity | interesting stories of low code industry waiting for you to share

Advanced file IO of system programming (12) -- blocking and non blocking reading

R language generalized linear model GLM: linear least squares, logarithmic transformation, Poisson, binomial logistic regression analysis, ice cream sales time series data and simulation

Why won't MySQL lose data when the power is suddenly off? (Collection)

Leetcode1470. Rearrange array
随机推荐
The youqilin 22.04 lts version system will be released on April 22, equipped with the new ukui 3.1
MySQL modifies a field to auto increment
Leetcode2016. Maximum difference between incremental elements
Leetcode 1572, sum of diagonal elements of matrix
Use of greendao;
编程主要学什么
[pytorch image classification] alexnet network structure
JMeter + Jenkins + ant persistence
Target motion model - uniform motion CV
Tensorflow 2. Chapter 5: Data Preprocessing
Detailed explanation of transaction isolation level
Page 50 JD cloud · Ruiqing - building an agile engine for enterprise digital transformation business midrange solution
13.系统软件安装方式
高级面试题 解析,阿里巴巴发布“限量版”Android零基础宝典
Advanced Android interview answer, full analysis of gradle source code
Leetcode 3. Longest substring without repeated characters
[programming question] character set
PaddlePaddle basic usage details (four), PaddlePaddle training text classification model
项目搭建之代码规范化解决方案
SSLHandshakeException