googleplay

package module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: OSL-3.0 Imports: 17 Imported by: 2

README

googleplay

Google Play API

https://godocs.io/github.com/89z/googleplay

How to get Android JA3?

First install:

https://github.com/emanuele-f/PCAPdroid

Start app, then change from HTTP Server to PCAP File. Then click start, if prompted to save, choose Downloads. Start Android Chrome and wait for a page to load. Then stop monitoring, and copy file to computer:

adb ls /sdcard/Download
adb pull /sdcard/Download/PCAPdroid_22_Oct_15_19_28.pcap

Then my other package can get you the rest of the way:

https://godocs.io/github.com/89z/parse/crypto

How to get Android public key?

Get this:

https://apkpure.com/google-play-services/com.google.android.gms

Then extract:

apktool d com.google.android.gms.apk

The Android public key modulus length should always be 128, which Base64 encoded looks like:

AAAAgA

So you should be able to search the extracted files for one of these:

AAAAg
public key available

Result:

smali\gnt.smali
320: const-string v1, "no public key available, using default"
321-
322- invoke-interface {v0, v1}, Lalyp;->u(Ljava/lang/String;)V
323-
324- const-string v0, "AAAAgMom/1a/v0lblO2Ubrt60J2gcuXSljGFQXgcyZWveWLEwo6prwg...

Thanks

https://github.com/4thel00z/google-play

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v1.0.4

type Auth struct {
	url.Values
}

func (Auth) Details added in v1.0.4

func (a Auth) Details(deviceID, app string) ([]byte, error)

deviceID is Google Service Framework.

func (Auth) Upload added in v1.1.3

func (a Auth) Upload(deviceID string, dev Device) error

This seems to return `StatusOK`, even with invalid requests, and the response body only contains a token, that doesnt seem to indicate success or failure. Only way I know to check, it to try the `deviceID` with a `details` request or similar. Also, after the POST, you need to wait at least 16 seconds before the `deviceID` can be used.

type Checkin added in v1.0.6

type Checkin struct {
	Android_ID int64
}

func (*Checkin) Decode added in v1.1.1

func (c *Checkin) Decode(r io.Reader) error

Read Checkin from file.

func (Checkin) Encode added in v1.1.1

func (c Checkin) Encode(w io.Writer) error

Write Checkin to file.

func (Checkin) String added in v1.0.6

func (c Checkin) String() string

type CheckinRequest added in v1.1.1

type CheckinRequest struct {
	Checkin struct{} `json:"checkin"`
	Version int      `json:"version"`
}

func NewCheckinRequest added in v1.1.1

func NewCheckinRequest() CheckinRequest

func (CheckinRequest) Post added in v1.1.1

func (c CheckinRequest) Post() (*Checkin, error)

type Device added in v1.0.6

type Device struct {
	Configuration struct {
		GlEsVersion            int32    `protobuf:"varint,8"`
		HasFiveWayNavigation   bool     `protobuf:"varint,6"`
		HasHardKeyboard        bool     `protobuf:"varint,5"`
		Keyboard               int32    `protobuf:"varint,2"`
		NativePlatform         []string `protobuf:"bytes,11"`
		Navigation             int32    `protobuf:"varint,3"`
		ScreenDensity          int32    `protobuf:"varint,7"`
		ScreenLayout           int32    `protobuf:"varint,4"`
		SystemAvailableFeature []string `protobuf:"bytes,10"`
		TouchScreen            int32    `protobuf:"varint,1"`
	} `protobuf:"bytes,1"`
}

func NewDevice added in v1.0.6

func NewDevice() Device

type Token added in v1.0.1

type Token struct {
	url.Values
}

func NewToken added in v1.0.4

func NewToken(email, password string) (*Token, error)

Request refresh token.

func (Token) Auth added in v1.0.4

func (t Token) Auth() (*Auth, error)

Exchange refresh token for access token.

func (*Token) Decode added in v1.1.0

func (t *Token) Decode(r io.Reader) error

Read Token from file.

func (Token) Encode added in v1.1.0

func (t Token) Encode(w io.Writer) error

Write Token to file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL