9,505
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include<Windows.h>
char shellcode[]=
"\x66\x81\xec\x40\x04"
"\x33\xdb"
"\x53"
"\x68\x77\x65\x73\x74"
"\x68\x66\x61\x69\x6c"
"\x8b\xc4"
"\x53"
"\x50"
"\x53"
"\xb8\x90\x7e\x07\x77" //messagebox
"\xff\xd0"
"\x53"
"\xb8\x10\x3a\xf1\x74" //exit
"\xff\xd0";
int main()
{
int addr =(int)shellcode;
_asm
{
mov eax, addr
push eax
ret
}
getchar();
return 0;
}