Skip to content

Instantly share code, notes, and snippets.

View ultrafunkamsterdam's full-sized avatar

Leon ultrafunkamsterdam

View GitHub Profile
@ultrafunkamsterdam
ultrafunkamsterdam / Pokemon GO conscrypt.NativeCrypto.SSL_Read and Write
Created May 11, 2018 11:31
Pokemon GO conscrypt.NativeCrypto.SSL_Read/Write
com.android.org.conscrypt.NativeCrypto.SSL_write
SSL_WRITE:
{"0":"3108017152","1":{"$handle":"0x105e52","$weakRef":363},"2":{"$handle":"0x5e4e","$weakRef":364},"3":[71,69,84,32,47,112,108,102,101,47,118,101,114,115,105,111,110,32,72,84,84,80,47,49,46,49,13,10,88,45,85,110,105,116,121,45,86,101,114,115,105,111,110,58,32,50,48,49,55,46,49,46,50,102,49,13,10,85,115,101,114,45,65,103,101,110,116,58,32,68,97,108,118,105,107,47,50,46,49,46,48,32,40,76,105,110,117,120,59,32,85,59,32,65,110,100,114,111,105,100,32,55,46,48,59,32,83,77,45,71,57,51,48,70,32,66,117,105,108,100,47,78,82,68,57,48,77,41,13,10,72,111,115,116,58,32,112,103,111,114,101,108,101,97,115,101,46,110,105,97,110,116,105,99,108,97,98,115,46,99,111,109,13,10,67,111,110,110,101,99,116,105,111,110,58,32,75,101,101,112,45,65,108,105,118,101,13,10,65,99,99,101,112,116,45,69,110,99,111,100,105,110,103,58,32,103,122,105,112,13,10,73,102,45,77,111,100,105,102,105,101,100,45,83,105,110,99,101,58,32,70,114,105,44,32,49,49,32,77,97,121,32,50,48,49,56,32,49,49,5
@ultrafunkamsterdam
ultrafunkamsterdam / Pokemon Go 1.101.1 Android com.nianticlabs.nia.location.NianticLocationManager
Created May 11, 2018 11:57
Pokemon Go 1.101.1 Android com.nianticlabs.nia.location.NianticLocationManager Intercept
*** exiting com.nianticlabs.nia.location.FusedLocationProvider$4.onLocationResult
*** entered com.nianticlabs.nia.location.LocationManagerProvider.updateGpsStatus
{"0":505,"1":[{"$handle":"0x203d92","$weakRef":2575},{"$handle":"0x203d8e","$weakRef":2576},{"$handle":"0x203d8a","$weakRef":2577},{"$handle":"0x203d86","$weakRef":2578},{"$handle":"0x203d82","$weakRef":2579},{"$handle":"0x203d7e","$weakRef":2580},{"$handle":"0x203d7a","$weakRef":2581},{"$handle":"0x203d76","$weakRef":2582},{"$handle":"0x203d72","$weakRef":2583},{"$handle":"0x203d6a","$weakRef":2584},{"$handle":"0x3d6e","$weakRef":2585},{"$handle":"0x3d66","$weakRef":2586}]}
arg[0]: 505
arg[1]: android.location.GpsSatellite@1b0d01f,android.location.GpsSatellite@eac3f6c,android.location.GpsSatellite@4321935,android.location.GpsSatellite@10111ca,android.location.GpsSatellite@d1c4f3b,android.location.GpsSatellite@7d3e658,android.location.GpsSatellite@57813b1,android.location.GpsSatellite@6068096,android.location.GpsSatellite@5f6a417,android.location
@ultrafunkamsterdam
ultrafunkamsterdam / Pokemon Go 1.102.1 Mitm raw logon request data
Last active May 15, 2018 23:28
Pokemon Go 1.102.1 Mitm raw logon request data
data captured from using a dns filter to act like being niantic rpc.
this is what comes in after hitting the login button
this is no rocket science, but reveals "some" info. so for the interested...
DATA: b'\x16\x03\x01\x00\xb8\x01\x00\x00\xb4\x03\x031J\x9c\xba\x87\xc7\x1c}\xb0\x1c<v\x81\n\x16\xf9\xc0p\x0e\xd0Y\x1d\xe3 J\x96\x80\xd5}\xa5\x00)\x00\x00$\xc0+\xc0,\xcc\xa9\xc0/\xc00\xcc\xa8\x00\x9e\x00\x9f\xc0\t\xc0\n\xc0\x13\xc0\x14\x003\x009\x00\x9c\x00\x9d\x00/\x005\x01\x00\x00g\xff\x01\x00\x01\x00\x00\x00\x00\x1f\x00\x1d\x00\x00\x1apgorelease.nianticlabs.com\x00\x17\x00\x00\x00#\x00\x00\x00\r\x00\x16\x00\x14\x06\x01\x06\x03\x05\x01\x05\x03\x04\x01\x04\x03\x03\x01\x03\x03\x02\x01\x02\x03\x00\x10\x00\x0b\x00\t\x08http/1.1\x00\x0b\x00\x02\x01\x00\x00\n\x00\x04\x00\x02\x00\x17'
HEX_PAIRS: 16 03 01 00 b8 01 00 00 b4 03 03 31 4a 9c ba 87 c7 1c 7d b0 1c 3c 76 81 0a 16 f9 c0 70 0e d0 59 1d e3 20 4a 96 80 d5 7d a5 00 29 00 00 24 c0 2b c0 2c cc a9 c0 2f c0 30 cc a8 00 9e 00 9f c0 09 c0 0a c0 13 c0 14 00 33 00 39 00
@ultrafunkamsterdam
ultrafunkamsterdam / Python 3.6 Asyncio multiple async event loops in multiple threads. Running and shutting down gracefully.py
Last active December 16, 2023 01:33
Python 3.6 Asyncio multiple async event loops in multiple threads. Running and shutting down gracefully
import asyncio
import threading
import random
import time
async def coro(n, name):
for i in range(n):
sleep_time = random.uniform(.3, .7)
print('coro({0}) [{1}/{2}] -> sleep_time {3:.2f}'.format(name, i, n, sleep_time), flush=True)
await asyncio.sleep(sleep_time)
@ultrafunkamsterdam
ultrafunkamsterdam / asyncio using streams
Created June 26, 2018 14:00
asyncio using streams setup
import asyncio
async def handle_echo(reader, writer):
data = await reader.read(100)
message = data.decode()
addr = writer.get_extra_info('peername')
print("Received %r from %r" % (message, addr))
print("Send: %r" % message)
@ultrafunkamsterdam
ultrafunkamsterdam / protobuf.meta
Created August 19, 2018 20:40
Pokemon Go 0.115.3 found proto's in apk
U
google.gcore.GCoreServiceId2com.google.android.gms.common.proto.GCoreServiceId "i
%google.gcore.GCoreServiceId.ServiceId<com.google.android.gms.common.proto.GCoreServiceId$ServiceId g
logs_proto.id_type���
proto2.FieldOptions"3com.google.protos.logs_proto.LogsAnnotations:idType(8t
logs_proto.temp_logs_only��
proto2.FieldOptions"9com.google.protos.logs_proto.LogsAnnotations:tempLogsOnly(8t
logs_proto.is_private_log�� proto2.FieldOptions"9com.google.protos.logs_proto.LogsAnnotations:isPrivateLog(8�
logs_proto.not_logged_in_sawmill���
proto2.FieldOptions"?com.google.protos.logs_proto.LogsAnnotations:notLoggedInSawmill(8q
@ultrafunkamsterdam
ultrafunkamsterdam / request_log_n1.log.json
Created August 20, 2018 00:33
Pokemon Go 0.115.3 : First RPC communication. 1 file per request except the first. should be parsed as json and prettyfied for readability
{"request_url": "https://pgorelease.nianticlabs.com/plfe/201/rpc2", "request_method": "POST", "content_encoding": None, "content_length": -1, "response_headers": "HTTP/1.1 200 OK\nAlt-Svc: clear\nCache-Control: no-cache\nDate: Mon, 20 Aug 2018 00:23:57 GMT\nServer: nginx/1.15.2\nTransfer-Encoding: chunked\nVia: 1.1 google\nX-Android-Received-Millis: 1534724671545\nX-Android-Response-Source: NETWORK 200\nX-Android-Selected-Protocol: http/1.1\nX-Android-Sent-Millis: 1534724671321\n", "response_body": "d\x96\x89L\x10`�ny\x85\x97�a\t��\x86�\x9c~R7Q%\x91��ønH\xa0R�\x18�\x1e��!\x87\x83�pIs�\"b\x1bб�9�\x06��pe\x14�\x00\x00\x00\x8b|�\x84\x8dhr\x1f\x03\x894o�Z\x91\x18Q��$�\x1e\x8e�\r�\x84\x9aQ�2\x9ci^��\x9dJ�\t\x00\x82��G�#\x00\x0e\x00\x14\x00\x10�\x00�\x0e\x86|\x00�\x88\x08\xa0\x00\x04\x00\x0fJ\x04\x00\x0e\x00\x00`\x00?"6p�\x1c�xz\x10\n\x00\x00�\x91\x13\x00;Q0y\x02\x00|\x00\x00L\x00\x00�\x01\x01\x01\x00\x00\x00l\x1c\x00\x00�\x14\x00\x00\x00\x00\x00\x0e\x00v\x14\x00!\x04\x00\x02\x13\x00\x0c�\x00&\x00\x00\x0b\x00\x90w\
This file has been truncated, but you can view the full file.
===================== HTTP_RESPONSE =============================
{'bytearray_outputstream': [],
'content_encoding': None,
'content_length': 0,
'content_length_calc': 0,
'request_method': 'POST',
'request_url': 'https://sso.pokemon.com/sso/login?service=http%3A%2F%2Fsso.pokemon.com%2Fsso%2Foauth2.0%2FcallbackAuthorize&locale=en_US',
'response_body': '',
'response_headers': 'HTTP/1.1 302 Found\n'
'Access-Control-Allow-Credentials: true\n'
@ultrafunkamsterdam
ultrafunkamsterdam / github.icls
Created October 17, 2018 06:03
Pycharm Github Color Scheme
<scheme name="GitHub 3 copy" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2018-10-17T08:02:22</property>
<property name="ide">Python</property>
<property name="ideVersion">2018.1.4.0.0</property>
<property name="modified">2018-10-17T08:02:37</property>
<property name="originalScheme">GitHub 3 copy</property>
</metaInfo>
<colors>
<option name="CARET_ROW_COLOR" value="fffbdd" />
@ultrafunkamsterdam
ultrafunkamsterdam / __init__.py
Created December 7, 2018 10:18
Python 3 main module template including shebang, docstring, metadata and boilerplate
#!/usr/bin/env python3
# *_* coding: utf-8 *_*
"""
module docstring - short summary
If the description is long, the first line should be a short summary that makes sense on its own,
separated from the rest by a newline
"""