Simpatie.ro - matrimoniale
H4cky0u Forum
Tutoriale de toate tipurile
Nou pe simpatie:
deeazuzu82 pe Simpatie
Femeie
24 ani
Cluj
cauta Barbat
27 - 62 ani
H4cky0u ForumReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
H4cky0u Forum / C/C++/C# /

[C++] Shellcode Example

Pagini: 1 Moderat de PaiN
#1
GaMa
Administrator
Postari: 205
Instructiuni:

Code:

USER32
push 0
push edx
push ebx
push 0
mov ebx, ecx
call ebx
RET

Cod:

Code:

#include "stdafx.h"
#include <Windows.h>

const char *ShellCode = ("\x6A\x00\x52\x53\x6A\x00\x89\xCB\xFF\xD3\xC3");
const char *lol = "LOLDUDE";
const char *lol2 = "O_O";

int _tmain(int argc, _TCHAR* argv[])
{
    void *pvMessageBox = GetProcAddress(GetModuleHandleA("user32.dll"),"MessageBoxA");
    __asm
    {
        mov ecx, pvMessageBox
        mov edx, [lol]
        mov ebx, [lol2]
        mov esi, ShellCode
        call esi
    }
    return 0;
}



 
   
Pagini: 1  
Mergi la