Skip to main content

A comprehensive Python toolkit for CTF exploit development.

Project description

pwninit

A Python toolkit for CTF binary exploitation. Streamline setup, development, and execution of exploits with automated binary analysis, library management, and template generation.

📖 Full documentation: pwninit.0xb0tm4n.org

Installation

pipx install pwninit.py

Basic Usage Example

Setup the chall:

$ pwninit

Edit exploit.py:

from pwninit import *

Config(
    binary="./chall",
    libc="./libc.so.6"
)

def exploit(ctx, io):
    exe = ctx.elf
    libc = ctx.libc

    ctx.offset = 128
    sl(ret2win('shell', ret=False))
    itrv()

Run the exploit:

$ run

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

pwninit_py-0.1.2.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

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

pwninit_py-0.1.2-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

Details for the file pwninit_py-0.1.2.tar.gz.

File metadata

  • Download URL: pwninit_py-0.1.2.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pwninit_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82076fae98d752e78c4d01537b5598f2e9b9bc45920822b52ba8633ae498ff20
MD5 4dbfe538412b5fe9890d7bac67794c92
BLAKE2b-256 864fd634b5a11bbc8d7be1bf2243dad3d922000daf3704bea2e45ba97547e471

See more details on using hashes here.

Provenance

The following attestation bundles were made for pwninit_py-0.1.2.tar.gz:

Publisher: publish.yml on Super-Botman/pwninit.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pwninit_py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pwninit_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 54.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pwninit_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ccbf5e4d0408ebb244c3094b27601c5044b73192053d96b18de764a2b70b54b
MD5 0a1988a4e1ae16d1e74e9b83c7878943
BLAKE2b-256 61008f28ed5d98481eb1a7c338444f57dc5fbfe68b22666529fd0ab91e310906

See more details on using hashes here.

Provenance

The following attestation bundles were made for pwninit_py-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Super-Botman/pwninit.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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