nerdexam
EC-Council

312-50V11 · 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. The hping2 flag -1 sets the tool to ICMP mode, enabling ICMP-based host scanning similar to a standard ping.

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

(34 responses)
  • A
    94% (32)
  • B
    3% (1)
  • C
    3% (1)

Why each option

The hping2 flag -1 sets the tool to ICMP mode, enabling ICMP-based host scanning similar to a standard ping.

Ahping2 -1 host.domain.comCorrect

In hping2, the -1 flag explicitly selects ICMP as the transport protocol, causing the tool to send ICMP echo request packets to the target. This is the correct and documented syntax for performing an ICMP scan and is analogous to using ping but with hping2's extended options.

Bhping2-i host.domain.com

The -i flag in hping2 controls the interval (time delay) between sent packets, not the protocol type, so this command would use the default TCP mode with a specified interval.

Chping2 -set-ICMP host.domain.com

'-set-ICMP' is not a valid hping2 flag; hping2 uses short POSIX-style flags such as -1 (ICMP), -2 (UDP), and -S (TCP SYN).

Dhping2 host.domain.com

Running hping2 without any protocol flag defaults to TCP mode, not ICMP, so no ICMP packets would be sent to the target.

Concept tested: hping2 ICMP scan flag syntax

Source: https://linux.die.net/man/8/hping2

Topics

#hping2#ICMP scan#network scanning tools#ping sweep

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice