Skip to content

Instantly share code, notes, and snippets.

View fynngodau's full-sized avatar

fynngodau

View GitHub Profile
@fynngodau
fynngodau / packGrpc.py
Created March 13, 2024 15:54
Encode as grpc request
# * provide a message to be grpc encoded: `python packGrpc.py $FILE`
# * grpc compression will not be enabled
# * output: $FILE.pac is a one-message grpc frame
# opposite of https://gist.github.com/fynngodau/bba7b2d11a17d01f8439979f3cfe4fb9
import struct
import sys
assert len(sys.argv) == 2
@fynngodau
fynngodau / parseGrpc.py
Last active March 12, 2024 15:10
Decode one grpc message
# * provide a grpc encoded file as parameter: `python parseGrpc.py $FILE`
# * grpc compression must not be enabled
# * output: $FILE.dec is the first grpc message
# based on mitmproxy grpc parser:
# https://github.com/mitmproxy/mitmproxy/blob/a26013908a95a270291de4c462d4074477b9a8d2/mitmproxy/contentviews/grpc.py#L866-L888
import struct
import sys
@fynngodau
fynngodau / gist:066b010dbf63a4f1d3c8fed5af7d562e
Created April 7, 2019 10:14
DEMOCRACY crash report, von Start bis Ende
04-07 12:06:06.270 973-1395/? E/LightsService: Light requested not available on this device. 2
04-07 12:06:06.381 973-2006/? I/ActivityManager: Killing 15229:de.democracydeutschland.app/u0a353 (adj 900): crash
04-07 12:06:06.398 15267-15267/? I/cr_ChildProcessService: Destroying ChildProcessService pid=15267
04-07 12:06:06.406 15267-15267/? I//system/bin/webview_zygote32: System.exit called, status: 0
04-07 12:06:06.406 15267-15267/? I/AndroidRuntime: VM exiting with result code 0, cleanup skipped.
04-07 12:06:06.403 973-1328/? W/zygote64: kill(-15229, 9) failed: No such process
04-07 12:06:06.436 973-2006/? I/ActivityManager: START u0 {act=android.intent.action.MAIN flg=0x10100000 cmp=de.democracydeutschland.app/.MainActivity} from uid 10353
04-07 12:06:06.451 2067-2067/? D/LaunchTime: onPause
04-07 12:06:06.454 973-1328/? W/zygote64: kill(-15229, 9) failed: No such process
04-07 12:06:06.466 973-13138/? I/ActivityManager: Process com.android.webview:sandboxed_process0 (pid 15267) has died: fore SVC