Skip to content

Commit

Permalink
Make sure the host can compile 32bit binaries, and fix permissions on…
Browse files Browse the repository at this point in the history
… the vulnerable binary
  • Loading branch information
Nick Stephens committed Mar 4, 2015
1 parent def7574 commit b7c8331
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ chmod 700 /home/vulnuser
# configure vulnuser and flag
cd /tmp/challenge-files
/tmp/challenge-files/generate/generate.py easy

# configure the vulnerable binary
cp /tmp/challenge-files/vuln /home/vulnuser/
chown root:vulnuser /home/vulnuser/vuln
chmod 750 /home/vulnuser/vuln

# configure the flag
echo "flag{congrats, this should be randomly generated in the future}" > /home/vulnuser/flag
chown root:vulnuser /home/vulnuser/flag
chmod 640 /home/vulnuser/flag
Expand Down
1 change: 1 addition & 0 deletions config/rop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Roles:
- xinetd
- vim
- emacs
- gcc-multilib
Recipes:
- sshd_password_login

Expand Down

0 comments on commit b7c8331

Please sign in to comment.