-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbapi.h
76 lines (66 loc) · 1.06 KB
/
bapi.h
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
*
* Captures incoming Net-NTLMv1/v2 hashes
* for incoming authentication attempts
* via NTLM.
*
* GuidePoint Security LLC
* Threat and Attack Simulation
*
**/
#pragma once
#ifndef CALLBACK_OUTPUT
#define CALLBACK_OUTPUT 0x0
#endif
#ifndef CALLBACK_ERROR
#define CALLBACK_ERROR 0x0d
#endif
typedef struct {
PCHAR Original;
PCHAR Buffer;
INT Length;
INT Size;
} DATAP, *PDATAP;
DECLSPEC_IMPORT
VOID
BeaconInjectProcess(
_In_opt_ HANDLE hProc,
_In_opt_ INT Pid,
_In_ PCHAR Payload,
_In_ INT Length,
_In_ INT Offset,
_In_ PCHAR Argument,
_In_ INT ArgLength
);
DECLSPEC_IMPORT
PCHAR
BeaconDataExtract(
_Inout_ PDATAP Parser,
_In_ PINT Size
);
DECLSPEC_IMPORT
VOID
BeaconDataParse(
_Inout_ PDATAP Parser,
_In_ PCHAR Buffer,
_In_ INT Size
);
DECLSPEC_IMPORT
BOOL
BeaconIsAdmin(
_In_ VOID
);
DECLSPEC_IMPORT
VOID
BeaconPrintf(
_In_ INT Type,
_In_ PCHAR Format,
...
);
typedef struct {
D_API( BeaconInjectProcess );
D_API( BeaconDataExtract );
D_API( BeaconDataParse );
D_API( BeaconIsAdmin );
D_API( BeaconPrintf );
} BAPI_TABLE, *PBAPI_TABLE;