Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 76d616dfe823156eb18f38bd1ad19fdb5d938150 2 parents 3b93ed1 + c56ecb6
Kos authored

Showing 1 changed file with 11 additions and 2 deletions. Show diff stats Hide diff stats

  1. +11 2 generateGAUTH.sh
13 generateGAUTH.sh
@@ -6,6 +6,7 @@
6 6
7 7
8 8 DB="$1"
  9 +count=1
9 10
10 11 echo $DB | grep '.tar' 2>/dev/null >/dev/null
11 12 isTar=$?
@@ -17,6 +18,14 @@ else
17 18 DBPath=$1
18 19 fi
19 20
20   -PASS=$(sqlite3 $DBPath "select password from accounts where type='com.google' and _id=5 limit 1")
  21 +PASS=$(sqlite3 $DBPath "select password from accounts where _id=1")
  22 +droid=$(sqlite3 $DBPath "select type from accounts where _id=1")
21 23
22   - 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"
  24 +while [ "$droid" != "com.google" ] && [ $count -ne 10 ]
  25 +do
  26 + count=$((count+1))
  27 + PASS=$(sqlite3 $DBPath "select password from accounts where _id=$count")
  28 + droid=$(sqlite3 $DBPath "select type from accounts where _id=$count")
  29 +done
  30 +
  31 +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.