Skip to main content

A comprehensive Python toolkit for CTF exploit development.

Project description

pwninit

Tests Status

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.5.tar.gz (54.0 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.5-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwninit_py-0.1.5.tar.gz
  • Upload date:
  • Size: 54.0 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.5.tar.gz
Algorithm Hash digest
SHA256 172862d8332d549205f1cb5d9a2ad176292286e2c8675f98b7226079e00f0e2a
MD5 43ff7d40369b55dd03bdebde3d285d74
BLAKE2b-256 1e1fa05ae5bbe7b355b1195e57d64fdc26304a639ea7b2cb038f3a3161eb9254

See more details on using hashes here.

Provenance

The following attestation bundles were made for pwninit_py-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: pwninit_py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 56.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 24e5c7edcbf59ae0823bdaf6bab8ff05d798cbaf02b0bbfe8a13d3b5f3372ee8
MD5 45aeb52393b96dcc95c2544b64a580ad
BLAKE2b-256 f721fde2d178bc7e8926a9574ae4a2b07cb812f394654222e6378a615e0fbaf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pwninit_py-0.1.5-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