forked from NytroRST/ShellcodeCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeclaredStates.h
More file actions
62 lines (40 loc) · 1.03 KB
/
DeclaredStates.h
File metadata and controls
62 lines (40 loc) · 1.03 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef DECLAREDSTATES_H
#define DECLAREDSTATES_H
#include <string>
#include <vector>
#include "DeclaredFunctions.h"
#include "FunctionCalls.h"
using namespace std;
// Special characters
#define CHR_READ_ALPHANUMSTR '\x01'
#define CHR_READ_NUMBER '\x02'
// Structures used by the states
class DeclaredStates
{
public:
// Transform struct
struct State;
struct Transform
{
char Character;
State* NextState;
};
// State struct
struct State
{
string Data = "";
bool Process = false;
vector<Transform> Transforms;
string Name = "";
void(*ProcessStateData)(string);
};
// Process data for FUNCTION STRING PARAMETER
static void ProcessStateData_FunctionCallStringArg(string p_sString);
// Process data for FUNCTION INT PARAMETER
static void ProcessStateData_FunctionCallIntArg(string p_sString);
// Process data for FUNCTION NAME
static void ProcessStateData_FunctionName(string p_sString);
// Process data for FUNCTION DLL NAME
static void ProcessStateData_FunctionDLLName(string p_sString);
};
#endif