当前位置:网站首页>About hping streaming test tool
About hping streaming test tool
2022-07-19 10:43:00 【Bai Zhou's blog】
Introduce
hping yes Command line oriented for generating and parsing TCP/IP Protocol packet assembly / Open source tools for analysis , The latest version is hping3, It supports TCP,UDP,ICMP and RAW-IP agreement , With trace routing mode , Ability to send files between covered channels and many other functions , Support use tcl The script calls it automatically API
Case study
Construct two TCP flow ,UDP flow , And write the file
hping3 ${
server1_ip} -s 1000 -p 2000 -S > /tmp/tcping.txt
-s Refers to the source port
-p Point to the port
-S Use SNY Mark
Other uses
usage : hping3 host [options]
-h --help Display help
-v --version Display version
-c --count The number of packets sent
-i --interval The time between sending packets (uX namely X Microsecond , for example : -i u1000)
--fast equivalent -i u10000 ( Per second 10 A package )
--faster equivalent -i u1000 ( Per second 100 A package )
--flood Send packets as quickly as possible , Don't show replies .
-n --numeric Digital output , Symbolic output host address .
-q --quiet Quiet mode
-I --interface Network card interface ( Default routing interface )
-V --verbose Detailed mode
-D --debug Debugging information
-z --bind binding ctrl+z To ttl( The default is the destination port )
-Z --unbind Unbind ctrl+z key
--beep For each matching packet received, beep
Mode selection
default mode TCP // The default mode is TCP
-0 --rawip RAWIP Pattern , original IP Pattern . In this mode HPING It's going to send data IP head . Naked IP The way . Use RAWSOCKET The way .
-1 --icmp ICMP Pattern , In this mode HPING Will send IGMP Response , You can use it. --ICMPTYPE --ICMPCODE Option to send other types / Mode ICMP message .
-2 --udp UDP Pattern , By default ,HPING Will send UDP Message to the host 0 port , You can use it. --baseport --destport --keep Option specifies its mode .
-8 --scan SCAN mode. // Scanning mode Specify the port corresponding to the scan .
Example: hping --scan 1-30,70-90 -S www.target.host // scanning
-9 --listen listen mode // Monitor mode
IP Pattern
-a --spoof spoof source address // Source address spoofing . forge IP attack , The firewall won't record your true IP 了 , Of course, you can't receive the response package .
--rand-dest random destionation address mode. see the man. // Random destination address mode . Detailed use man command
--rand-source random source address mode. see the man. // Random source address mode . Detailed use man command
-t --ttl ttl ( Default 64) // modify ttl value
-N --id id ( Default Random ) // hping Medium ID value , The default value is random
-W --winid Use win* id Byte order // Use winid Pattern , For different operating systems .UNIX ,WINDIWS Of id Respond to different , This option allows you to ID Response and WINDOWS equally .
-r --rel relative id Field ( Estimate host traffic ) // change ID Of , It can make ID Ever decreasing output , See HPING-HOWTO.
-f --frag Split packets more frag. (may pass weak acl) // piecewise , You can test each other's or switch's fragment handling ability , default 16 byte .
-x --morefrag Set up more segmentation marks // A lot of debris , Teardrop attack .
-y --dontfrag Set no segmentation flag // Send unrecoverable IP debris , This will let you know more about MTU PATH DISCOVERY.
-g --fragoff set the fragment offset // Set the break offset .
-m --mtu Set the virtual maximum transmission unit , implies --frag if packet size > mtu // Set up a virtual MTU value , When more than mtu The time of segmentation .
-o --tos type of service (default 0x00), try --tos help // tos Field , default 0x00, Do my best ?
-G --rroute includes RECORD_ROUTE option and display the route buffer // Record IP route , Route buffer is displayed .
--lsrr Loose source routing and record routing // Loose source routing
--ssrr Strictly source routing and record routing // Strict source routing
-H --ipproto Set up IP Agreement field , Only in RAW IP Use... In mode // stay RAW IP Choose from the pattern IP agreement . Set up ip Protocol domain , Only in RAW ip Mode use .
ICMP Pattern
-C --icmptype icmp type ( Default echo request ) // ICMP type , Default echo request .
-K --icmpcode icmp Code name ( Default 0) // ICMP Code .
--force-icmp Send all icmp type ( By default, only supported types are sent ) // mandatory ICMP type .
--icmp-gw Set up ICMP Redirect gateway address ( Default 0.0.0.0) // ICMP Redirect
--icmp-ts equivalent --icmp --icmptype 13 (ICMP Time stamp ) // icmp Time stamp
--icmp-addr equivalent --icmp --icmptype 17 (ICMP Address subnet mask ) // icmp Subnet address
--icmp-help Show others icmp Option help // ICMP help
UDP/TCP Pattern
-s --baseport base source port (default random) // Default random source port
-p --destport [+][+]<port> destination port(default 0) ctrl+z inc/dec // Default random source port
-k --keep keep still source port // Keep the source port
-w --win winsize (default 64) // win Sliding window of .windows Send byte ( Default 64)
-O --tcpoff set fake tcp data offset (instead of tcphdrlen / 4) // Set forgery tcp Data offset ( replace tcp Address length divided by 4)
-Q --seqnum shows only tcp sequence number // Show only tcp Serial number
-b --badcksum ( Try ) Send with error IP Checksum packet . Many systems will fix the problem of sending packets IP The checksum . So you get the wrong UDP/TCP The checksum .
-M --setseq Set up TCP Serial number
-L --setack Set up TCP Of ack ------------------------------------- ( No TCP Of ACK Sign a )
-F --fin set FIN flag
-S --syn set SYN flag
-R --rst set RST flag
-P --push set PUSH flag
-A --ack set ACK flag ------------------------------------- ( Set up TCP Of ACK sign position )
-U --urg set URG flag // A lot of IP Setting of holding head .
-X --xmas set X unused flag (0x40)
-Y --ymas set Y unused flag (0x80)
--tcpexitcode Use last tcp-> th_flags As an exit code
--tcp-mss Enable with the given value TCP MSS Options
--tcp-timestamp Enable TCP Timestamp option to guess HZ/uptime
边栏推荐
- 双向NAT技术
- R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize dot strip plot, and set the add parameter to mean_ SD add the mean standard deviation vertical line and s
- SAP AppGyver 的 Universal Theme System 使用介绍
- 读已提交级别下 注解事务+分布式锁结合引起的事故--活动购买机会的错乱
- 华为机试:报文解压缩
- Take a look at this ugly face | MathWorks account unavailable - technical issue
- antd表单设置数组字段
- 机器学习模型的评估方法
- win10开始键点击无响应
- Leetcode ugly number problem solution
猜你喜欢

