Advertisement
anonymousvnorg

8

Mar 10th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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 -b dvwa.cookie -d "username=admin&password=password&user_token=${CSRF}&Login=Login" 192.168.1.33/DVWA/login.php
  3. HTTP/1.1 302 Found
  4. Date: Thu, 15 Oct 2015 20:32:34 GMT
  5. Server: Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.4.31
  6. X-Powered-By: PHP/5.4.31
  7. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  8. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  9. Pragma: no-cache
  10. Location: index.php
  11. Content-Length: 0
  12. Content-Type: text/html
  13.  
  14. [root:~]#
  15. [root:~]# curl -s -i -b dvwa.cookie -d "username=admin&password=password&user_token=${CSRF}&Login=Login" 192.168.1.33/DVWA/login.php | grep Location
  16. Location: index.php
  17. [root:~]# curl -s -i -b dvwa.cookie -d "username=admin&password=incorrect&user_token=${CSRF}&Login=Login" 192.168.1.33/DVWA/login.php | grep Location
  18. Location: login.php
  19. [root:~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement