[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M798MMH0DB62T0SPDKTV07C1":3,"skill-same:01M798MMH0DB62T0SPDKTV07C1":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M798MMH0DB62T0SPDKTV07C1","ctf-triage",null,"CTF challenge triage and solve methodology — category detection, tool selection, and multi-step solve chains across pwn\u002Frev\u002Fcrypto\u002Fforensics\u002Fweb\u002Fmisc.","7ShIkI3\u002FDecepticon-x-DarkTriad","7ShIkI3","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78133376?v=4","01M797CTK5AHH2161YVG93NJ3B","Raphael Pascaud","01M797CTKRQS64R01J7E6TJSEM",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Freverser\u002Fctf-triage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ctf-triage\ndescription: \"CTF challenge triage and solve methodology — category detection, tool selection, and multi-step solve chains across pwn\u002Frev\u002Fcrypto\u002Fforensics\u002Fweb\u002Fmisc.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: reverse-engineering\n  when_to_use: \"CTF, capture the flag, pwn, rev, crypto challenge, forensics challenge, steganography, flag, challenge file, binary exploit\"\n  tags: ctf, pwn, reversing, crypto, forensics, steganography, binary-exploitation, pwntools, angr, binwalk, steghide, volatility\n  mitre_attack: T1059.004, T1027, T1027.002, T1140, T1564.003\n---\n\n# CTF Challenge Triage and Solve Methodology\n\n> **Authorized-use caveat**: This skill is for legal CTF competitions, security education, and authorized research environments only. Never apply these techniques to systems without explicit written authorization.\n\n## Phase 0 — Initial Triage (always first)\n\nIdentify challenge category before touching any tool.\n\n```bash\n# Universal file fingerprint\nfile challenge_file\nxxd challenge_file | head -4         # magic bytes\nstrings -n 8 challenge_file | head -30\nbinwalk challenge_file               # embedded files \u002F compression layers\nexiftool challenge_file              # metadata (images, PDFs)\n```\n\n| Magic bytes \u002F extension | Category | Next phase |\n|-------------------------|----------|------------|\n| ELF \u002F PE \u002F Mach-O       | Pwn \u002F Rev | Phase 1a \u002F 1b |\n| PNG \u002F JPG \u002F BMP \u002F WAV   | Steganography \u002F Forensics | Phase 2 |\n| PCAP \u002F PCAPNG           | Network forensics | Phase 3 |\n| Memory dump (`.raw`, `.vmem`, `.dmp`) | Memory forensics | Phase 4 |\n| Ciphertext \u002F hex blob \u002F base64 | Crypto | Phase 5 |\n| Web URL \u002F source        | Web | Use `exploit\u002Fweb\u002F` skills |\n| Archive \u002F unknown binary | Misc \u002F forensics | Phase 6 |\n\n---\n\n## Phase 1a — Pwn (Binary Exploitation)\n\n### Step 1 — Security property enumeration\n```bash\nchecksec --file=.\u002Fbinary\n# Key outputs: RELRO, Stack Canary, NX, PIE, RUNPATH\n```\n\n| Property | Absent = exploitable via... |\n|----------|----------------------------|\n| Stack canary | Stack overflow → ret2libc \u002F ROP |\n| NX (No-Execute) | Shellcode injection to stack\u002Fheap |\n| PIE | Fixed address assumptions for ROP gadgets |\n| Full RELRO | GOT overwrite |\n\n### Step 2 — Static analysis\n```bash\nobjdump -d .\u002Fbinary | grep -A 20 \"\u003Cmain>\"\nstrings .\u002Fbinary | grep -E \"(flag|CTF|pass|secret|\u002Fbin\u002Fsh)\"\nreadelf -s .\u002Fbinary | grep -E \"(sym|FUNC)\"\n# Heavy analysis\nghidra .\u002Fbinary  # or: r2 -A .\u002Fbinary\n```\n\n### Step 3 — Dynamic analysis + offset finding\n```bash\n# GDB with GEF\u002FPEDA\ngdb -q .\u002Fbinary\n# Inside GDB:\n# pattern create 200\n# run \u003C \u003C(python3 -c \"print('A'*200)\")\n# pattern offset $rsp\n\n# Pwntools skeleton\npython3 - \u003C\u003C'EOF'\nfrom pwn import *\ncontext.binary = elf = ELF('.\u002Fbinary')\np = process('.\u002Fbinary')\n# or: p = remote('challenge.host', 1337)\n\noffset = cyclic_find(0x61616161)  # replace with crashing value\npayload = b'A' * offset + p64(elf.sym['win'])\np.sendline(payload)\np.interactive()\nEOF\n```\n\n### Step 4 — ROP chain (when NX set)\n```bash\nROPgadget --binary .\u002Fbinary --rop | grep \"pop rdi\"\n# or: ropper -f .\u002Fbinary --search \"pop rdi\"\n\npython3 - \u003C\u003C'EOF'\nfrom pwn import *\nelf = ELF('.\u002Fbinary')\nlibc = ELF('.\u002Flibc.so.6')\nrop = ROP(elf)\nrop.call('puts', [elf.got['puts']])\nrop.call(elf.sym['main'])\n# Leak libc base, then ret2libc\nEOF\n```\n\n### Step 5 — Libc identification (remote exploits)\n```bash\n# Identify libc from leaked addresses\npython3 -m one_gadget libc.so.6\n# or: libc-database lookup\n```\n\n---\n\n## Phase 1b — Reverse Engineering\n\n### Step 1 — Static disassembly\n```bash\n# Strings for quick wins (flag format, hardcoded keys)\nstrings .\u002Fbinary | grep -iE \"(flag\\{|ctf\\{|[A-Z0-9_]{10,}\\})\"\n\n# Ghidra headless (no GUI)\nanalyzeHeadless \u002Ftmp\u002Fghidra_proj ChalProj \\\n  -import .\u002Fbinary \\\n  -postScript PrintASM.java \\\n  -scriptPath \u002Fopt\u002Fghidra\u002FGhidra\u002FFeatures\u002FDecompiler\u002Fghidra_scripts \\\n  2>\u002Fdev\u002Fnull\n\n# radare2 (faster for known binary formats)\nr2 -A .\u002Fbinary\n# Inside r2: afl (functions), pdf @ sym.main, VV (visual)\n```\n\n### Step 2 — Anti-debug \u002F packer detection\n```bash\n# Detect packers\nupx -t .\u002Fbinary  # UPX packed?\ndie .\u002Fbinary     # Detect-It-Easy\n# If packed: upx -d .\u002Fbinary\n\n# Entropy analysis (high entropy sections = packed\u002Fencrypted)\nbinwalk -E .\u002Fbinary\n```\n\nIf packed, see `reverser\u002Fpacker-unpacking\u002FSKILL.md`.\n\n### Step 3 — Symbolic execution for constraint solving\n```bash\n# Angr — solve unknown input to reach target state\npython3 - \u003C\u003C'EOF'\nimport angr, claripy\nproj = angr.Project('.\u002Fbinary', auto_load_libs=False)\nflag_chars = [claripy.BVS(f'flag_{i}', 8) for i in range(32)]\nflag = claripy.Concat(*flag_chars)\nstate = proj.factory.full_init_state(stdin=flag)\nfor c in flag_chars:\n    state.add_constraints(c >= 0x20, c \u003C= 0x7e)\nsm = proj.factory.simulation_manager(state)\nsm.explore(find=lambda s: b'Correct' in s.posix.dumps(1),\n           avoid=lambda s: b'Wrong' in s.posix.dumps(1))\nif sm.found:\n    print(sm.found[0].solver.eval(flag, cast_to=bytes))\nEOF\n```\n\n---\n\n## Phase 2 — Steganography \u002F Image Forensics\n\n### Triage order (fast to slow)\n```bash\n# 1. Metadata\nexiftool challenge.png\n# Look for: Comment field, GPS coords, Software, hidden IPTC\u002FXMP data\n\n# 2. Appended data after EOF marker\nxxd challenge.jpg | tail -20\n# JPEG ends at FF D9; anything after = appended content\n\n# 3. LSB steganography (most common CTF technique)\nzsteg challenge.png          # PNG\u002FBMP LSB\nstegsolve challenge.png      # GUI — bit plane analysis (run with: java -jar stegsolve.jar)\nsteghide extract -sf challenge.jpg -p \"\"   # try empty passphrase first\nsteghide extract -sf challenge.jpg -p \"password\"\n\n# 4. Outguess (JPEG)\noutguess -r challenge.jpg output.txt\n\n# 5. Audio steganography\nsox challenge.wav -n stat    # audio properties\nspectral view in Audacity or Sox spectrogram\n```\n\n### Password brute-force for steghide\n```bash\nstegseek challenge.jpg \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n```\n\n---\n\n## Phase 3 — Network Forensics (PCAP)\n\n```bash\n# Quick summary\ncapinfos challenge.pcap\ntshark -r challenge.pcap -q -z io,phs   # protocol hierarchy\ntshark -r challenge.pcap -q -z conv,tcp # TCP conversations\n\n# Extract HTTP objects (images, files)\ntshark -r challenge.pcap --export-objects http,\u002Ftmp\u002Fpcap_http\u002F\n\n# Extract credentials\ntshark -r challenge.pcap -Y \"ftp || http.request.method==POST\" -T fields \\\n  -e frame.number -e ip.src -e tcp.payload\n\n# Follow TCP stream (stream index from Wireshark or tshark)\ntshark -r challenge.pcap -q -z follow,tcp,ascii,0\n\n# DNS exfiltration\ntshark -r challenge.pcap -Y dns -T fields -e dns.qry.name | sort -u | grep -v \"\\.arpa\"\n```\n\n---\n\n## Phase 4 — Memory Forensics\n\n```bash\n# Identify OS profile\nvol3 -f memory.raw windows.info 2>\u002Fdev\u002Fnull || vol3 -f memory.raw linux.info\n\n# Windows\nvol3 -f memory.raw windows.pslist\nvol3 -f memory.raw windows.cmdline\nvol3 -f memory.raw windows.netscan\nvol3 -f memory.raw windows.malfind        # injected code\nvol3 -f memory.raw windows.dumpfiles --pid \u003CPID> --output-dir \u002Ftmp\u002F\n\n# Linux\nvol3 -f memory.raw linux.pslist\nvol3 -f memory.raw linux.bash\n\n# Carve files\nforemost -i memory.raw -o \u002Ftmp\u002Fforemost_out\u002F\n```\n\n---\n\n## Phase 5 — Cryptography Challenges\n\n### Step 1 — Identify cipher \u002F encoding\n```bash\n# Encoding layers (base64, hex, rot13, etc.)\necho \"encoded_string\" | base64 -d\necho \"encoded_string\" | xxd -r -p   # hex to binary\necho \"encoded_string\" | tr 'A-Za-z' 'N-ZA-Mn-za-m'  # ROT13\n# CyberChef magic function: https:\u002F\u002Fgchq.github.io\u002FCyberChef\u002F#recipe=Magic(3,false,false,'')\n\n# Hash identification\nhash-identifier \u003Chash>\nhashid \u003Chash>\n```\n\n### Step 2 — Classic cipher analysis\n```bash\n# Frequency analysis (substitution ciphers)\npython3 - \u003C\u003C'EOF'\nfrom collections import Counter\nct = \"YOUR_CIPHERTEXT_HERE\"\nfreq = Counter(c for c in ct.upper() if c.isalpha())\nfor char, count in freq.most_common(10):\n    print(f\"{char}: {count} ({count\u002Flen([c for c in ct if c.isalpha()])*100:.1f}%)\")\n# English: E=12.7%, T=9%, A=8.2%, O=7.5%\nEOF\n```\n\n### Step 3 — RSA attacks\n```bash\n# Factor small\u002Fweak modulus\npython3 - \u003C\u003C'EOF'\nfrom sympy import factorint\nn = \u003Cmodulus>\nfactors = factorint(n)\nprint(factors)  # p, q\n# If factored: phi=(p-1)*(q-1), d=pow(e,-1,phi), m=pow(c,d,n)\nEOF\n\n# Wiener's attack (small private exponent)\n# RsaCtfTool covers common attacks:\npython3 RsaCtfTool.py --publickey pub.pem --attack all --uncipherfile cipher.bin\n\n# Common primes \u002F known factors\n# Check factordb.com for n\n```\n\n### Step 4 — Hash cracking\n```bash\nhashcat -m \u003Cmode> hash.txt \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n# -m 0=MD5, 1000=NTLM, 1800=sha512crypt, 13000=RAR5\njohn --wordlist=\u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt --format=\u003Cformat> hash.txt\n```\n\n---\n\n## Phase 6 — Misc \u002F Archive Analysis\n\n```bash\n# Multi-layer extraction\nbinwalk -eM challenge_file     # recursive extraction\n7z l archive.7z                # list contents without extracting\nzip2john archive.zip > zip.hash && john zip.hash\n\n# QR codes \u002F barcodes\nzbarimg image.png\n# or: zxing online decoder\n\n# PDF analysis\npdfinfo document.pdf\npdf-parser.py -o 1 document.pdf    # extract object\npeepdf document.pdf -i             # interactive analysis\n```\n\n---\n\n## CTF Solve Workflow Summary\n\n```\n1. file + strings + xxd (30 seconds) → category decision\n2. Category-specific triage (Phases 1-6 above)\n3. Quick wins first: hardcoded strings, empty passphrase, default creds\n4. If stuck > 15 min: try adjacent technique (encoding layer, nested file)\n5. Note flag format from challenge description (e.g., FLAG{...}, ctf{...})\n6. Validate flag matches expected format before submitting\n```\n\n## ATT&CK Mapping\n\n| Phase | Technique |\n|-------|-----------|\n| Binary exploitation | T1059.004 (Unix Shell), T1203 (Exploit for Client Exec) |\n| Packer analysis | T1027.002 (Obfuscated Files - Software Packing) |\n| Crypto decoding | T1140 (Deobfuscate\u002FDecode Files), T1027 (Obfuscated Files) |\n| Stego extraction | T1564.003 (Hidden in Files\u002FImages) |\n| Memory forensics | T1055 (Process Injection detection), T1070 (Indicator Removal) |\n\n## Common CTF Pitfalls\n\n- **Flag encoding**: The flag may be base64\u002Fhex-encoded inside the file — always run `strings` first\n- **Wrong endianness**: x86 is little-endian; addresses printed by pwntools are auto-handled, but manual math is not\n- **ASLR vs PIE**: ASLR randomizes the stack\u002Fheap; PIE randomizes the binary base. Leak a pointer before building ROP chains\n- **Steghide vs zsteg**: steghide works on JPEG\u002FBMP with a passphrase; zsteg targets PNG\u002FBMP with LSB patterns\n- **Nested archives**: binwalk `-eM` (recursive) is essential — CTF files routinely nest 3-4 compression layers\n- **Unicode \u002F non-ASCII in crypto**: Check for zero-width characters, homoglyphs, whitespace encoding\n","# CTF Challenge Triage and Solve Methodology\n\n> **Authorized-use caveat**: This skill is for legal CTF competitions, security education, and authorized research environments only. Never apply these techniques to systems without explicit written authorization.\n\n## Phase 0 — Initial Triage (always first)\n\nIdentify challenge category before touching any tool.\n\n```bash\n# Universal file fingerprint\nfile challenge_file\nxxd challenge_file | head -4         # magic bytes\nstrings -n 8 challenge_file | head -30\nbinwalk challenge_file               # embedded files \u002F compression layers\nexiftool challenge_file              # metadata (images, PDFs)\n```\n\n| Magic bytes \u002F extension | Category | Next phase |\n|-------------------------|----------|------------|\n| ELF \u002F PE \u002F Mach-O       | Pwn \u002F Rev | Phase 1a \u002F 1b |\n| PNG \u002F JPG \u002F BMP \u002F WAV   | Steganography \u002F Forensics | Phase 2 |\n| PCAP \u002F PCAPNG           | Network forensics | Phase 3 |\n| Memory dump (`.raw`, `.vmem`, `.dmp`) | Memory forensics | Phase 4 |\n| Ciphertext \u002F hex blob \u002F base64 | Crypto | Phase 5 |\n| Web URL \u002F source        | Web | Use `exploit\u002Fweb\u002F` skills |\n| Archive \u002F unknown binary | Misc \u002F forensics | Phase 6 |\n\n---\n\n## Phase 1a — Pwn (Binary Exploitation)\n\n### Step 1 — Security property enumeration\n```bash\nchecksec --file=.\u002Fbinary\n# Key outputs: RELRO, Stack Canary, NX, PIE, RUNPATH\n```\n\n| Property | Absent = exploitable via... |\n|----------|----------------------------|\n| Stack canary | Stack overflow → ret2libc \u002F ROP |\n| NX (No-Execute) | Shellcode injection to stack\u002Fheap |\n| PIE | Fixed address assumptions for ROP gadgets |\n| Full RELRO | GOT overwrite |\n\n### Step 2 — Static analysis\n```bash\nobjdump -d .\u002Fbinary | grep -A 20 \"\u003Cmain>\"\nstrings .\u002Fbinary | grep -E \"(flag|CTF|pass|secret|\u002Fbin\u002Fsh)\"\nreadelf -s .\u002Fbinary | grep -E \"(sym|FUNC)\"\n# Heavy analysis\nghidra .\u002Fbinary  # or: r2 -A .\u002Fbinary\n```\n\n### Step 3 — Dynamic analysis + offset finding\n```bash\n# GDB with GEF\u002FPEDA\ngdb -q .\u002Fbinary\n# Inside GDB:\n# pattern create 200\n# run \u003C \u003C(python3 -c \"print('A'*200)\")\n# pattern offset $rsp\n\n# Pwntools skeleton\npython3 - \u003C\u003C'EOF'\nfrom pwn import *\ncontext.binary = elf = ELF('.\u002Fbinary')\np = process('.\u002Fbinary')\n# or: p = remote('challenge.host', 1337)\n\noffset = cyclic_find(0x61616161)  # replace with crashing value\npayload = b'A' * offset + p64(elf.sym['win'])\np.sendline(payload)\np.interactive()\nEOF\n```\n\n### Step 4 — ROP chain (when NX set)\n```bash\nROPgadget --binary .\u002Fbinary --rop | grep \"pop rdi\"\n# or: ropper -f .\u002Fbinary --search \"pop rdi\"\n\npython3 - \u003C\u003C'EOF'\nfrom pwn import *\nelf = ELF('.\u002Fbinary')\nlibc = ELF('.\u002Flibc.so.6')\nrop = ROP(elf)\nrop.call('puts', [elf.got['puts']])\nrop.call(elf.sym['main'])\n# Leak libc base, then ret2libc\nEOF\n```\n\n### Step 5 — Libc identification (remote exploits)\n```bash\n# Identify libc from leaked addresses\npython3 -m one_gadget libc.so.6\n# or: libc-database lookup\n```\n\n---\n\n## Phase 1b — Reverse Engineering\n\n### Step 1 — Static disassembly\n```bash\n# Strings for quick wins (flag format, hardcoded keys)\nstrings .\u002Fbinary | grep -iE \"(flag\\{|ctf\\{|[A-Z0-9_]{10,}\\})\"\n\n# Ghidra headless (no GUI)\nanalyzeHeadless \u002Ftmp\u002Fghidra_proj ChalProj \\\n  -import .\u002Fbinary \\\n  -postScript PrintASM.java \\\n  -scriptPath \u002Fopt\u002Fghidra\u002FGhidra\u002FFeatures\u002FDecompiler\u002Fghidra_scripts \\\n  2>\u002Fdev\u002Fnull\n\n# radare2 (faster for known binary formats)\nr2 -A .\u002Fbinary\n# Inside r2: afl (functions), pdf @ sym.main, VV (visual)\n```\n\n### Step 2 — Anti-debug \u002F packer detection\n```bash\n# Detect packers\nupx -t .\u002Fbinary  # UPX packed?\ndie .\u002Fbinary     # Detect-It-Easy\n# If packed: upx -d .\u002Fbinary\n\n# Entropy analysis (high entropy sections = packed\u002Fencrypted)\nbinwalk -E .\u002Fbinary\n```\n\nIf packed, see `reverser\u002Fpacker-unpacking\u002FSKILL.md`.\n\n### Step 3 — Symbolic execution for constraint solving\n```bash\n# Angr — solve unknown input to reach target state\npython3 - \u003C\u003C'EOF'\nimport angr, claripy\nproj = angr.Project('.\u002Fbinary', auto_load_libs=False)\nflag_chars = [claripy.BVS(f'flag_{i}', 8) for i in range(32)]\nflag = claripy.Concat(*flag_chars)\nstate = proj.factory.full_init_state(stdin=flag)\nfor c in flag_chars:\n    state.add_constraints(c >= 0x20, c \u003C= 0x7e)\nsm = proj.factory.simulation_manager(state)\nsm.explore(find=lambda s: b'Correct' in s.posix.dumps(1),\n           avoid=lambda s: b'Wrong' in s.posix.dumps(1))\nif sm.found:\n    print(sm.found[0].solver.eval(flag, cast_to=bytes))\nEOF\n```\n\n---\n\n## Phase 2 — Steganography \u002F Image Forensics\n\n### Triage order (fast to slow)\n```bash\n# 1. Metadata\nexiftool challenge.png\n# Look for: Comment field, GPS coords, Software, hidden IPTC\u002FXMP data\n\n# 2. Appended data after EOF marker\nxxd challenge.jpg | tail -20\n# JPEG ends at FF D9; anything after = appended content\n\n# 3. LSB steganography (most common CTF technique)\nzsteg challenge.png          # PNG\u002FBMP LSB\nstegsolve challenge.png      # GUI — bit plane analysis (run with: java -jar stegsolve.jar)\nsteghide extract -sf challenge.jpg -p \"\"   # try empty passphrase first\nsteghide extract -sf challenge.jpg -p \"password\"\n\n# 4. Outguess (JPEG)\noutguess -r challenge.jpg output.txt\n\n# 5. Audio steganography\nsox challenge.wav -n stat    # audio properties\nspectral view in Audacity or Sox spectrogram\n```\n\n### Password brute-force for steghide\n```bash\nstegseek challenge.jpg \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n```\n\n---\n\n## Phase 3 — Network Forensics (PCAP)\n\n```bash\n# Quick summary\ncapinfos challenge.pcap\ntshark -r challenge.pcap -q -z io,phs   # protocol hierarchy\ntshark -r challenge.pcap -q -z conv,tcp # TCP conversations\n\n# Extract HTTP objects (images, files)\ntshark -r challenge.pcap --export-objects http,\u002Ftmp\u002Fpcap_http\u002F\n\n# Extract credentials\ntshark -r challenge.pcap -Y \"ftp || http.request.method==POST\" -T fields \\\n  -e frame.number -e ip.src -e tcp.payload\n\n# Follow TCP stream (stream index from Wireshark or tshark)\ntshark -r challenge.pcap -q -z follow,tcp,ascii,0\n\n# DNS exfiltration\ntshark -r challenge.pcap -Y dns -T fields -e dns.qry.name | sort -u | grep -v \"\\.arpa\"\n```\n\n---\n\n## Phase 4 — Memory Forensics\n\n```bash\n# Identify OS profile\nvol3 -f memory.raw windows.info 2>\u002Fdev\u002Fnull || vol3 -f memory.raw linux.info\n\n# Windows\nvol3 -f memory.raw windows.pslist\nvol3 -f memory.raw windows.cmdline\nvol3 -f memory.raw windows.netscan\nvol3 -f memory.raw windows.malfind        # injected code\nvol3 -f memory.raw windows.dumpfiles --pid \u003CPID> --output-dir \u002Ftmp\u002F\n\n# Linux\nvol3 -f memory.raw linux.pslist\nvol3 -f memory.raw linux.bash\n\n# Carve files\nforemost -i memory.raw -o \u002Ftmp\u002Fforemost_out\u002F\n```\n\n---\n\n## Phase 5 — Cryptography Challenges\n\n### Step 1 — Identify cipher \u002F encoding\n```bash\n# Encoding layers (base64, hex, rot13, etc.)\necho \"encoded_string\" | base64 -d\necho \"encoded_string\" | xxd -r -p   # hex to binary\necho \"encoded_string\" | tr 'A-Za-z' 'N-ZA-Mn-za-m'  # ROT13\n# CyberChef magic function: https:\u002F\u002Fgchq.github.io\u002FCyberChef\u002F#recipe=Magic(3,false,false,'')\n\n# Hash identification\nhash-identifier \u003Chash>\nhashid \u003Chash>\n```\n\n### Step 2 — Classic cipher analysis\n```bash\n# Frequency analysis (substitution ciphers)\npython3 - \u003C\u003C'EOF'\nfrom collections import Counter\nct = \"YOUR_CIPHERTEXT_HERE\"\nfreq = Counter(c for c in ct.upper() if c.isalpha())\nfor char, count in freq.most_common(10):\n    print(f\"{char}: {count} ({count\u002Flen([c for c in ct if c.isalpha()])*100:.1f}%)\")\n# English: E=12.7%, T=9%, A=8.2%, O=7.5%\nEOF\n```\n\n### Step 3 — RSA attacks\n```bash\n# Factor small\u002Fweak modulus\npython3 - \u003C\u003C'EOF'\nfrom sympy import factorint\nn = \u003Cmodulus>\nfactors = factorint(n)\nprint(factors)  # p, q\n# If factored: phi=(p-1)*(q-1), d=pow(e,-1,phi), m=pow(c,d,n)\nEOF\n\n# Wiener's attack (small private exponent)\n# RsaCtfTool covers common attacks:\npython3 RsaCtfTool.py --publickey pub.pem --attack all --uncipherfile cipher.bin\n\n# Common primes \u002F known factors\n# Check factordb.com for n\n```\n\n### Step 4 — Hash cracking\n```bash\nhashcat -m \u003Cmode> hash.txt \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\n# -m 0=MD5, 1000=NTLM, 1800=sha512crypt, 13000=RAR5\njohn --wordlist=\u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt --format=\u003Cformat> hash.txt\n```\n\n---\n\n## Phase 6 — Misc \u002F Archive Analysis\n\n```bash\n# Multi-layer extraction\nbinwalk -eM challenge_file     # recursive extraction\n7z l archive.7z                # list contents without extracting\nzip2john archive.zip > zip.hash && john zip.hash\n\n# QR codes \u002F barcodes\nzbarimg image.png\n# or: zxing online decoder\n\n# PDF analysis\npdfinfo document.pdf\npdf-parser.py -o 1 document.pdf    # extract object\npeepdf document.pdf -i             # interactive analysis\n```\n\n---\n\n## CTF Solve Workflow Summary\n\n```\n1. file + strings + xxd (30 seconds) → category decision\n2. Category-specific triage (Phases 1-6 above)\n3. Quick wins first: hardcoded strings, empty passphrase, default creds\n4. If stuck > 15 min: try adjacent technique (encoding layer, nested file)\n5. Note flag format from challenge description (e.g., FLAG{...}, ctf{...})\n6. Validate flag matches expected format before submitting\n```\n\n## ATT&CK Mapping\n\n| Phase | Technique |\n|-------|-----------|\n| Binary exploitation | T1059.004 (Unix Shell), T1203 (Exploit for Client Exec) |\n| Packer analysis | T1027.002 (Obfuscated Files - Software Packing) |\n| Crypto decoding | T1140 (Deobfuscate\u002FDecode Files), T1027 (Obfuscated Files) |\n| Stego extraction | T1564.003 (Hidden in Files\u002FImages) |\n| Memory forensics | T1055 (Process Injection detection), T1070 (Indicator Removal) |\n\n## Common CTF Pitfalls\n\n- **Flag encoding**: The flag may be base64\u002Fhex-encoded inside the file — always run `strings` first\n- **Wrong endianness**: x86 is little-endian; addresses printed by pwntools are auto-handled, but manual math is not\n- **ASLR vs PIE**: ASLR randomizes the stack\u002Fheap; PIE randomizes the binary base. Leak a pointer before building ROP chains\n- **Steghide vs zsteg**: steghide works on JPEG\u002FBMP with a passphrase; zsteg targets PNG\u002FBMP with LSB patterns\n- **Nested archives**: binwalk `-eM` (recursive) is essential — CTF files routinely nest 3-4 compression layers\n- **Unicode \u002F non-ASCII in crypto**: Check for zero-width characters, homoglyphs, whitespace encoding\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"ctf, pwn, reversing, crypto, forensics, steganography, binary-exploitation, pwntools, angr, binwalk, steghide, volatility","reverse-engineering","CTF, capture the flag, pwn, rev, crypto challenge, forensics challenge, steganography, flag, challenge file, binary exploit","T1059.004, T1027, T1027.002, T1140, T1564.003","Bash Read Write","main","42b918525fb79065e730da3da997bffb33fcd414","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Freverser\u002Fctf-triage",0,"https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad","https:\u002F\u002Fgithub.com\u002F7ShIkI3","2026-07-22 19:02:27",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ctf-triage",{"tool":43,"command":44},"bunx","bunx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ctf-triage",{"tool":46,"command":47},"pnpm","pnpm dlx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill ctf-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Freverser\u002Fctf-triage\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M798TNHEBA4Y67TJJ7W0KBDD","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M798TH79VR8XM7AAMG0ZKSXX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M798TD0E10ZHQN5X362M4HG9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M798T7HFR3NB9WJTK1FESVF9","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M798T38B4SV0T87VQK56KPHC","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M798SXTNF0RP1DXKQEWFVQ9H","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]