Skip to main content

A CTF pwn helper library for easy libc address calculation

Project description

loopwn

A Python library designed to assist with CTF Pwn challenges, specifically focusing on Libc address calculation and leak exploitation.

Installation

pip install loopwn

Usage

from loopwn import Looplibc

# Example 1: Initialize with a known base address
libc = Looplibc('./libc.so.6', 0x7ffff7a0d000)

# Example 2: Initialize with a leaked symbol address
# This will automatically calculate the base address
libc = Looplibc('./libc.so.6', 'puts', 0x7ffff7a8c5a0)

# Access addresses
print(hex(libc.system))
print(hex(libc.bin_sh))

Features

  • Automatic Base Calculation: Easily calculate libc base address from a leaked symbol.
  • Quick Access: Get system and /bin/sh addresses via properties.
  • Pwntools Integration: Inherits from pwntools's ELF class.

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

loopwn-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

loopwn-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file loopwn-0.1.0.tar.gz.

File metadata

  • Download URL: loopwn-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for loopwn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85eaec42a25f43c7f019ef04f6c14505d5b2db477ad3d9e09a329cf37afe2124
MD5 57c30994f5fa2eb9a37513572f427c61
BLAKE2b-256 3e3549caab757e049e02480887ca77d8c9063702fec38ee0672257f6e68ce7df

See more details on using hashes here.

File details

Details for the file loopwn-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: loopwn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for loopwn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e28ffdea5db7c01ecfc5cd2022d3af9e6b4d2b59a4e26d800bbce21769e2bd7
MD5 9082af5e12f4c97ce370060bfbc2c45d
BLAKE2b-256 dcee7f955f7ce7ce86c5562d71b39c40e73984b76082a696e41551124b91a551

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