Git Product home page Git Product logo

pwntools's Introduction

Introduction

This is the CTF framework used by pwnies in every CTF.

Most code is inside the pwn folder, which is typically used as:

from pwn import *
context('i386', 'linux')

# EXPLOIT HERE

However we have made command-line frontends for much of the functionality inside the pwnlib. These are:

  • asm/disasm: Small wrapper for nasm
  • clookup: Tool for looking up constants (such as SYS_open) on various os/architecture combinations.
  • cyclic: De Bruijn sequence generator and lookup tool
  • nops: Tool for generating random nopsleds.
  • peek/poke: Simple tool for sending files over a LAN
  • randomua: Returns a random user agent
  • scramble: Shellcode packer
  • shellcraft: Frontend to our shellcode

We also have the following tools, not dependent on the pwnlib:

  • binutils directory: Assemblers and disassemblers for various architectures
  • bytes: Extract the raw bytes from various textual representations
  • crop: Cut out rectangular portions of text
  • demo32/demo64: Tool for testing shellcode
  • dictgen: Generate dictionaries from input corpora
  • gadgets: Find ROP gadgets
  • hex/unhex: Command line tools for doing common hexing/unhexing operations
  • mags: Run file at all offsets

All of these tools are symlinked to the bin folder.

Installation

To install it, just update your PYTHONPATH and PATH variables. Alternatively you can run install.sh.

Dependencies

Python libraries

crypto
gmpy
sympy
matplotlib

Haskell libraries

The following libraries may be installed using cabal.

disassembler
elf

All of the above

apt-get install cabal-install python-sympy python-matplotlib python-gmpy python-crypto && cabal update && cabal install disassembler elf

Contact

If you have any questions not worthy of a bug report, feel free to join us at #zomg_pwnies on Freenode and ask away.

pwntools's People

Contributors

br0ns avatar robertlarsen avatar haabb avatar narzeja avatar zachriggle avatar kristoff3r avatar ceryn avatar tayacan avatar runejuhl avatar thorlund avatar stephenr avatar alvoha avatar

Watchers

Zoran Zaric avatar James Cloos avatar Patrick Welzel avatar  avatar Jan Ruge avatar Florian Magin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.