LeetCode 2319. 判断矩阵是否是一个 X 矩阵

高数_第1章空间解析几何与向量代数__点到平面的距离

Pytorch学习记录2 线性回归(Tensor,Variable)

NAT技术及NAT ALG

常见集合特性

如何在双链笔记软件中建立仪表盘和知识库?以嵌入式小组件库 NotionPet 为例

Figure an introduction to the interpretable method of neural network and a code example of gnnexplainer interpreting prediction

架构实战营|模块7

HCIA static basic experiment 7.8

Domestic flagship mobile phones have a serious price foam, and second-hand phones are more cost-effective than new ones, or buy iPhones
随机推荐
【华为云IoT】读书笔记之《万物互联:物联网核心技术与安全》第3章(下)
CPU负载与CPU使用率之区别
Stream stream
华为防火墙认证技术
手机键盘(模拟题)
String类型函数传递问题
架构实战营|模块7
R language uses LM function to build linear regression model, and uses subset function to specify the subset of data set to build regression model (uses subset function to filter the data subset that
「百度一面」怒喷面试官!不就是树遍历时增加一个行号?
SAP ABAP CDS view 视图的 Replacement 技术介绍
【在vivado中调ila IP核】
ROS 重名
Job: enter an odd number of 1-100
vulnhub inclusiveness: 1
[PostgreSQL] PostgreSQL 15 optimizes distinct
The R language uses the plot function in the native package (basic import package, graphics) to visualize the scatter plot
NAT技术及NAT ALG
SAP Fiori Launchpad 上看不到任何 tile 应该怎么办?
Leetcode ugly number problem solution
移植吴恩达深度学习01机器学习和神经网络第二周神经网络基础编程作业选修作业到pycharm