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.3.tar.gz (67.2 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.3-py3-none-any.whl (79.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwnelle-1.0.3.tar.gz
  • Upload date:
  • Size: 67.2 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.3.tar.gz
Algorithm Hash digest
SHA256 56b0ca26227835c67382c6fbcd7969523fb880bbfbeae5e879b2cfe7470f9879
MD5 64bc89269ceff9da53051365052bd750
BLAKE2b-256 1c5abee0cb71e0b0db83962efe8952df2888995a2af64736d1e27e5c075d9168

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pwnelle-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 79.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ecdfd2170a0457f9cf5cd87e2bbc2dfd54949c8f3494b70f57ae1ce8c5ac901
MD5 ff387807583514d5e08c3746c6bc3fac
BLAKE2b-256 cf3194ad0a49c10938affd61f03b72189fb9b3c2775c3d663d45be2c4495c6e5

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