https://github.com/giantbranch/pwn_deploy_chroot
- add python3 compatibility
- edit flags.json as necessary
- flags.json backup after running step2.py
git clone https://github.com/cyberfishtail/pwn_deploy_chroot
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
python3 step1.py
[
{
"port":10000,
"filename":"rip",
"flag":"flag{bddc24eb-61f0-4095-8d66-74cf2f1222a2}"
}
]
python3 step2.py
docker-compose up --build -d
See backup json files in ./backup directory