You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add neovim, ImHex, upx, unblob, p7zip; fix X11 and GDB support
- Add neovim, ImHex, upx, p7zip-full, unblob to the image
- Fix X11 GUI: add xcb/GL/EGL libs, switch to openjdk-21-jdk (non-headless)
- Add CTF_UID/CTF_GID build args (default 1000) for X11 socket permissions
- Remove default ubuntu user to free UID 1000 for ctf user
- Add --cap-add=SYS_PTRACE to all docker run examples for GDB
- Optimize Dockerfile: BuildKit cache mounts, merge layers, fewer RUN steps
- Update README.md and CLAUDE.md with new tools and usage instructions
Copy file name to clipboardExpand all lines: CLAUDE.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,22 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
A Docker image for CTF pwn/reverse-engineering. Single Dockerfile (Ubuntu 24.04) with 40+ pre-installed tools, a non-root `ctf` user, and GDB plugin switching.
7
+
A Docker image for CTF pwn/reverse-engineering. Single Dockerfile (Ubuntu 24.04) with 45+ pre-installed tools, a non-root `ctf` user (UID configurable via build args), and GDB plugin switching.
8
8
9
9
## Build & Run
10
10
11
11
```bash
12
12
# Build
13
13
docker build -t pwndocker-reverse .
14
14
15
-
#Run interactively
16
-
docker run -it --rm -v $(pwd):/ctf pwndocker-reverse
15
+
#Build with custom UID/GID (if host UID is not 1000)
A single Dockerfile that bundles 40+ CTF pwn and reverse-engineering tools into one Ubuntu 24.04 image. Includes 7 disassemblers and decompilers (Ghidra, IDA Free, Binary Ninja Free, Cutter, radare2, rizin, retdec), 3 GDB plugins with instant switching, and a pre-populated command history.
7
+
A single Dockerfile that bundles 45+ CTF pwn and reverse-engineering tools into one Ubuntu 24.04 image. Includes 7 disassemblers and decompilers (Ghidra, IDA Free, Binary Ninja Free, Cutter, radare2, rizin, retdec), 3 GDB plugins with instant switching, and a pre-populated command history.
8
8
9
9
IDA Free and Binary Ninja Free are installed from their vendors' free-tier downloads. Users are responsible for compliance with each vendor's license terms.
10
10
11
11
## Why?
12
12
13
-
Given Docker on the host, this image packages 40+ tools that would otherwise require separate installation steps -- Python packages, Java-based disassemblers, GDB plugins, and Ruby gems -- into a single Dockerfile.
13
+
Given Docker on the host, this image packages 45+ tools that would otherwise require separate installation steps -- Python packages, Java-based disassemblers, GDB plugins, and Ruby gems -- into a single Dockerfile.
# Start the container with your challenge directory mounted
56
-
docker run -it --rm -v $(pwd):/ctf pwndocker-reverse
61
+
docker run -it --rm --cap-add=SYS_PTRACE -v $(pwd):/ctf pwndocker-reverse
57
62
58
63
# Analyze the binary
59
64
checksec --file=./challenge
@@ -90,7 +95,7 @@ gdb-switch pwndbg # set default for plain `gdb`
90
95
Requires X11 forwarding. On Linux this works natively; on macOS install [XQuartz](https://www.xquartz.org/), on Windows install [VcXsrv](https://sourceforge.net/projects/vcxsrv/) or use WSLg.
0 commit comments