Rust PwnTools
Rust PwnTools is a Rust crate inspired by Pwntools in Python, providing powerful tools for binary exploitation, reverse engineering, and CTF challenges. The crate supports:
- Process Handling
- Network Communication
- ELF & Binary Analysis
- ROP & Exploit Development
- Memory Operations
- Utilities
Getting Started
Add this to your Cargo.toml
:
[]
= "0.1.0"
Usage
Process Handling
use Process;
let mut process = new.expect;
let output = process.read_output.expect;
println!;
Network Communication
use Remote;
use Runtime;
let rt = new.unwrap;
rt.block_on;
Binary Analysis
use Binary;
use Path;
let binary = parse.expect;
for symbol in binary.symbols
ROP & Exploit Development
use RopChain;
let mut rop_chain = new;
rop_chain.add_gadget;
let payload = rop_chain.generate_payload;
println!;
Memory Operations
use Memory;
let pid = 12345; // Replace with a real PID for testing
let memory = attach.expect;
let mut buffer = ;
memory.read.expect;
println!;
memory.detach.expect;
License
This project is licensed under the MIT License.