On analyzing ping request and reply from a windows system to Linux. It was observed that the windows ping request payload was
"abcdefghijklmnopqrstuvwabcdefghi" with size 32 bytes
Could this behavior be mimicked in any other system like Linux, means could someone create a ping request from Linux to impersonate as a windows ping request,
ping -t 128 -s 40 192.2.x.x ,
the above command in kali linux, gives ping request packet with icmp time stamp in linux (84 byte frame size)
Questions:
- can os footprinting be done using icmp packet analysis and how
- can someone send ping packets from linux with windows ping structure
- how to modify icmp payload in linux to abcdefghijklmnopqrstuvwabcdefghi
- why ping packets in linux gives time stamp , and is there away to send them without it
New to wireshark, and icmp. Thank you so much for help
ping -s32 -p$(echo 'abcdefghijklmnop' | hexdump -e '"%02X"') 8.8.8.8
will get you close;-s
specifies the size;-p
specifies a pattern (in hex). The standard Linuxping -p
will only accept 16 bytes for its repeating pattern (a-p
), though, whereas the Windowsping
uses a 24-byte repeating pattern (a-w
), so the Linux one is effectively sendingabcdefghijklmnopabcdefghijklmnop
.nping
would probably be more-suitable, as it allows you to specify a full payload.ping
command doesn't give you an exact means to duplicate the pattern of a Windowsping.exe
, doesn't mean that someone couldn't ever duplicate it with some custom ICMP-generating code. Any requirement that has you trying to detect Windows machines based on their ping traffic alone is a requirement I would consider trying to get myself out of...