Score:0

hping3 in scan mode crafting UDP packets with bad length:

es flag

I'm attempting to scan UDP ports 1-1000 using HPing3 and so to this end enter the following:

sudo hping3 -2 192.168.1.2 --scan 1-1000 -V

I know that UDP port 1 is not closed and should be responding with a RST, ACK(Based on Nmap scan results), yet I get no response. I then Inspected the packets in wireshark and notice that the info field for the packets sent by Hping contain the following text:

Length: 31298 (bogus, payload length 20)
    [Expert Info (Error/Malformed): Bad length value 31298 > IP payload length]

I then tried the same command using -p instead ie.

sudo hping3 -2 192.168.1.2 -p 1 -V

And get the ICMP unreachable response I was expecting. I prefer to use --scan as it lists results in a more friendly format and can be used for mass port scanning. Please assist.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.