🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    ThreadStackSpoofer/header.h
    skipped 31 lines
    32 32   
    33 33  typedef std::unique_ptr<std::remove_pointer<HANDLE>::type, decltype(&::CloseHandle)> HandlePtr;
    34 34   
    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  - 
    48 35  struct CallStackFrame
    49 36  {
    50 37   ULONG_PTR calledFrom;
    skipped 47 lines
    98 85  static const DWORD Shellcode_Memory_Protection = PAGE_EXECUTE_READ;
    99 86   
    100 87  bool hookSleep();
    101  -bool injectShellcode(std::vector<uint8_t>& shellcode);
     88 +bool injectShellcode(std::vector<uint8_t>& shellcode, HandlePtr& thread);
    102 89  bool readShellcode(const char* path, std::vector<uint8_t>& shellcode);
    103 90  void walkCallStack(HANDLE hThread, CallStackFrame* frames, size_t maxFrames, size_t* numOfFrames, bool onlyBeaconFrames, size_t framesToPreserve = Frames_To_Preserve);
    104 91  bool initStackSpoofing();
    skipped 3 lines
Please wait...
Page is in error, reload to recover