Skip to content

Commit

Permalink
Implemented the changes in NoMore201#161
Browse files Browse the repository at this point in the history
Still not working however, getting bad auth
  • Loading branch information
marty0678 committed May 28, 2022
1 parent 91a6f31 commit dbaa06f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions gpapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def getLoginParams(self, email, encrypted_passwd):
"device_country": self.locale[0:2],
"lang": self.locale,
"client_sig": "38918a453d07199354f8b19af05ec6562ced5788",
"callerSig": "38918a453d07199354f8b19af05ec6562ced5788"}

"callerSig": "38918a453d07199354f8b19af05ec6562ced5788",
"droidguard_results": "dummy123"}

def getAndroidCheckinRequest(self):
request = googleplay_pb2.AndroidCheckinRequest()
request.id = 0
Expand Down
23 changes: 12 additions & 11 deletions gpapi/googleplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,12 @@ def login(self, email=None, password=None, gsfId=None, authSubToken=None):
params['service'] = 'ac2dm'
params['add_account'] = '1'
params['callerPkg'] = 'com.google.android.gms'
headers = self.deviceBuilder.getAuthHeaders(self.gsfId)
headers['app'] = 'com.google.android.gsm'
response = self.session.post(AUTH_URL, data=params, verify=ssl_verify,
proxies=self.proxies_config)
with requests.Session() as s:
s.headers = {'User-Agent': 'GoogleAuth/1.4'}
response = s.post(AUTH_URL,
data=params,
verify=ssl_verify,
proxies=self.proxies_config)
data = response.text.split()
params = {}
for d in data:
Expand Down Expand Up @@ -286,13 +288,12 @@ def getAuthSubToken(self, email, passwd):
requestParams = self.deviceBuilder.getLoginParams(email, passwd)
requestParams['service'] = 'androidmarket'
requestParams['app'] = 'com.android.vending'
headers = self.deviceBuilder.getAuthHeaders(self.gsfId)
headers['app'] = 'com.android.vending'
response = self.session.post(AUTH_URL,
data=requestParams,
verify=ssl_verify,
headers=headers,
proxies=self.proxies_config)
with requests.Session() as s:
s.headers = {'User-Agent': 'GoogleAuth/1.4', 'device':"{0:x}".format(self.gsfId)}
response = s.post(AUTH_URL,
data=requestParams,
verify=ssl_verify,
proxies=self.proxies_config)
data = response.text.split()
params = {}
for d in data:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protobuf==3.13.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pyinstaller==4.0
pyinstaller==4.9
pyinstaller-hooks-contrib==2020.9
pytz==2020.1
pywin32-ctypes==0.2.0
Expand Down

0 comments on commit dbaa06f

Please sign in to comment.