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

pip install pwninit.py

Basic Usage Example

Setup the chall:

$ pwninit

Edit exploit.py:

from pwninit import *

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


def setup(args: Args, config: Config):
    open("flag.txt", "w").write('flag{hello}')


def exploit(ctx: PwnContext, io: IOContext):
    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.6.tar.gz (6.5 MB 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.6-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwninit_py-0.1.6.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • 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.6.tar.gz
Algorithm Hash digest
SHA256 ee232139ec96fa6f35348af55ac45e6e2c60178dcad4ec499e464e96aab57efb
MD5 e63b2e43d05b4f91e4caee2493832b6a
BLAKE2b-256 2576f7447022799b08e9acae94b617cd6144a56321b47804901f50a6d16d8c0a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pwninit_py-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 55.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 085ca132b712a5c15ceffce81999fd686a3c19d20b22ed51dbcd0a4d9eebb8f3
MD5 f9d458c8021033ed53a01dccc72df977
BLAKE2b-256 ae485b27e045267008059e02454dccc1d9f16c0ff4ebaa55ec2ea048e05458f9

See more details on using hashes here.

Provenance

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