-h --help | Show an help screen on standard output, so you can pipe to less. | help + man |
-v --version | Show version information and API used to access to data link layer, linux sock packet or libpcap. | help + man |
-c --count | Stop after sending (and receiving) count response packets. | help + man |
-i --interval | Wait the specified number of seconds or micro seconds between sending each packet. | help + man |
--fast | alias for -i u10000 (10 packets for second) | help + man |
--faster | alias for -i u1000 (100 packets for second) | help + man |
--flood | Sent packets as fast as possible, without taking care to show incoming replies. | help + man |
-n --numeric | Numeric output only, No attempt will be made to lookup symbolic names for host addresses. | help + man |
-q --quiet | --quiet quiet | help + man |
-I --interface | By default on linux and BSD systems hping2 uses default routing interface. | help + man |
-V --verbose | --verbose verbose mode | help + man |
-D --debug | Enable debug mode, it's useful when you experience some problem with hping2. | help + man |
-z --bind | Bind CTRL+Z to time to live (TTL) so you will able to increment/decrement ttl of outgoing packets pressing CTRL+Z once or twice. | help + man |
-Z --unbind | Unbind CTRL+Z so you will able to stop hping2. | help + man |
--beep | Beep for every matching received packet (but not for ICMP errors). | help + man |
-0 | --rawip RAW IP mode | help |
-1 | --icmp ICMP mode | help |
-2 | --udp UDP mode | help |
-8 | --scan SCAN mode. | help |
-9 | --listen listen mode | help |
-a --spoof | Use this option in order to set a fake IP source address, this option ensures that target will not gain your real address. | help + man |
--rand-dest | This option enables the random destination mode. | help + man |
--rand-source | This option enables the random source mode. | help + man |
-t --ttl | Using this option you can set TTL (time to live) of outgoing packets, it's likely that you will use this with --traceroute or --bind options. | help + man |
-N --id | --id id (default random) | help + man |
-W --winid | id from Windows systems before Win2k has different byte ordering, if this option is enable hping2 will properly display id replies from those Windows. | help + man |
-r --rel | --rel relativize id field (to estimate host traffic) | help + man |
-f --frag | Split packets in more fragments, this may be useful in order to test IP stacks fragmentation performance and to test if some packet filter is so weak that can be passed using tiny fragments… | help + man |
-x --morefrag | Set more fragments IP flag, use this option if you want that target host send an ICMP time-exceeded during reassembly. | help + man |
-y --dontfrag | Set don't fragment IP flag, this can be used to perform MTU path discovery. | help + man |
-g --fragoff | --fragoff set the fragment offset | help + man |
-m --mtu | Set different 'virtual mtu' than 16 when fragmentation is enabled. | help + man |
-o --tos | Set Type Of Service (TOS), for more information try --tos help. | help + man |
-G --rroute | --rroute includes RECORD_ROUTE option and display the route buffer | help + man |
--lsrr | loose source routing and record route | help |
--ssrr | strict source routing and record route | help |
-H --ipproto | --ipproto set the IP protocol field, only in RAW IP mode | help + man |
-C --icmptype | Set icmp type, default is ICMP echo request (implies --icmp). | help + man |
-K --icmpcode | Set icmp code, default is 0 (implies --icmp). | help + man |
--icmp-gw | set gateway address for ICMP redirect (default 0.0.0.0) | help |
--icmp-ts | Alias for --icmptype 13 (to send ICMP timestamp requests). | help + man |
--icmp-addr | Alias for --icmptype 17 (to send ICMP address mask requests). | help + man |
--icmp-help | display help for others icmp options | help |
-s --baseport | hping2 uses source port in order to guess replies sequence number. | help + man |
-p | --destport [+][+]<port> destination port(default 0) ctrl+z inc/dec | help |
-k | --keep keep still source port | help |
-w --win | --win winsize (default 64) | help + man |
-O --tcpoff | --tcpoff set fake tcp data offset (instead of tcphdrlen / 4) | help + man |
-Q --seqnum | This option can be used in order to collect sequence numbers generated by target host. | help + man |
-b --badcksum | --badcksum (try to) send packets with a bad IP checksum many systems will fix the IP checksum sending the packet so you'll get bad UDP/TCP checksum instead. | help + man |
-M --tcpseq | --setseq set TCP sequence number | help + man |
-L --tcpack | --setack set TCP ack | help + man |
-F --fin | --fin set FIN flag | help + man |
-S --syn | --syn set SYN flag | help + man |
-R --rst | --rst set RST flag | help + man |
-P --push | --push set PUSH flag | help + man |
-A --ack | --ack set ACK flag | help + man |
-U --urg | --urg set URG flag | help + man |
-X --xmas | --xmas set X unused flag (0x40) | help + man |
-Y --ymas | --ymas set Y unused flag (0x80) | help + man |
--tcpexitcode | Exit with last received packet tcp->th_flag as exit code. | help + man |
--tcp-timestamp | Enable the TCP timestamp option, and try to guess the timestamp update frequency and the remote system uptime. | help + man |
--clock-skew | enable clock skew detection. | help |
-d --data | --data data size (default is 0) | help + man |
-E --file | Use filename contents to fill packet's data. | help + man |
-e --sign | Fill first signature length bytes of data with signature. | help + man |
-j --dump | Dump received packets in hex. | help + man |
-J --print | Dump received packets' printable characters. | help + man |
-B --safe | Enable safe protocol, using this option lost packets in file transfers will be resent. | help + man |
-u --end | If you are using --file filename option, tell you when EOF has been reached. | help + man |
-T --traceroute | --traceroute traceroute mode (implies --bind and --ttl 1) | help + man |
--tr-stop | If this option is specified hping will exit once the first packet that isn't an ICMP time exceeded is received. | help + man |
--tr-keep-ttl | Keep the TTL fixed in traceroute mode, so you can monitor just one hop in the route. | help + man |
--tr-no-rtt | Don't calculate/show RTT information in traceroute mode | help + man |
--apd-send | Send the packet described with APD (see docs/APD.txt) | help |
--icmp-ipver | Set IP version of IP header contained into ICMP data, default is 4. (in the manual page but not in --help) | man |
--icmp-iphlen | Set IP header length of IP header contained into ICMP data, default is 5 (5 words of 32 bits). (in the manual page but not in --help) | man |
--icmp-iplen | Set IP packet length of IP header contained into ICMP data, default is the real length. (in the manual page but not in --help) | man |
--icmp-ipid | Set IP id of IP header contained into ICMP data, default is random. (in the manual page but not in --help) | man |
--icmp-ipproto | Set IP protocol of IP header contained into ICMP data, default is TCP. (in the manual page but not in --help) | man |
--icmp-cksum | Set ICMP checksum, for default is the valid checksum. (in the manual page but not in --help) | man |
--keep | keep still source port, see --baseport for more information. (in the manual page but not in --help) | man |