Advertisement
kaiux

Challenge #8 pentesteracademylab

Sep 25th, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 1) I installed "Edit this cookie" https://chrome.google.com/webstore/detail/edit-this-cookie/fngmhnnpilhplaeedifhccceomclgfbg
  2.  
  3. 2) I entered the page: http://pentesteracademylab.appspot.com//lab/webapp/cookie/1
  4. and clicked on the "Edit this cookie" icon
  5.  
  6. 3) This cookie 'user_id' has the following content: TVE9PQo=
  7.  
  8. 4) We can use base64 command line to decrypt this string. I used base64d twice because the first one returns another base64 string
  9.  
  10. $ echo -n "TUE9PQ==" | base64 -d | base64 -d
  11.  
  12. The output is: 0
  13.  
  14.  
  15. 5) '1' should give us the webpage access
  16.  
  17. $ echo -n "1" | base64 | base64
  18.  
  19. The output is: TVE9PQo=
  20.  
  21. 6) Click again over the "Edit this cookie" icon, and update the 'cookie' value with this new one
  22. TVE9PQo=
  23.  
  24. I choose Host and Session selected, then send again this cookie.
  25.  
  26. 7) reload the webpage
  27. Well done!This challenge has been cracked!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement