forked from NytroRST/ShellcodeCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinuxSyscalls.h
More file actions
40 lines (27 loc) · 633 Bytes
/
LinuxSyscalls.h
File metadata and controls
40 lines (27 loc) · 633 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
32
33
34
35
36
37
38
39
40
#ifndef LINUXSYSCALLS_H
#define LINUXSYSCALLS_H
#include "Utils.h"
#include "Platform.h"
#include <string>
#include <vector>
#define LINUX_SYSCALL_UNKNOWN -1
using namespace std;
// Class used for ASM Header
class LinuxSyscalls
{
public:
// Syscall definition
struct Syscall
{
string Name = "";
int x86 = -1;
int x64 = -1;
};
static vector<Syscall> s_vSystemCallsTable;
// Get syscall numbers
static int GetSyscallNr(string p_sSyscallName);
static bool SyscallExists(string p_sSyscallName);
static int GetSyscallNr_x86(string p_sSyscallName);
static int GetSyscallNr_x64(string p_sSyscallName);
};
#endif