Skip to content

Commit 98bf411

Browse files
committed
update
1 parent 8859cc3 commit 98bf411

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

ThreadStackSpoofer/header.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ typedef BOOL(__stdcall* typeSymInitialize)(
3232

3333
typedef std::unique_ptr<std::remove_pointer<HANDLE>::type, decltype(&::CloseHandle)> HandlePtr;
3434

35-
struct EXCEPTION_REGISTRATION
36-
{
37-
void* handler;
38-
void* prevHandler;
39-
};
40-
41-
struct Start_Of_TEB
42-
{
43-
EXCEPTION_REGISTRATION* ExceptionList;
44-
void* StackBase;
45-
void* StackLimit;
46-
};
47-
4835
struct CallStackFrame
4936
{
5037
ULONG_PTR calledFrom;
@@ -98,7 +85,7 @@ static const size_t Frames_To_Preserve = 2;
9885
static const DWORD Shellcode_Memory_Protection = PAGE_EXECUTE_READ;
9986

10087
bool hookSleep();
101-
bool injectShellcode(std::vector<uint8_t>& shellcode);
88+
bool injectShellcode(std::vector<uint8_t>& shellcode, HandlePtr& thread);
10289
bool readShellcode(const char* path, std::vector<uint8_t>& shellcode);
10390
void walkCallStack(HANDLE hThread, CallStackFrame* frames, size_t maxFrames, size_t* numOfFrames, bool onlyBeaconFrames, size_t framesToPreserve = Frames_To_Preserve);
10491
bool initStackSpoofing();

0 commit comments

Comments
 (0)