forked from NytroRST/ShellcodeCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeystoneLib.h
More file actions
30 lines (21 loc) · 534 Bytes
/
KeystoneLib.h
File metadata and controls
30 lines (21 loc) · 534 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
#ifndef KEYSTONELIB_H
#define KEYSTONELIB_H
#include <string>
#include <iostream>
#include <cstring>
#include "Platform.h"
// Keystone: http://www.keystone-engine.org/
#include "../Keystone/include/keystone/keystone.h"
#if defined _M_IX86
#pragma comment(lib, "../Keystone/keystone_win32.lib")
#elif defined _M_X64
#pragma comment(lib, "../Keystone/keystone_win64.lib")
#endif
using namespace std;
// Class to compile ASM
class KeystoneLib
{
public:
static unsigned char* Assemble(size_t *p_pSize, string p_sASM);
};
#endif