ExamGecko
Question list
Search
Search

Related questions











Question 358 - 312-50v12 discussion

Report
Export

You want to do an ICMP scan on a remote computer using hping2. What is the proper syntax?

A.
hping2 host.domain.com
Answers
A.
hping2 host.domain.com
B.
hping2 --set-ICMP host.domain.com
Answers
B.
hping2 --set-ICMP host.domain.com
C.
hping2 -i host.domain.com
Answers
C.
hping2 -i host.domain.com
D.
hping2 -1 host.domain.com
Answers
D.
hping2 -1 host.domain.com
Suggested answer: D

Explanation:

http://www.carnal0wnage.com/papers/LSO-Hping2-Basics.pdf

Most ping programs use ICMP echo requests and wait for echo replies to come back to test connectivity. Hping2 allows us to do the same testing using any IP packet, including ICMP, UDP, and TCP. This can be helpful since nowadays most firewalls or routers block ICMP. Hping2, by default, will use TCP, but, if you still want to send an ICMP scan, you can. We send ICMP scans using the -1 (one) mode. Basically the syntax will be hping2 -1 IPADDRESS

[root@localhost hping2-rc3]# hping2 -1 192.168.0.100

HPING 192.168.0.100 (eth0 192.168.0.100): icmp mode set, 28 headers + 0 data bytes

len=46 ip=192.168.0.100 ttl=128 id=27118 icmp_seq=0 rtt=14.9 ms

len=46 ip=192.168.0.100 ttl=128 id=27119 icmp_seq=1 rtt=0.5 ms

len=46 ip=192.168.0.100 ttl=128 id=27120 icmp_seq=2 rtt=0.5 ms

len=46 ip=192.168.0.100 ttl=128 id=27121 icmp_seq=3 rtt=1.5 ms

len=46 ip=192.168.0.100 ttl=128 id=27122 icmp_seq=4 rtt=0.9 ms

— 192.168.0.100 hping statistic —

5 packets tramitted, 5 packets received, 0% packet loss

round-trip min/avg/max = 0.5/3.7/14.9 ms

[root@localhost hping2-rc3]#

asked 18/09/2024
Ali Reza Farahnak
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first