anonymousvnorg

5

Mar 10th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. [root:~]# CSRF=$(curl -s -c dvwa.cookie 192.168.1.33/DVWA/login.php | awk -F 'value=' '/user_token/ {print $2}' | cut -d "'" -f2)
  2. [root:~]# curl -s -i -L -b dvwa.cookie -d "username=user&password=pass&user_token=${CSRF}&Login=Login" 192.168.1.33/DVWA/login.php > /root/after.txt
  3. [root:~]#
  4. [root:~]# !diff #diff /root/before.txt /root/after.txt
  5. 0a1,11
  6. > HTTP/1.1 302 Found
  7. > Date: Thu, 15 Oct 2015 19:58:45 GMT
  8. > Server: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31
  9. > X-Powered-By: PHP/5.4.31
  10. > Expires: Thu, 19 Nov 1981 08:52:00 GMT
  11. > Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  12. > Pragma: no-cache
  13. > Location: login.php
  14. > Content-Length: 0
  15. > Content-Type: text/html
  16. >
  17. 2c13
  18. < Date: Thu, 15 Oct 2015 19:57:20 GMT
  19. ---
  20. > Date: Thu, 15 Oct 2015 19:58:46 GMT
  21. 5d15
  22. < Set-Cookie: PHPSESSID=0pjgscf6jcektumgsegqk8gnf6; path=/
  23. 9,11c19
  24. < Set-Cookie: PHPSESSID=0pjgscf6jcektumgsegqk8gnf6; path=/; httponly
  25. < Set-Cookie: security=impossible; httponly
  26. < Content-Length: 1568
  27. ---
  28. > Content-Length: 1607
  29. 60c68
  30. < <input type='hidden' name='user_token' value='4bdcf7426fc9438c751ef8d3c7113f2e' />
  31. ---
  32. > <input type='hidden' name='user_token' value='3eae6f4ceeabfb56e5e390f30bb0195b' />
  33. 66c74
  34. <
  35. ---
  36. > <div class="message">Login failed</div>
  37. [root:~]#
Add Comment
Please, Sign In to add comment