1

Is there any way to customize the icmp echo response a Linux machine sends back when someone pings it? Say I ping my PC at home and I want it to send a few bytes of preset data back, a message in ASCII for example. I know that I can send data to someone through the ping command with the -p option and that it just sends that same data back, so I guess it is possible to somehow customize the data, only how?

I do know C++ so I can program an icmp client if necessary

1 Answer 1

1

I initially wrote that you could not do it, but then, Googling around, I found this link. It mentions a program, Loki, which does exactly what you propose, but apparently in more mischevious ways than you originally considered. The deb package mentioned above does not include source code, but you can find that here.

I will be studying it as you read this.

1
  • Thank you very much. Im still struggling with some python issues though. I really dont like python and my PC seems to have the same opinion. So I'm editing the code so it runs correctly, cause it seems to be written for python 3 whereas im running 2 even though 3 is installed as well. But oh well, I'll get it to work somehow, or I'll just run kali in a VM Sep 21, 2015 at 21:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .