hping

 

 


package type

  • -S           # SYN
  • -S -A       # SYN + ACK
  • -S -A -F   # SYN + ACK + FIN

port

# port 443

-p 443

# 當對方 port 無開

ICMP Unreachable type=10 from ip=x.x.x.x name=UNKNOWN

# port 開了

len=46 ip=x.x.x.x ttl=64 DF id=0 sport=80 flags=SA seq=734 win=5840 rtt=0.2 ms

# Portscan TCP ports 100 to 110

--scan 100-110

# every N seconds

# Wait the specified number of seconds or  micro  seconds  between sending  each  packet. (Default: 1s)

# every 5 sec

-i 5

# every 10,000 microseconds send 1 packet, stop after 500 packets (uX = micro seconds (10^-6))

-i u10000 -c 500

# verbose

-V

Example:

#

hping3 -V -S 192.168.88.19 -p 443 -i u1000 -c 10000

10000 packets transmitted, 10000 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.6/1000.3 ms

# Send UDP packets with the data portion padded with 100 bytes to host example.com

hping example.com --udp -p 111 --data 100
 

 

Creative Commons license icon Creative Commons license icon