forked from TonyChen56/ShellCodeFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.start.cpp
More file actions
31 lines (27 loc) · 701 Bytes
/
a.start.cpp
File metadata and controls
31 lines (27 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "header.h"
#include "api.h"
__declspec(naked)void ShellCodeStart()
{
__asm
{
jmp ShellCodeEntry;
}
}
//************************************************************
// 函数名称: ShellCodeEntry
// 函数说明: 真正的ShellCode代码
// 作 者: GuiShou
// 时 间: 2019/5/19
// 参 数: void
// 返 回 值: void
//************************************************************
void ShellCodeEntry()
{
Functions fn;
//动态获取所有需要的函数指针
Initfunctions(&fn);
//调用MessageBox
char szText[] = { 'H', 'e', 'l', 'l', 'o', ' ', 'G', 'u', 'i', 'S', 'h', 'o', 'u', 0 };
char szCaption[] = { 'T', 'i', 'p', 0 };
fn.fnMessageBoxA(NULL, szText, szCaption, MB_OK);
}