Skip to content

tesuji/termux-packages-pwntools

 
 

Repository files navigation

This is a fork to build python native modules to make installing pwntools (via pip) on termux possible.

Why a fork?

  • termux has a package policy that it doesn't accept hacking packages.

Installation instructions

pkg install python-bcrypt unicorn capstone sodium zstd
SODIUM_INSTALL=system pip install pynacl
# download my pre-built packages or build it yourself
# https://github.com/tesuji/termux-packages-pwntools/releases/tag/2025-05-18
dpkg -i python-capstone*.deb
dpkg -i python-unicorn*.deb
dpkg -i python-zstandard*.deb
pip install pwntools unicorn==2.1.3

How to build python native modules:

# clone this repository
git clone --depth 1 https://github.com/tesuji/termux-packages-pwntools
cd termux-packages-pwntools
./scripts/run-docker.sh
./build-package.sh -I python-capstone python-unicorn python-zstandard
# *.deb files are stored in output/ dir
# copy them to your phone and use dpkg to install them

NOTE:

  • I haven't done any tests to ensure that pwntools behaviors are correct on termux.
  • There is only pre-built packages for aarch64 ELF.
  • Use at your own risks.

TODO:

  • Use github actions to generate missing \*.deb files
  • Resolve potential unicorn version conflict

original readme below

Termux packages

GitHub repo size Packages last build status Docker image status Repology metadata

Join the Termux Discord server Join the Termux space on Matrix Join the Termux server on Telegram Official subreddit

Repository status

Hosted by Hetzner

This project contains scripts and patches to build packages for the Termux Android application.

Quick how-to about Termux package management is available at Package Management. It also has info on how to fix repository is under maintenance or down errors when running apt or pkg commands.

Contributing

Read CONTRIBUTING.md and Developer's Wiki for more details.

Community

The Termux Community docs are available here.

All our community members must follow the rules that are defined here and any Content Not Allowed must not be posted.

About

Package pwntools and its deps for Termux. View pwntools branch for more details.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 76.5%
  • C 13.4%
  • Lua 2.9%
  • C++ 2.7%
  • CMake 1.1%
  • Python 0.8%
  • Other 2.6%