Hping3
Description
Hping3 is an advanced packet crafting tool used for SYN scanning, UDP scanning, XMAS scanning, NULL scanning, and host discovery during network penetration testing.
Usage 1: SYN Scan on Specific Port
Send SYN packets to a specific port.
Command:
hping3 -S -p 80 -c 3 192.168.9.2
Usage 2: SYN Scan All Ports
Scan all ports on a target.
Command:
hping3 -S --scan all 192.179.0.1
Usage 3: UDP Scan
There are some services which run on UDP, in that case, this scan will help.
Command:
hping3 -2 --scan 1-100 192.179.0.1
Usage 4: XMAS Scan
Sets FIN, PUSH, and URG flags.
Command:
hping3 -F -P -U --scan 1-100 192.179.0.1 -c 3
Usage 5: NULL Scan
In case of NULL and XMAS scan, ports which do not respond are open.
Command:
hping3 --scan 1-100 192.179.0.1
Usage 6: Host Discovery (ICMP Ping)
Use ICMP to discover live hosts.
Command:
sudo hping3 -1 192.168.1.1 -c 3
Command (Random destination for subnet discovery):
sudo hping3 -1 192.168.0.x --rand-dest -I eth2