This is a quick cheat sheet on how to use hping3 to send a text file. Thanks Gr@ve Rose for inspiring this.
The target machine should be listening like so:
hping3 192.168.0.108 –listen signature –safe –icmp
The source machine should be set up like so:
hping3 192.168.0.108 –listen signature –safe –icmp
hping3 192.168.0.108 –icmp -d 100 -c 2 –sign signature –file ./test.txt
-d specifies the data size
-c specifies the number of pings to send. We just need 2 pings to send the test file below.
test.txt just contains lolspeak:
—- start —-
oh hai
we bustin pass dey bad fire wall
yay!
—- end —-
I haven’t tested this out with binary files, but I’m pretty optimistic that a uuencoded file would get through, and could be re-assembled at the target server. Also, hping3 can be used to turn on a network service like sshd if it receives the correct “signature”.