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.0.tar.gz (65.3 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.0-py3-none-any.whl (74.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwnelle-1.0.0.tar.gz
  • Upload date:
  • Size: 65.3 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.0.tar.gz
Algorithm Hash digest
SHA256 a3802aee03c0676c68806ebde2ed92bae7286ed071495f9399fbfef73d2e7acb
MD5 bf84184a93ed0d0276e53370b5391842
BLAKE2b-256 74405a617ce5d611b94a2f58b469958d8f416c168a29e2cd5a28330af766a106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pwnelle-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 74.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecdf2e1bb079d30dd82281559af699cfcb66c1e9e3eeb7167d5043b08324855
MD5 ef129dcde700739c7e66106a39755dfc
BLAKE2b-256 9050f590484365642732008269c23ae849f70098c0cf56df41bce5fec59aae70

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