Skip to content
Browse files

Merge branch 'master' of github.com:kosborn/p2p-adb

  • Loading branch information...
2 parents 3b93ed1 + c56ecb6 commit 76d616dfe823156eb18f38bd1ad19fdb5d938150 @kosborn committed Oct 31, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 generateGAUTH.sh
View
13 generateGAUTH.sh
@@ -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 76d616d

Please sign in to comment.
Something went wrong with that request. Please try again.