httptoolkit / frida-interception-and-unpinning

Frida scripts to directly MitM all HTTPS traffic from a target mobile application
https://httptoolkit.com/android/
GNU Affero General Public License v3.0
1.13k stars 197 forks source link

Failed to attach: closed #65

Closed Jiroun closed 11 months ago

Jiroun commented 11 months ago

Hello , Any one Faced this problem ? know how to solve this

PS C:\Users\al\Downloads> frida -U -l ./config.js -l ./android-certificate-unpinning.js -f com.wXXXXX.XXXXX


/ _  |   Frida 16.1.8 - A world-class dynamic instrumentation toolkit

| (_| |

| Commands: // |_| help -> Displays the help system . . . . object? -> Display information about 'object' . . . . exit/quit -> Exit . . . . . . . . More info at https://frida.re/docs/home/ . . . . . . . . Connected to Android Emulator 5554 (id=emulator-5554) Failed to attach: closed PS C:\Users\al\Downloads>

pimterry commented 11 months ago

No idea I'm afraid. Maybe the ADB connection you're using is unstable? Could even be a dodgy USB cable.

Does it happen with other apps on the same device? If not, this could be some kind of Frida detection mechanism inside the app itself.

Does it happen if you don't use these scripts at all? (i.e. if you run just frida -U -f com.XXX). If so, it's probably best to look at the Frida repo instead of here: https://github.com/frida/frida/

Jiroun commented 11 months ago

No idea I'm afraid. Maybe the ADB connection you're using is unstable? Could even be a dodgy USB cable.

Does it happen with other apps on the same device? If not, this could be some kind of Frida detection mechanism inside the app itself.

Does it happen if you don't use these scripts at all? (i.e. if you run just frida -U -f com.XXX). If so, it's probably best to look at the Frida repo instead of here: https://github.com/frida/frida/

Thanks for your response , actually I am on emulator , no need usb Just tried on youtube , same problem

PS C:\Users\al\Downloads> frida -U -l ./config.js -l ./android-certificate-unpinning.js -f com.google.android.youtube


/ _  |   Frida 16.1.8 - A world-class dynamic instrumentation toolkit

| (_| |

| Commands: // |_| help -> Displays the help system . . . . object? -> Display information about 'object' . . . . exit/quit -> Exit . . . . . . . . More info at https://frida.re/docs/home/ . . . . . . . . Connected to Android Emulator 5554 (id=emulator-5554) Failed to attach: closed PS C:\Users\al\Downloads>

frida -U -f com.google.android.youtube even this not worked

I put the same ca-certificate here C:\Users\al\AppData\Local\httptoolkit\Config\ca.pem

in the config

is this ok?

pimterry commented 11 months ago

frida -U -f com.google.android.youtube even this not worked

Ok, that means it's not related to these scripts (and so your config doesn't matter either). It's somebody about your emulator, or about how you're running Frida. You'll need to debug those separately I'm afraid.

I'm going to close this issue, since this repo is just focused on these scripts, and that means this isn't related. For issues with Frida in general like this, you should talk to the Frida team at https://github.com/frida/frida/ (stack overflow etc are also often good for this kind of thing).