Skip to content

Dockerfile for quickly and safely running binaries in a container with bunch of tools for CTF

Notifications You must be signed in to change notification settings

pilvar222/ctfhere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this does

  • Quickly create container with current directory mounted using the alias ctfhere
  • Attach other shells to this container with alsoctf
  • Mounted directory (/mnt/) files always have the same permissions as the host user
  • Pwninit's solve.py GDB argument will work from host, and will running both gdb pwndbg and the binary from the container while being in a new terminal on the host machine.

Install

git clone https://github.com/pilvar222/ctfhere/
cd ctfhere
bash build.sh

Disclaimer

The setup is cursed and even dangerous. Your computer shouldn't break, but I would suggest quickly going through build.sh before running it. I will clean this sooner or later. In the meantime, I'd be happy to receive contributions.

TODO

  • patch pwninit so that it also makes binaries whose libs are linked with a relative path have them linked with an absolute path.

About

Dockerfile for quickly and safely running binaries in a container with bunch of tools for CTF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published