king Posted July 15, 2015 Posted July 15, 2015 What wrong with it it won't run #!/bin/bash while IFS='' read -r line || [[ -n $line ]]; echo "Wat email";read email; echo "list";read pass; do br.form["$email"] = email br.form["$pass"] = password br.submit() login = "https://www.facebook.com/login.php?login_attempt=1" log = br.geturl if [ "$log" = "$login" ] then echo "pass: $log" done < "$pass" Quote
cooper Posted July 15, 2015 Posted July 15, 2015 (edited) The condition to your while loop should be immediately followed by 'do' so those echo lines are breaking your flow. Also, the if statement needs to be closed with a fi. Edit: And I've never seen something inserted into a while loop like you're doing on the last line with the pass variable... Edited July 15, 2015 by Cooper Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.