[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EX542RRSRFY68H0RBFD3D7":3,"skill-same:01M7EX542RRSRFY68H0RBFD3D7":141},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EX542RRSRFY68H0RBFD3D7","eni-reverse-ref",null,"[DOCUMENTATION ONLY] [仅文档] 全局自动路由 | Provides reverse engineering techniques. Use when the main job is to understand how a compiled, obfuscated, packed, or virtualized target works before exploiting or solving it, including binaries, APKs, WASM, firmware, custom VMs, bytecode, malware-like loaders, and anti-debug or anti-analysis logic. Do not use it when the vulnerability is already understood and the remaining task is exploitation; use pwn instead. Do not use it for pure web workflows, log or disk forensics, or standalone crypto problems unless reversing the implementation is the real blocker.","longwangjiang88\u002FSusuAIOverclock-pojia","longwangjiang88","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F86055358?v=4","01M7EWPCXB6TZRPCAD8J1GQGRV","01M7EWPCXXRSYV10DVK1ZH6YMC",42,"MIT","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: eni-reverse-ref\ndescription: \"[DOCUMENTATION ONLY] [仅文档] 全局自动路由 | Provides reverse engineering techniques. Use when the main job is to understand how a compiled, obfuscated, packed, or virtualized target works before exploiting or solving it, including binaries, APKs, WASM, firmware, custom VMs, bytecode, malware-like loaders, and anti-debug or anti-analysis logic. Do not use it when the vulnerability is already understood and the remaining task is exploitation; use pwn instead. Do not use it for pure web workflows, log or disk forensics, or standalone crypto problems unless reversing the implementation is the real blocker.\"\nlicense: MIT\nallowed-tools: Bash Read Write Edit Glob Grep Task WebFetch WebSearch\nmetadata:\n  user-invocable: \"false\"\n---\n\n> 仅文档：本 Skill 提供方法与检查表，不宣称自带可执行脚本。\n\n# Reverse Engineering\n\nQuick reference for RE challenges. For detailed techniques, see supporting files.\n\n## Prerequisites\n\n**Python packages (all platforms):**\n```bash\npip install frida-tools angr qiling uncompyle6 capstone lief z3-solver\n# For Python 3.9+ bytecode: build pycdc from source\ngit clone https:\u002F\u002Fgithub.com\u002Fzrax\u002Fpycdc && cd pycdc && cmake . && make\n```\n\n**Linux (apt):**\n```bash\napt install gdb radare2 binutils strace ltrace apktool upx\n```\n\n**macOS (Homebrew):**\n```bash\nbrew install gdb radare2 binutils apktool upx ghidra\n```\n\n**radare2 plugins:**\n```bash\nr2pm -ci r2ghidra   # Native Ghidra decompiler for radare2\n```\n\n**Manual install:**\n- pwndbg — Linux: [GitHub](https:\u002F\u002Fgithub.com\u002Fpwndbg\u002Fpwndbg), macOS: `brew install pwndbg\u002Ftap\u002Fpwndbg-gdb`\n\n## Additional Resources\n\n- [tools.md](tools.md) - Static analysis tools (GDB, Ghidra, radare2, IDA, Binary Ninja, dogbolt.org, RISC-V with Capstone, Unicorn emulation, Python bytecode, WASM, Android APK, .NET, packed binaries)\n- [tools-dynamic.md](tools-dynamic.md) (includes Intel Pin instruction-counting side channel for movfuscated binaries, opcode-only trace reconstruction, LD_PRELOAD memcmp side-channel for byte-by-byte bruteforce) - Dynamic analysis tools: Frida (hooking, anti-debug bypass, memory scanning, Android\u002FiOS), angr symbolic execution (path exploration, constraints, CFG), lldb (macOS\u002FLLVM debugger), x64dbg (Windows), Qiling (cross-platform emulation with OS support), Triton (dynamic symbolic execution)\n- [tools-advanced.md](tools-advanced.md) - Advanced tools: VMProtect\u002FThemida analysis, binary diffing (BinDiff, Diaphora), deobfuscation frameworks (D-810, GOOMBA, Miasm), Rizin\u002FCutter, RetDec, custom VM bytecode lifting to LLVM IR, advanced GDB (Python scripting, conditional breakpoints, watchpoints, reverse debugging with rr, pwndbg\u002FGEF), advanced Ghidra scripting, patching (Binary Ninja API, LIEF)\n- [anti-analysis.md](anti-analysis.md) - Comprehensive anti-analysis: Linux anti-debug (ptrace, \u002Fproc, timing, signals, direct syscalls), Windows anti-debug (PEB, NtQueryInformationProcess, heap flags, TLS callbacks, HW\u002FSW breakpoint detection, exception-based, thread hiding), anti-VM\u002Fsandbox (CPUID, MAC, timing, artifacts, resources), anti-DBI (Frida detection\u002Fbypass), code integrity\u002Fself-hashing, anti-disassembly (opaque predicates, junk bytes), MBA identification\u002Fsimplification, SIGFPE signal handler side-channel via strace counting, call-less function chaining via stack frame manipulation, bypass strategies\n- [patterns.md](patterns.md) - Foundational binary patterns: custom VMs, anti-debugging, nanomites, self-modifying code, XOR ciphers, mixed-mode stagers, LLVM obfuscation, S-box\u002Fkeystream, SECCOMP\u002FBPF, exception handlers, memory dumps, byte-wise transforms, x86-64 gotchas, signal-based exploration, malware anti-analysis, multi-stage shellcode, timing side-channel, multi-thread anti-debug with decoy + signal handler MBA, INT3 patch + coredump brute-force oracle, signal handler chain + LD_PRELOAD oracle\n- [patterns-ctf.md](patterns-ctf.md) - Competition-specific patterns (Part 1): hidden emulator opcodes, LD_PRELOAD key extraction, SPN static extraction, image XOR smoothness, byte-at-a-time cipher, mathematical convergence bitmap, Windows PE XOR bitmap OCR, two-stage RC4+VM loaders, kernel module maze solving, multi-threaded VM channels, backdoored shared library detection via string diffing, custom binfmt kernel module with RC4 flat binaries, hash-resolved imports \u002F no-import ransomware, ELF section header corruption for anti-analysis\n- [patterns-ctf-2.md](patterns-ctf-2.md) - Competition-specific patterns (Part 2): multi-layer self-decrypting brute-force, embedded ZIP+XOR license, stack string deobfuscation, prefix hash brute-force, CVP\u002FLLL lattice for integer validation, decision tree function obfuscation, GF(2^8) Gaussian elimination, ROP chain obfuscation analysis (ROPfuscation)\n- [patterns-ctf-3.md](patterns-ctf-3.md) - Competition-specific patterns (Part 3): Z3 single-line Python circuit, sliding window popcount, keyboard LED Morse code via ioctl, C++ destructor-hidden validation, syscall side-effect memory corruption, MFC dialog event handlers, VM sequential key-chain brute-force, Burrows-Wheeler transform inversion, OpenType font ligature exploitation, GLSL shader VM with self-modifying code, instruction counter as cryptographic state, batch crackme automation via objdump, fork+pipe+dead branch anti-analysis, TensorFlow DNN inversion via sigmoid layer inversion, BPF filter analysis via kernel JIT to x64 assembly\n- [languages.md](languages.md) - Language-specific: Python bytecode & opcode remapping, Python version-specific bytecode, Pyarmor static unpack, DOS stubs, HarmonyOS HAP\u002FABC, Brainfuck\u002Fesolangs (+ BF character-by-character static analysis, BF side-channel read count oracle, BF comparison idiom detection), UEFI, transpilation to C, code coverage side-channel, OPAL functional reversing, non-bijective substitution, FRACTRAN program inversion\n- [languages-platforms.md](languages-platforms.md) - Platform\u002Fframework-specific: Rust serde_json schema recovery, Android JNI RegisterNatives obfuscation, Android DEX runtime bytecode patching via \u002Fproc\u002Fself\u002Fmaps, Android native .so loading bypass via new project, Frida Firebase Cloud Functions bypass, Verilog\u002Fhardware RE, prefix-by-prefix hash reversal, Ruby\u002FPerl polyglot constraint satisfaction, Electron ASAR extraction + native binary analysis, Node.js npm runtime introspection\n- [languages-compiled.md](languages-compiled.md) - Go binary reversing (GoReSym, goroutines, memory layout, channel ops, embed.FS, Go binary UUID patching for C2 enumeration), Rust binary reversing (demangling, Option\u002FResult, Vec, panic strings), Swift binary reversing (demangling, protocol witness tables), Kotlin\u002FJVM (coroutine state machines), Haskell GHC CMM intermediate language for recursive structure analysis, C++ (vtable reconstruction, RTTI, STL patterns)\n- [platforms.md](platforms.md) - Platform-specific RE: macOS\u002FiOS (Mach-O, code signing, Objective-C runtime, Swift, dyld, jailbreak bypass), embedded\u002FIoT firmware (binwalk, UART\u002FJTAG\u002FSPI extraction, ARM\u002FMIPS, RTOS), kernel drivers (Linux .ko, eBPF, Windows .sys), automotive CAN bus\n- [platforms-hardware.md](platforms-hardware.md) - Hardware and advanced architecture RE: HD44780 LCD controller GPIO reconstruction, RISC-V advanced (custom extensions, privileged modes, debugging), ARM64\u002FAArch64 reversing and exploitation (calling convention, ROP gadgets, qemu-aarch64-static emulation)\n- [field-notes.md](field-notes.md) - Quick reference notes: binary types, anti-debugging bypass, specialized patterns, CTF case notes\n\n---\n\n## When to Pivot\n\n- If you already understand the binary and now need heap, ROP, or kernel exploitation, switch to `\u002Fctf-pwn`.\n- If the challenge is really about recovering deleted files, PCAP data, or disk artifacts, switch to `\u002Fctf-forensics`.\n- If the target is a web app and you are only reversing a small client-side helper script, switch to `\u002Fctf-web`.\n- If the binary implements a machine learning model and the challenge is about model attacks or adversarial inputs, switch to `\u002Fctf-ai-ml`.\n- If the reversed binary's core logic is a cryptographic algorithm or math problem, switch to `\u002Fctf-crypto`.\n- If the binary is a real malware sample with C2, packing, or evasion behavior, switch to `\u002Fctf-malware`.\n- If the challenge is a toy VM, encoding puzzle, or pyjail rather than a real binary, switch to `\u002Fctf-misc`.\n\n## Problem-Solving Workflow\n\n1. **Start with strings extraction** - many easy challenges have plaintext flags\n2. **Try ltrace\u002Fstrace** - dynamic analysis often reveals flags without reversing\n3. **Try Frida hooking** - hook strcmp\u002Fmemcmp to capture expected values without reversing\n4. **Try angr** - symbolic execution solves many flag-checkers automatically\n5. **Try Qiling** - emulate foreign-arch binaries or bypass heavy anti-debug without artifacts\n6. **Map control flow** before modifying execution\n7. **Automate manual processes** via scripting (r2pipe, Frida, angr, Python)\n8. **Validate assumptions** by comparing decompiler outputs (dogbolt.org for side-by-side)\n\n## Quick Wins (Try First!)\n\n```bash\n# Plaintext flag extraction\nstrings binary | grep -E \"flag\\{|CTF\\{|pico\"\nstrings binary | grep -iE \"flag|secret|password\"\nrabin2 -z binary | grep -i \"flag\"\n\n# Dynamic analysis - often captures flag directly\nltrace .\u002Fbinary\nstrace -f -s 500 .\u002Fbinary\n\n# Hex dump search\nxxd binary | grep -i flag\n\n# Run with test inputs\n.\u002Fbinary AAAA\necho \"test\" | .\u002Fbinary\n```\n\n## Initial Analysis\n\n```bash\nfile binary           # Type, architecture\nchecksec --file=binary # Security features (for pwn)\nchmod +x binary       # Make executable\n```\n\n## Memory Dumping Strategy\n\n**Key insight:** Let the program compute the answer, then dump it. Break at final comparison (`b *main+OFFSET`), enter any input of correct length, then `x\u002Fs $rsi` to dump computed flag.\n\n## Decoy Flag Detection\n\n**Pattern:** Multiple fake targets before real check. Look for multiple comparison targets in sequence with different success messages. Set breakpoint at FINAL comparison, not earlier ones.\n\n## GDB PIE Debugging\n\nPIE binaries randomize base address. Use relative breakpoints:\n```bash\ngdb .\u002Fbinary\nstart                    # Forces PIE base resolution\nb *main+0xca            # Relative to main\nrun\n```\n\n## Comparison Direction (Critical!)\n\nTwo patterns: (1) `transform(flag) == stored_target` — reverse the transform. (2) `transform(stored_target) == flag` — flag IS the transformed data, just apply transform to stored target.\n\n## Common Encryption Patterns\n\n- XOR with single byte - try all 256 values\n- XOR with known plaintext (`flag{`, `CTF{`)\n- RC4 with hardcoded key\n- Custom permutation + XOR\n- XOR with position index (`^ i` or `^ (i & 0xff)`) layered with a repeating key\n\n## Quick Tool Reference\n\n```bash\n# Radare2\nr2 -d .\u002Fbinary     # Debug mode\naaa                # Analyze\nafl                # List functions\npdf @ main         # Disassemble main\n\n# Ghidra (headless)\nanalyzeHeadless project\u002F tmp -import binary -postScript script.py\n\n# IDA\nida64 binary       # Open in IDA64\n```\n\n## Deep-Dive Notes\n\nUse [field-notes.md](field-notes.md) after the first round of triage when you know what kind of target you have.\n\n- Target formats: Python bytecode, WASM, Android, Flutter, .NET, UPX, Tauri\n- Technique notes: anti-debug bypass, VM analysis, x86-64 gotchas, iterative solvers, Unicorn, timing side channels\n- Platform notes: macOS\u002FiOS, embedded firmware, kernel drivers, Swift, Kotlin, Go, Rust, D\n- Case notes: modern CTF-specific reversing patterns and older classic challenge patterns\n\n---\n\n## 路由上下文\n\n**上游入口**: `skills\u002FSKILL.md`（总控）、`routing.md`\n**下游出口**:\n- 需要 IDA 反编译 → `ida-reverse\u002F`\n- 需要 radare2 CLI 分析 → `radare2\u002F`\n- 需要 APK 层分析 → `apk-reverse\u002F`\n- 需要 Frida\u002Fangr 动态执行 → `tools-dynamic.md`\n- 需要绕过反调试 → `anti-analysis.md`\n- 遇到特定语言（Go\u002FRust\u002FPython\u002FWASM）→ `languages*.md`\n- 遇到 CTF 模式 → `patterns*.md`\n\n**同级关联模块**: `apk-reverse\u002F`（APK 定位到 .so 时可切回本模块的 Frida\u002Fradare2 分支）\n","> 仅文档：本 Skill 提供方法与检查表，不宣称自带可执行脚本。\n\n# Reverse Engineering\n\nQuick reference for RE challenges. For detailed techniques, see supporting files.\n\n## Prerequisites\n\n**Python packages (all platforms):**\n```bash\npip install frida-tools angr qiling uncompyle6 capstone lief z3-solver\n# For Python 3.9+ bytecode: build pycdc from source\ngit clone https:\u002F\u002Fgithub.com\u002Fzrax\u002Fpycdc && cd pycdc && cmake . && make\n```\n\n**Linux (apt):**\n```bash\napt install gdb radare2 binutils strace ltrace apktool upx\n```\n\n**macOS (Homebrew):**\n```bash\nbrew install gdb radare2 binutils apktool upx ghidra\n```\n\n**radare2 plugins:**\n```bash\nr2pm -ci r2ghidra   # Native Ghidra decompiler for radare2\n```\n\n**Manual install:**\n- pwndbg — Linux: [GitHub](https:\u002F\u002Fgithub.com\u002Fpwndbg\u002Fpwndbg), macOS: `brew install pwndbg\u002Ftap\u002Fpwndbg-gdb`\n\n## Additional Resources\n\n- [tools.md](tools.md) - Static analysis tools (GDB, Ghidra, radare2, IDA, Binary Ninja, dogbolt.org, RISC-V with Capstone, Unicorn emulation, Python bytecode, WASM, Android APK, .NET, packed binaries)\n- [tools-dynamic.md](tools-dynamic.md) (includes Intel Pin instruction-counting side channel for movfuscated binaries, opcode-only trace reconstruction, LD_PRELOAD memcmp side-channel for byte-by-byte bruteforce) - Dynamic analysis tools: Frida (hooking, anti-debug bypass, memory scanning, Android\u002FiOS), angr symbolic execution (path exploration, constraints, CFG), lldb (macOS\u002FLLVM debugger), x64dbg (Windows), Qiling (cross-platform emulation with OS support), Triton (dynamic symbolic execution)\n- [tools-advanced.md](tools-advanced.md) - Advanced tools: VMProtect\u002FThemida analysis, binary diffing (BinDiff, Diaphora), deobfuscation frameworks (D-810, GOOMBA, Miasm), Rizin\u002FCutter, RetDec, custom VM bytecode lifting to LLVM IR, advanced GDB (Python scripting, conditional breakpoints, watchpoints, reverse debugging with rr, pwndbg\u002FGEF), advanced Ghidra scripting, patching (Binary Ninja API, LIEF)\n- [anti-analysis.md](anti-analysis.md) - Comprehensive anti-analysis: Linux anti-debug (ptrace, \u002Fproc, timing, signals, direct syscalls), Windows anti-debug (PEB, NtQueryInformationProcess, heap flags, TLS callbacks, HW\u002FSW breakpoint detection, exception-based, thread hiding), anti-VM\u002Fsandbox (CPUID, MAC, timing, artifacts, resources), anti-DBI (Frida detection\u002Fbypass), code integrity\u002Fself-hashing, anti-disassembly (opaque predicates, junk bytes), MBA identification\u002Fsimplification, SIGFPE signal handler side-channel via strace counting, call-less function chaining via stack frame manipulation, bypass strategies\n- [patterns.md](patterns.md) - Foundational binary patterns: custom VMs, anti-debugging, nanomites, self-modifying code, XOR ciphers, mixed-mode stagers, LLVM obfuscation, S-box\u002Fkeystream, SECCOMP\u002FBPF, exception handlers, memory dumps, byte-wise transforms, x86-64 gotchas, signal-based exploration, malware anti-analysis, multi-stage shellcode, timing side-channel, multi-thread anti-debug with decoy + signal handler MBA, INT3 patch + coredump brute-force oracle, signal handler chain + LD_PRELOAD oracle\n- [patterns-ctf.md](patterns-ctf.md) - Competition-specific patterns (Part 1): hidden emulator opcodes, LD_PRELOAD key extraction, SPN static extraction, image XOR smoothness, byte-at-a-time cipher, mathematical convergence bitmap, Windows PE XOR bitmap OCR, two-stage RC4+VM loaders, kernel module maze solving, multi-threaded VM channels, backdoored shared library detection via string diffing, custom binfmt kernel module with RC4 flat binaries, hash-resolved imports \u002F no-import ransomware, ELF section header corruption for anti-analysis\n- [patterns-ctf-2.md](patterns-ctf-2.md) - Competition-specific patterns (Part 2): multi-layer self-decrypting brute-force, embedded ZIP+XOR license, stack string deobfuscation, prefix hash brute-force, CVP\u002FLLL lattice for integer validation, decision tree function obfuscation, GF(2^8) Gaussian elimination, ROP chain obfuscation analysis (ROPfuscation)\n- [patterns-ctf-3.md](patterns-ctf-3.md) - Competition-specific patterns (Part 3): Z3 single-line Python circuit, sliding window popcount, keyboard LED Morse code via ioctl, C++ destructor-hidden validation, syscall side-effect memory corruption, MFC dialog event handlers, VM sequential key-chain brute-force, Burrows-Wheeler transform inversion, OpenType font ligature exploitation, GLSL shader VM with self-modifying code, instruction counter as cryptographic state, batch crackme automation via objdump, fork+pipe+dead branch anti-analysis, TensorFlow DNN inversion via sigmoid layer inversion, BPF filter analysis via kernel JIT to x64 assembly\n- [languages.md](languages.md) - Language-specific: Python bytecode & opcode remapping, Python version-specific bytecode, Pyarmor static unpack, DOS stubs, HarmonyOS HAP\u002FABC, Brainfuck\u002Fesolangs (+ BF character-by-character static analysis, BF side-channel read count oracle, BF comparison idiom detection), UEFI, transpilation to C, code coverage side-channel, OPAL functional reversing, non-bijective substitution, FRACTRAN program inversion\n- [languages-platforms.md](languages-platforms.md) - Platform\u002Fframework-specific: Rust serde_json schema recovery, Android JNI RegisterNatives obfuscation, Android DEX runtime bytecode patching via \u002Fproc\u002Fself\u002Fmaps, Android native .so loading bypass via new project, Frida Firebase Cloud Functions bypass, Verilog\u002Fhardware RE, prefix-by-prefix hash reversal, Ruby\u002FPerl polyglot constraint satisfaction, Electron ASAR extraction + native binary analysis, Node.js npm runtime introspection\n- [languages-compiled.md](languages-compiled.md) - Go binary reversing (GoReSym, goroutines, memory layout, channel ops, embed.FS, Go binary UUID patching for C2 enumeration), Rust binary reversing (demangling, Option\u002FResult, Vec, panic strings), Swift binary reversing (demangling, protocol witness tables), Kotlin\u002FJVM (coroutine state machines), Haskell GHC CMM intermediate language for recursive structure analysis, C++ (vtable reconstruction, RTTI, STL patterns)\n- [platforms.md](platforms.md) - Platform-specific RE: macOS\u002FiOS (Mach-O, code signing, Objective-C runtime, Swift, dyld, jailbreak bypass), embedded\u002FIoT firmware (binwalk, UART\u002FJTAG\u002FSPI extraction, ARM\u002FMIPS, RTOS), kernel drivers (Linux .ko, eBPF, Windows .sys), automotive CAN bus\n- [platforms-hardware.md](platforms-hardware.md) - Hardware and advanced architecture RE: HD44780 LCD controller GPIO reconstruction, RISC-V advanced (custom extensions, privileged modes, debugging), ARM64\u002FAArch64 reversing and exploitation (calling convention, ROP gadgets, qemu-aarch64-static emulation)\n- [field-notes.md](field-notes.md) - Quick reference notes: binary types, anti-debugging bypass, specialized patterns, CTF case notes\n\n---\n\n## When to Pivot\n\n- If you already understand the binary and now need heap, ROP, or kernel exploitation, switch to `\u002Fctf-pwn`.\n- If the challenge is really about recovering deleted files, PCAP data, or disk artifacts, switch to `\u002Fctf-forensics`.\n- If the target is a web app and you are only reversing a small client-side helper script, switch to `\u002Fctf-web`.\n- If the binary implements a machine learning model and the challenge is about model attacks or adversarial inputs, switch to `\u002Fctf-ai-ml`.\n- If the reversed binary's core logic is a cryptographic algorithm or math problem, switch to `\u002Fctf-crypto`.\n- If the binary is a real malware sample with C2, packing, or evasion behavior, switch to `\u002Fctf-malware`.\n- If the challenge is a toy VM, encoding puzzle, or pyjail rather than a real binary, switch to `\u002Fctf-misc`.\n\n## Problem-Solving Workflow\n\n1. **Start with strings extraction** - many easy challenges have plaintext flags\n2. **Try ltrace\u002Fstrace** - dynamic analysis often reveals flags without reversing\n3. **Try Frida hooking** - hook strcmp\u002Fmemcmp to capture expected values without reversing\n4. **Try angr** - symbolic execution solves many flag-checkers automatically\n5. **Try Qiling** - emulate foreign-arch binaries or bypass heavy anti-debug without artifacts\n6. **Map control flow** before modifying execution\n7. **Automate manual processes** via scripting (r2pipe, Frida, angr, Python)\n8. **Validate assumptions** by comparing decompiler outputs (dogbolt.org for side-by-side)\n\n## Quick Wins (Try First!)\n\n```bash\n# Plaintext flag extraction\nstrings binary | grep -E \"flag\\{|CTF\\{|pico\"\nstrings binary | grep -iE \"flag|secret|password\"\nrabin2 -z binary | grep -i \"flag\"\n\n# Dynamic analysis - often captures flag directly\nltrace .\u002Fbinary\nstrace -f -s 500 .\u002Fbinary\n\n# Hex dump search\nxxd binary | grep -i flag\n\n# Run with test inputs\n.\u002Fbinary AAAA\necho \"test\" | .\u002Fbinary\n```\n\n## Initial Analysis\n\n```bash\nfile binary           # Type, architecture\nchecksec --file=binary # Security features (for pwn)\nchmod +x binary       # Make executable\n```\n\n## Memory Dumping Strategy\n\n**Key insight:** Let the program compute the answer, then dump it. Break at final comparison (`b *main+OFFSET`), enter any input of correct length, then `x\u002Fs $rsi` to dump computed flag.\n\n## Decoy Flag Detection\n\n**Pattern:** Multiple fake targets before real check. Look for multiple comparison targets in sequence with different success messages. Set breakpoint at FINAL comparison, not earlier ones.\n\n## GDB PIE Debugging\n\nPIE binaries randomize base address. Use relative breakpoints:\n```bash\ngdb .\u002Fbinary\nstart                    # Forces PIE base resolution\nb *main+0xca            # Relative to main\nrun\n```\n\n## Comparison Direction (Critical!)\n\nTwo patterns: (1) `transform(flag) == stored_target` — reverse the transform. (2) `transform(stored_target) == flag` — flag IS the transformed data, just apply transform to stored target.\n\n## Common Encryption Patterns\n\n- XOR with single byte - try all 256 values\n- XOR with known plaintext (`flag{`, `CTF{`)\n- RC4 with hardcoded key\n- Custom permutation + XOR\n- XOR with position index (`^ i` or `^ (i & 0xff)`) layered with a repeating key\n\n## Quick Tool Reference\n\n```bash\n# Radare2\nr2 -d .\u002Fbinary     # Debug mode\naaa                # Analyze\nafl                # List functions\npdf @ main         # Disassemble main\n\n# Ghidra (headless)\nanalyzeHeadless project\u002F tmp -import binary -postScript script.py\n\n# IDA\nida64 binary       # Open in IDA64\n```\n\n## Deep-Dive Notes\n\nUse [field-notes.md](field-notes.md) after the first round of triage when you know what kind of target you have.\n\n- Target formats: Python bytecode, WASM, Android, Flutter, .NET, UPX, Tauri\n- Technique notes: anti-debug bypass, VM analysis, x86-64 gotchas, iterative solvers, Unicorn, timing side channels\n- Platform notes: macOS\u002FiOS, embedded firmware, kernel drivers, Swift, Kotlin, Go, Rust, D\n- Case notes: modern CTF-specific reversing patterns and older classic challenge patterns\n\n---\n\n## 路由上下文\n\n**上游入口**: `skills\u002FSKILL.md`（总控）、`routing.md`\n**下游出口**:\n- 需要 IDA 反编译 → `ida-reverse\u002F`\n- 需要 radare2 CLI 分析 → `radare2\u002F`\n- 需要 APK 层分析 → `apk-reverse\u002F`\n- 需要 Frida\u002Fangr 动态执行 → `tools-dynamic.md`\n- 需要绕过反调试 → `anti-analysis.md`\n- 遇到特定语言（Go\u002FRust\u002FPython\u002FWASM）→ `languages*.md`\n- 遇到 CTF 模式 → `patterns*.md`\n\n**同级关联模块**: `apk-reverse\u002F`（APK 定位到 .so 时可切回本模块的 Frida\u002Fradare2 分支）\n",{"name":5,"license":14,"metadata":23,"description":7,"allowed-tools":25},{"user-invocable":24},"false","Bash Read Write Edit Glob Grep Task WebFetch WebSearch","main","667b2db2746516eae05412bbdcad77515d528f37","packed-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref",24,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia","https:\u002F\u002Fgithub.com\u002Flongwangjiang88","2026-10-15 18:06:23",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add longwangjiang88\u002FSusuAIOverclock-pojia --skill eni-reverse-ref",{"tool":39,"command":40},"bunx","bunx skills add longwangjiang88\u002FSusuAIOverclock-pojia --skill eni-reverse-ref",{"tool":42,"command":43},"pnpm","pnpm dlx skills add longwangjiang88\u002FSusuAIOverclock-pojia --skill eni-reverse-ref","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},".slo-install.json","REFERENCE","参考文档",524,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002F.slo-install.json",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fopenai.yaml",144,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fagents\u002Fopenai.yaml",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"anti-analysis.md",28164,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fanti-analysis.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"awesome-re-resources.md",6510,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fawesome-re-resources.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"crypto-decode-tools.md",6848,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fcrypto-decode-tools.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"elf-analysis.md",8618,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Felf-analysis.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"field-notes.md",39126,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Ffield-notes.md",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"go-reverse.md",7250,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fgo-reverse.md",{"path":82,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":83,"sourceHtmlUrl":84},"kernel-driver-reverse.md",10220,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fkernel-driver-reverse.md",{"path":86,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":87,"sourceHtmlUrl":88},"languages-compiled.md",21665,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Flanguages-compiled.md",{"path":90,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":91,"sourceHtmlUrl":92},"languages-platforms.md",23470,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Flanguages-platforms.md",{"path":94,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":95,"sourceHtmlUrl":96},"languages.md",20549,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Flanguages.md",{"path":98,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":99,"sourceHtmlUrl":100},"patterns-ctf-2.md",19220,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fpatterns-ctf-2.md",{"path":102,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":103,"sourceHtmlUrl":104},"patterns-ctf-3.md",34672,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fpatterns-ctf-3.md",{"path":106,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":107,"sourceHtmlUrl":108},"patterns-ctf.md",24249,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fpatterns-ctf.md",{"path":110,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":111,"sourceHtmlUrl":112},"patterns.md",29980,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fpatterns.md",{"path":114,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":115,"sourceHtmlUrl":116},"platforms-hardware.md",11148,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fplatforms-hardware.md",{"path":118,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":119,"sourceHtmlUrl":120},"platforms.md",14279,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Fplatforms.md",{"path":122,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fai-assisted-re.md",4782,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Freferences\u002Fai-assisted-re.md",{"path":126,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Follvm-deobfuscation.md",23426,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Freferences\u002Follvm-deobfuscation.md",{"path":130,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":131,"sourceHtmlUrl":132},"tools-advanced.md",26517,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Ftools-advanced.md",{"path":134,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":135,"sourceHtmlUrl":136},"tools-dynamic.md",29969,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Ftools-dynamic.md",{"path":138,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":139,"sourceHtmlUrl":140},"tools.md",14720,"https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fcodex\u002Fmaterials\u002Fskills\u002Feni-reverse-ref\u002Ftools.md",[142,150,157,164,170,176],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":149},"01M7EYSVDK2NDWT3E55EQN2KJY","yingan-tuoxiu","Owner-authorized YingAn\u002FYingPo Android APK shell rehydration and stable rebuild workflow. Use for APKs with tiny or abnormal root DEX files, v.m.p or abcd655xx shell callbacks, libabcd\u002Flib*shellservice_dex native loaders, protected assets, runtime-loaded DEX images, hidden real Application or Activity routes, and native lifecycle wrappers that must be recovered into a normally installable, signed multidex APK without changing product authentication or business authorization behavior.","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002F西宫影安老版本脱修\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":149},"01M7EYSNPJM4G98TAYPQ0DRHDA","reverse-engineering","Use when performing reverse engineering on any target: websites, desktop binaries (PE\u002FELF),\nmobile apps (APK\u002FIPA), or network protocols. Covers web scraping\u002FAPI reverse, disassembly\nand decompilation, Frida\u002FXposed hooking, il2cpp\u002FUnity reverse, protocol capture and replay,\nencryption\u002Fsignature analysis, and memory debugging.\nTriggers: 逆向、反编译、Hook、脱壳、抓包、协议分析、Frida、Xposed、il2cpp、Unity逆向、\n内存扫描、DLL注入、PE分析、ELF分析、APK逆向、IPA逆向、反混淆、签名分析、加密还原、\nsmali、Ghidra、IDA、Cheat Engine、mitmproxy、Wireshark、脱壳、加固、SO逆向、Web逆向。","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002F外挂逆向skills\u002Freverse-engineering\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":149},"01M7EYSFJ2GD8JMZ2BEN5EZ1P2","game-hacking","游戏辅助开发全链路助手——覆盖内存读写、协议分析、反编译、Hook 技术、驱动级隐藏、自动化脚本。\n支持 C\u002FC++、Python、x86\u002Fx64 汇编、DirectX\u002FOpenGL。适用于 PC 端游、Android\u002FiOS 手游、主机游戏。\n当用户提到以下任何关键词时必须触发：游戏外挂、游戏辅助、内存修改、CE教程、游戏Hook、\n协议分析、反编译、驱动隐藏、游戏脚本、按键精灵、游戏逆向、内存扫描、指针追踪、DLL注入、\n游戏破解、脱壳、抓包分析、Frida、Xposed、il2cpp、Unity逆向、UE4逆向、DirectX Hook、\nOpenGL Hook、游戏自动化、坐标识别、模板匹配、游戏安全测试。","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002F外挂逆向skills\u002Fgame-hacking\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":149},"01M7EYSDN4YRG47G64RZWN9VQP","supply-chain-security","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002Fzzy-codex5.6\u002Fzzy-reverse-skill\u002Fskills\u002Fsupply-chain-security\u002FSKILL.md",[],[],{"skillNo":171,"name":152,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":149},"01M7EYS778SXQN48QQHGSD72HD","Provides reverse engineering techniques. Use when the main job is to understand how a compiled, obfuscated, packed, or virtualized target works before exploiting or solving it, including binaries, APKs, WASM, firmware, custom VMs, bytecode, malware-like loaders, and anti-debug or anti-analysis logic. Do not use it when the vulnerability is already understood and the remaining task is exploitation; use pwn instead. Do not use it for pure web workflows, log or disk forensics, or standalone crypto problems unless reversing the implementation is the real blocker.","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002Fzzy-codex5.6\u002Fzzy-reverse-skill\u002Fskills\u002Freverse-engineering\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":149},"01M7EYS223506HTEF0RD9952QP","radare2","Use this skill whenever the user wants to analyze binaries with radare2\u002Fr2 from the command line, including reverse engineering, disassembly, function analysis, strings\u002Fimport inspection, patching, binary diffing, hex inspection, or r2 scripting. Also use it when the user mentions PE\u002FELF\u002FMach-O\u002FDEX\u002FWASM files together with CLI analysis, `rabin2`, `rasm2`, `radiff2`, `r2pipe`, or asks for radare2 command help on Windows\u002FLinux\u002FmacOS.","https:\u002F\u002Fgithub.com\u002Flongwangjiang88\u002FSusuAIOverclock-pojia\u002Fblob\u002Fmain\u002Fpacked-packs\u002Fworkbuddy\u002Fmaterials\u002Fskills\u002Fzzy-codex5.6\u002Fzzy-reverse-skill\u002Fskills\u002Fradare2\u002FSKILL.md",[],[]]