312-50V13 · Question #335
You want to do an ICMP scan on a remote computer using hping2. What is the proper syntax?
The correct answer is D. hping2 -1 host.domain.com. hping2 ICMP Scan Syntax Option D (hping2 -1 host.domain.com) is correct because the -1 flag (the number one) tells hping2 to use ICMP mode, sending ICMP echo request packets - similar to a traditional ping but with more control and flexibility. Why the distractors are wrong: Opti
Question
Options
- Ahping2 host.domain.com
- Bhping2 --set-ICMP host.domain.com
- Chping2 -i host.domain.com
- Dhping2 -1 host.domain.com
How the community answered
(40 responses)- A3% (1)
- B5% (2)
- C3% (1)
- D90% (36)
Explanation
hping2 ICMP Scan Syntax
Option D (hping2 -1 host.domain.com) is correct because the -1 flag (the number one) tells hping2 to use ICMP mode, sending ICMP echo request packets - similar to a traditional ping but with more control and flexibility.
Why the distractors are wrong:
- Option A (
hping2 host.domain.com) uses no flags, which means hping2 defaults to TCP mode on port 0, not ICMP. - Option B (
--set-ICMP) is completely fabricated syntax - this flag does not exist in hping2. - Option C (
-i) is a valid hping2 flag, but it sets the interval between packets, not the protocol type.
Memory Tip: Think of -1 as shorthand for "ICMP = 1", since ICMP is IP Protocol Number 1. Similarly, -2 enables UDP mode - so the number maps to a protocol! If you remember that ICMP has protocol number 1, you'll never confuse -1 with anything else.
Topics
Community Discussion
No community discussion yet for this question.