Skip to main content


We can start by performing simple pings with hping:

hping3 -1
# -1, is the ICMP mode
# so this is equivalent to a ping

We can also set another kind of ICMP request with the -C option by doing:

hping -1 -C 13
# -1, is the ICMP mode
# -C 13, sets the ICMP request to type 13

For example an interesting case can be:

hping -1 -C 17

An ICMP type 17 message is an Address Mask Request, that is a request that triggers a remote system to respond with a list of its related subnets, as well as its default gateway and broadcast address via an ICMP type 18 Address Mask Reply datagram.