Skip to content

Instantly share code, notes, and snippets.

@sapran
Last active December 25, 2023 10:00
Show Gist options
  • Save sapran/d16659ba8a70acb045196f0a6d001953 to your computer and use it in GitHub Desktop.
Save sapran/d16659ba8a70acb045196f0a6d001953 to your computer and use it in GitHub Desktop.
Links and snippets for mobile app pentesting workshop

Prerequisites

(Preferably) Use a VPN

Install a proxy tool of choise

Android Studio

Scope & Rules of Engagement

Read Privatbank Bug Bounty program brief

Download Andriod application

Preparation

Create virtual device

Startup the emulator

emulator -avd OWASPKyiv -writable-system -http-proxy http://127.0.0.1:8080

Look around

adb devices
adb shell

Install Burp/ZAP certificate

openssl x509 -inform der -in cacert.der -out cacert.pem
adb push cacert.pem /sdcard/
  • Settings / Security / Install from SD card

Install Xposed Framework Installer

adb install XposedInstaller_3.1.4.apk

Root the device: bash emulator_root.sh

#!/bin/bash

adb root
adb remount
adb -e push su.pie /system/xbin/su
adb shell chmod 06755 /system/xbin/su
adb shell su --install
adb shell su --daemon&
adb shell setenforce 0

Repeat Xposed installation

Install Inspeckage and SSL Unpinning

Forward local ports

adb forward tcp:8008 tcp:8008

Access http://:8008 on laptop

Install APK for testing

adb install ua.privatbank.pfm.apk

Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment