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
systemand/bin/shaddresses via properties. - Pwntools Integration: Inherits from
pwntools'sELFclass.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85eaec42a25f43c7f019ef04f6c14505d5b2db477ad3d9e09a329cf37afe2124
|
|
| MD5 |
57c30994f5fa2eb9a37513572f427c61
|
|
| BLAKE2b-256 |
3e3549caab757e049e02480887ca77d8c9063702fec38ee0672257f6e68ce7df
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e28ffdea5db7c01ecfc5cd2022d3af9e6b4d2b59a4e26d800bbce21769e2bd7
|
|
| MD5 |
9082af5e12f4c97ce370060bfbc2c45d
|
|
| BLAKE2b-256 |
dcee7f955f7ce7ce86c5562d71b39c40e73984b76082a696e41551124b91a551
|