MCPcopy Create free account
hub / github.com/Barracudach/CallStack-Spoofer / SpoofFunction

Method SpoofFunction

include/CallStack-Spoofer.h:95–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 void* ret_addr_in_stack = 0;
94
95 SpoofFunction(void* addr) :ret_addr_in_stack(addr)
96 {
97 temp = *(uintptr_t*)ret_addr_in_stack;
98 temp ^= xor_key;
99 *(uintptr_t*)ret_addr_in_stack = 0;
100 }
101 ~SpoofFunction()
102 {
103 temp ^= xor_key;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected