Skip to content

Instantly share code, notes, and snippets.

@sekkr1
sekkr1 / this-branch-maps04-restore-flamegraph.svg
Created March 5, 2026 14:41
CRIU maps04 restore flamegraph (this-branch, multi-NUMA)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sekkr1
sekkr1 / readme.md
Last active August 26, 2019 15:57
Getting mitmproxy to work with Facebook apps (TLSv1.3)

Cause of the issue

Due to package version restrictions by mitm the OpenSSL version it uses is old and causes issues (we want OpenSSL 1.1.1+)

How to fix

git clone https://github.com/mitmproxy/mitmproxy.git # Clone repo
cd mitmproxy
sed -ie "s/pyOpenSSL[^\"]*/pyOpenSSL/;s/cryptography[^\"]*/cryptography/" setup.py # Remove restrictions on package versions
#
# A script to auto scroll a phone using ADB
#
from subprocess import check_output, call
from argparse import ArgumentParser
from os import system
from random import randint
from time import sleep
@sekkr1
sekkr1 / android_gdb.md
Created August 12, 2019 15:27
Attaching GDB to Android apps' native libraries

How to GDB android native libraries

[1] Install NDK from android studio

[2] Push appropriate gdb-server to phone

adb push ~/android-sdk-linux/ndk-bundle/prebuilt/android-<arch>/gdbserver/gdbserver /data/local/tmp
adb shell "chmod 777 /data/local/tmp/gdbserver"
adb shell "ls -l /data/local/tmp/gdbserver"

[4] Forward ports

adb forward tcp:1337 tcp:1337