{"id":287,"date":"2008-10-09T08:54:38","date_gmt":"2008-10-09T16:54:38","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=287"},"modified":"2008-10-09T08:54:38","modified_gmt":"2008-10-09T16:54:38","slug":"sending-files-with-hping3","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/10\/09\/sending-files-with-hping3\/","title":{"rendered":"Sending Files with hping3"},"content":{"rendered":"<p>This is a quick cheat sheet on how to use hping3 to send a text file. Thanks Gr@ve Rose for inspiring this.<\/p>\n<p>The target machine should be listening like so:<\/p>\n<p>hping3 192.168.0.108 &#8211;listen signature &#8211;safe &#8211;icmp<\/p>\n<p>The source machine should be set up like so:<br \/>\nhping3 192.168.0.108 &#8211;listen signature &#8211;safe &#8211;icmp<br \/>\nhping3 192.168.0.108 &#8211;icmp -d 100  -c 2 &#8211;sign signature &#8211;file .\/test.txt<\/p>\n<p>-d specifies the data size<br \/>\n-c specifies the number of pings to send. We just need 2 pings to send the test file below.<\/p>\n<p>test.txt just contains lolspeak:<br \/>\n&#8212;- start &#8212;-<br \/>\noh hai<br \/>\nwe bustin pass dey bad fire wall<br \/>\nyay!<br \/>\n&#8212;- end &#8212;-<\/p>\n<p>I haven&#8217;t tested this out with binary files, but I&#8217;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 &#8220;signature&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211;listen signature &#8211;safe &#8211;icmp The source machine should be set up like so: hping3 192.168.0.108 &#8211;listen signature &#8211;safe &#8211;icmp hping3 192.168.0.108 &#8211;icmp -d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[170,4],"tags":[],"class_list":["post-287","post","type-post","status-publish","format-standard","hentry","category-command-line","category-how-to"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}