nerdexam
EC-Council

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.

Scanning Networks

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)
  • A
    88% (15)
  • B
    6% (1)
  • D
    6% (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.

Ahping2 -1 host.domain.comCorrect

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.

Bhping2-i host.domain.com

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.

Chping2 -set-ICMP host.domain.com

--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.

Dhping2 host.domain.com

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

#hping2#ICMP scan#network scanning#CLI syntax

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice