資源簡介
本程序開發(fā)環(huán)境為VC6.0,將匯編語言轉(zhuǎn)為C語言或unicode的shellcode形式并保存在記事本中。
代碼片段和文件信息
#include?“windows.h“
#include?“stdio.h“?
#if?1
void?test()
{
printf(“aa“);
}
int?main()
{
unsigned?char?*p=NULL;
int?i=0;
????LoadLibraryA(“kernel32.dll“);//4c801d7b?
?????//WinExec(“calc.exe“SW_SHOW);
int?ShellCodeSize=0;
char?*?ShellCodeAddr;
?????__asm
?????{
?PUSHAD;
?JMP?L1;
L2:
?POP?ESI;
?MOV?ShellCodeAddrESI;
?LEA?ECXShellCodeEnd;
?LEA?EDXShellCodeBegin;
?SUB?ECXEDX;
?MOV?ShellCodeSizeECX;
?POPAD;
?JMP?ShellCodeEnd;
L1:?CALL?L2;
//ShellCode?代碼
ShellCodeBegin:
?????????push????ebp;
?????????mov????????ebpesp;
?????????xor?eaxeax;
?????????push?eax;
?????????sub?esp08h;
?????????mov?byte?ptr?[ebp-0Ch]63h;?//c
?????????mov?byte?ptr?[ebp-0Bh]61h;?//a
?????????mov?byte?ptr?[ebp-0Ah]6Ch;?//l
???????
評論
共有 條評論