Skip to main content

Ultra-fast flag & string hunter for mixed/Unicode encodings

Project description

pwnelle

Version Python License

A modern binary analysis tool that helps identify vulnerabilities and generates exploit templates.

Features

  • Binary Analysis: Identifies protections, vulnerabilities, and executable properties
  • Vulnerability Detection: Recognizes common vulnerability patterns in binaries
  • Template Generation: Creates customized exploit templates based on detected vulnerabilities
  • ROP Gadget Identification: Finds and catalogs useful code gadgets
  • Comprehensive Reporting: Generates detailed HTML and JSON reports

Installation

# Install from PyPI
pip install pwnelle

# Or install from source
git clone https://github.com/EllE961/pwnelle.git
cd pwnelle
pip install -e .

Quick Start

# Basic analysis
pwnelle ./path/to/binary

# Generate exploit template
pwnelle ./path/to/binary --auto-exploit

# Save to specific directory
pwnelle ./path/to/binary -o output_dir

Usage

usage: pwnelle <binary> [options]

positional arguments:
  binary               Path to the ELF binary to analyze

optional arguments:
  -h, --help           Show help message and exit
  -o, --output         Output directory (default: pwnelle-out/<binary_name>)
  -v, --verbose        Show progress bars, extra diagnostics
  --auto-exploit       Generate exploit template
  --depth INT          Nested decode depth for smart strings (default: 2)
  --max-length INT     Maximum suggested payload length for template (default: 2000)

Output

pwnelle generates several files to assist with binary exploitation:

  • analysis.json: Full analysis results
  • report.md: Detailed vulnerability report
  • report.html: Interactive HTML report
  • gadgets.py: Detected ROP gadgets
  • exploit_template.py: Customized exploit skeleton (when using --auto-exploit)

Requirements

  • Python 3.8+
  • pwntools
  • capstone
  • pyelftools
  • ROPgadget
  • python-Levenshtein

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pwnelle-1.0.4.tar.gz (67.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pwnelle-1.0.4-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

Details for the file pwnelle-1.0.4.tar.gz.

File metadata

  • Download URL: pwnelle-1.0.4.tar.gz
  • Upload date:
  • Size: 67.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for pwnelle-1.0.4.tar.gz
Algorithm Hash digest
SHA256 c9bdfcf8575a3c17781f81daeb53a2570f275be45609303737f193f5a133be39
MD5 4b239a73def5264ea33fc55f4f9c9bf5
BLAKE2b-256 4081cc5f364c58c93b60de5e45a084c4de4d0f42a3cc16272e55cde38825a3de

See more details on using hashes here.

File details

Details for the file pwnelle-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pwnelle-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 79.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for pwnelle-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 536e5b5e46ec263469cb709a30b4a76fc2723840fe1c09443dc7401f57b53fb6
MD5 9d3e406fc3c8bfed58e128b9b31c8a5a
BLAKE2b-256 25328246fee405f6a4749d4cc9073cddacc413e5dfc8144e6f4893576cfa2a60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page