Crafting TCP and UDP Packets
# Send a specific number of packets to a host (three in this case)
hping3 -c 3 <ip address>
# --scan parameter defines the port range to scan
# -S represent SYN flag
hping3 --scan 1-3000 -S <ip address>
# Perform UDP packet crafting
hping3 <ip address> --udp --rand-source --data 500
# Send a TCP SYN request to the target machine
# -S will perform TCP SYN
# -p will pass the traff through the port assigned
# -c is the count of the packets sent to the target machine
hping3 -S <ip address> -p 80 -c 5
# Send a flood of TCP packets
hping3 <ip address> --flood
Last updated