From affa05955356cb8cd528c0fd3d937ac5c9f15c38 Mon Sep 17 00:00:00 2001 From: Steven Penny Date: Mon, 20 Feb 2023 05:44:06 -0600 Subject: [PATCH] + "droidguard_results": {"-"}, --- auth.go | 6 +++--- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auth.go b/auth.go index e346083..248a1fd 100644 --- a/auth.go +++ b/auth.go @@ -19,7 +19,7 @@ func New_Auth(email, password string) (*Response, error) { "Email": {email}, "Passwd": {password}, "client_sig": {""}, - "droidguard_results": {"."}, + "droidguard_results": {"-"}, }.Encode() req, err := http.NewRequest( "POST", "https://android.googleapis.com/auth", @@ -29,8 +29,8 @@ func New_Auth(email, password string) (*Response, error) { return nil, err } req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - var hello tls.Client_Hello - if err := hello.UnmarshalText(tls.Android_API_26()); err != nil { + hello := tls.New_Client_Hello() + if err := hello.UnmarshalText(tls.Android_API()); err != nil { return nil, err } res, err := Client.Transport(hello.Transport()).Do(req) diff --git a/go.mod b/go.mod index e4abbe5..9881af5 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module 2a.pages.dev/googleplay go 1.19 -require 2a.pages.dev/rosso v1.0.8 +require 2a.pages.dev/rosso v1.1.0 require ( github.com/andybalholm/brotli v1.0.5 // indirect diff --git a/go.sum b/go.sum index cccd6f7..047ef4f 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -2a.pages.dev/rosso v1.0.8 h1:ddm/S/v8N8E5msE1dZBlgRv0vHLXOHFG9ElaDcPNfYI= -2a.pages.dev/rosso v1.0.8/go.mod h1:BdsjSTjdUXzcr3IdZ/LdA/NqWVMI+AesF6Nq24eyowY= +2a.pages.dev/rosso v1.1.0 h1:tvuaH5+crIWbJlSpT1oqFclDHaco2zdsJj/q1tDPK5w= +2a.pages.dev/rosso v1.1.0/go.mod h1:BdsjSTjdUXzcr3IdZ/LdA/NqWVMI+AesF6Nq24eyowY= github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=