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"
adb forward tcp:1337 tcp:1337
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"
adb forward tcp:1337 tcp:1337
# | |
# 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 | |
Due to package version restrictions by mitm the OpenSSL version it uses is old and causes issues (we want OpenSSL 1.1.1+)
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