312-50V10 · Question #151
You want to do an ICMP scan on a remote computer using hping2. What is the proper syntax?
The correct answer is A. hping2 -1 host.domain.com. hping2 uses single-character flags to specify packet types, and -1 is the flag that enables ICMP mode for sending ICMP echo request packets.
Question
You want to do an ICMP scan on a remote computer using hping2. What is the proper syntax?
Options
- Ahping2 -1 host.domain.com
- Bhping2-i host.domain.com
- Chping2 -set-ICMP host.domain.com
- Dhping2 host.domain.com
How the community answered
(17 responses)- A88% (15)
- B6% (1)
- D6% (1)
Why each option
hping2 uses single-character flags to specify packet types, and -1 is the flag that enables ICMP mode for sending ICMP echo request packets.
The -1 flag instructs hping2 to operate in ICMP mode, causing it to send ICMP echo request (ping) packets to the specified target host - this is the correct and standard syntax for performing an ICMP-based scan with hping2.
hping2-i is invalid syntax because there is no space between the command and the flag; additionally, -i in hping2 sets the interval in microseconds between sent packets, not the ICMP packet type.
--set-ICMP is not a valid hping2 option; hping2 does not use long-form flags in this format, and the correct ICMP mode flag is simply -1.
Running hping2 without any mode flag defaults to TCP mode targeting port 0, not ICMP mode, so no ICMP packets would be sent to the target.
Concept tested: hping2 ICMP mode flag and scan syntax
Source: http://www.hping.org/manpage.html
Topics
Community Discussion
No community discussion yet for this question.