Skip to content

Instantly share code, notes, and snippets.

@vilkoz
Created April 5, 2023 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vilkoz/28affdfe33e0130184eb6b6d8f513c54 to your computer and use it in GitHub Desktop.
Save vilkoz/28affdfe33e0130184eb6b6d8f513c54 to your computer and use it in GitHub Desktop.
Commands from the video

MITMproxy

brew install mitmproxy

Terminal interface:

mitmproxy -p 8888

Web interface:

mitmweb -p 8888 --set web_port=8082

MacOS local network IP address

ifconfig | grep "inet " | grep -v "127.0.0.1"

Android 13 connect to proxy in local network

Settings > Connections > Wi-Fi > Name of netwrok > settigns > View More > Proxy

IP address: IP of the PC
PORT: port supplied to mitmweb after "-p", in our example "8888"

MacOS install ADB

brew install --cask android-platform-tools

MacOS install apk-mitm

brew install node
npm install -g apk-mitm # if fail try with `sudo npm install ...`

Connect ADB over Wi-Fi

Enable developer settings: https://developer.android.com/studio/debug/dev-options

On Android:

Settings > Developer Options:
1. Enable "USB debugging"
2. Enable "Wireless debugging"

Go to "wireless debugging" > Pair device with pairing code

On MacOS:

adb pair DEVICE_IP:PORT # e.g. 192.168.0.42:34546, it should be now displayed on the device
adb devices
adb shell uname -a # will display "Linux ..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment