Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 802 Bytes

README.md

File metadata and controls

55 lines (34 loc) · 802 Bytes

pwndocker

Create a lightweight docker container for solving CTF challenges

Setup

Prerequisites

Requires that docker is installed and running.

ArchLinux

cd PKGBUILD
makepkg -si

Other

make install

Usage

Download glibc deb file

Use fetch-libc LIBC to download a matching deb file from the Ubuntu archives.

Create docker container

Run sudo pwndocker EXEC_CMD GLIBC_DEB from your working directory.

The arguments should be given as relative paths and the binary may need to be preceeded by ./ to be executed.

Connect to docker container

Connect to socat using:

$ nc localhost 1337

Connect to gdbserver

Connect to the gdbserver using:

(gdb) target extended-remote localhost:13337

Uninstall

make remove