IT Questions and Answers :)

Wednesday, August 14, 2019

Which of these is NOT a valid ping command

Which of these is NOT a valid ping command

  • ping 0x08080808
  • ping 8.8.8.8 google.com
  • ping 127.1
  • ping 01002004010 

 
Which of these is NOT a valid ping command

EXPLANATION

PING 127.1 is a valid command because it is a short form of 127.0.0.1, same as IPv6 addresses, IPv4 addresses can be shortened by removing leading zeroes. See page 4 of RFC3513
PING 01002004010 is a valid ping command as it is the octal number form of 8.8.8.8.
PING 0x08080808 is a valid ping command as it is the hex number form of 8.8.8.8

PING 8.8.8.8 google.com is NOT valid because of multiple destinations referenced.
See the ping man page.
These conversions may not be useful for day to day IT pros, but in security, it is a huge threat as skilled attackers can use this technique to conceal their IPs from Web Application Firewalls (WAF) since these firewalls only have rules created for IP addresses.
This tool converts IP to different number formats (it's not limited to IP addresses, other bidirectional formats are available)
P.S This question stemmed from this tweet

SOURCE

https://tools.ietf.org/html/rfc3513
Share:

0 comments:

Post a Comment

Popular Posts