GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — shellcode_obfuscator/shellcode_obfuscator.cpp at main · WindowsCodeCamp/shellcode_obfuscator Expand file tree/ Copy pathshellcode_obfuscator.cppMore file actions 41 lines (36 loc) · 972 Bytes / Copy pathshellcode_obfuscator.cppFile metadata and controls41 lines (36 loc) · 972 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 #include "stdio.h" #include "windows.h" #include "tchar.h" #include "junkAsm.h" #include <ctime> #include <cassert> #include <string> #include "shellcode-demo.h" int main() { printf("Origion Shellcode Length=%d\r\n", sizeof(shellcode)); set_junk_level(junk_level_debug); int count = 0; while (true) { std::string sc((char*)shellcode, sizeof(shellcode)); // 这里设置循环混淆4次,可以任意修改 for (int i = 0; i < 4; i++) { unsigned char *dst = 0; int dstLen; bool ret = junkAsm((unsigned char*)sc.c_str(), sc.length(), &dst, &dstLen); assert(ret); sc = std::string((char*)dst, dstLen); free(dst); } DWORD dwOldProtect = 0; VirtualProtect((LPVOID)sc.c_str(), (SIZE_T)sc.length(), PAGE_EXECUTE_READWRITE, &dwOldProtect); // Execute it typedef void(*FUNC)(); FUNC func = (FUNC)(sc.c_str()); func(); printf("Run Times:%d After Obfuscate ShellcodeLength=%d\r\n", count++, sc.length()); } return 0; } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |