Skip to content

chkfail/pwn_deploy_chroot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwn_deploy_chroot

Forked from

https://github.com/giantbranch/pwn_deploy_chroot

Improvements

  1. add python3 compatibility
  2. edit flags.json as necessary
  3. flags.json backup after running step2.py

How to Use

1. Git clone

git clone https://github.com/cyberfishtail/pwn_deploy_chroot

2. Add pwn executable files into ./bin directory

cd pwn_deploy_chroot
rm bin/*
mv yourfile bin/

You can edit config.py to decide whether to replace /bin/sh with catflag

# Whether to replace /bin/sh

## replace
REPLACE_BINSH = True
## not replace(default)
REPLACE_BINSH = False

3. Run step1.py

python3 step1.py

4. Edit flags.json as necessary

[
    {
        "port":10000,
        "filename":"rip",
        "flag":"flag{bddc24eb-61f0-4095-8d66-74cf2f1222a2}"
    }
]

5. Run step2.py

python3 step2.py

6. Docker compose run

docker-compose up --build -d

7. Maintenance

See backup json files in ./backup directory

About

Deploy pwn challenges with docker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 80.1%
  • C 18.9%
  • Shell 1.0%