Gros

Mobile notes

Mostly from OWASP testing guide.

Good resources

Android

* Setup / commands:
    ```
    adb root
    adb shell
    # if error: insufficient permissions for device: udev requires plugdev group membership.
    # change Advanced setup -> USB configuration -> MTP

    # install cert in device
    adb push cacert.der /sdcard/Downloads

    # change certs etc.
    apktool d app.apk
    apktool b app
    java -jar sign.jar app/dist/app.apk
    adb install -r app/dist/app.s.apk

    # remove
    adb uninstall package

    # drozer
    adb forward tcp:31415 tcp:31415
    drozer console connect

    list
    run app.package.list -f app
    run app.package.attacksurface app.name


    # debugging
    adb jdwp  # list pids
    adb forward tcp:7777 jdwp:$pid
    {echo "suspend"; cat;} | jdb -attach localhost:7777
    am start -D -n "package/package.acrivity"  # start from adb shell to debug startup
    ```

iOS