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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pwninit_py-0.1.3.tar.gz
  • Upload date:
  • Size: 50.7 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.3.tar.gz
Algorithm Hash digest
SHA256 e93fe5633d2ff0a6baaa38b0b54e36dd52eb944ec2fda5c7b1a10992e18a6e02
MD5 8ac21a4a75f70f53eade785fbb250c43
BLAKE2b-256 4670798db90a825046637a05c8af9ea4029bfd9a16aaeb680507b8651abd2407

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pwninit_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 54.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 552da4e4739962c3a88c4d2a18edb7591d616f8d08638e4ef75a63c34ed133a0
MD5 7c12c58bf70bfe4f6d68d233c275aba9
BLAKE2b-256 a85d93f97f3266047d2174a8613a998ae961827d03af40a5f3a17287235e272a

See more details on using hashes here.

Provenance

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