-1

I wanted to send data to the loop-back IP address 127.0.0.1 using the ping program. $ping 127.0.0.1 "my data" and wanted to see it in the kernel space. if anyone has some idea please respond to me

vasadia
  • 366
  • 5
  • 8
  • 1
    Is this purely academic or are you actually trying to carry a payload? There are much better ways to send data to the local machine. – Wug Sep 07 '12 at 18:47
  • Might be one of those data exilfration techniques like DNS tunneling, etc. – TheRealChx101 Oct 11 '19 at 12:33

1 Answers1

2

Use ping's -p option:

-p pattern
  You may specify up to 16 ``pad'' bytes to fill out the packet you send.
  This is useful for diagnosing data-dependent problems in a network.
  For example, -p ff will cause the sent packet to be filled with all ones.

David Schwartz
  • 179,497
  • 17
  • 214
  • 278