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.15k stars 199 forks source link

syntax error: unexpected 'newline' #33

Closed rushkii closed 1 year ago

rushkii commented 1 year ago

Running command returning syntax error.

> adb shell "/data/local/tmp/frida-server &"
/data/local/tmp/frida-server[1]: syntax error: unexpected 'newline'
pimterry commented 1 year ago

This must be an issue with your Frida setup, not with this script. I'm not sure what that frida-server file contains in your case, but it's not the normal Frida server binary - that error suggests it's being treated as a script or similar. Maybe you've accidentally downloaded an error page instead, or you've pushed the wrong file? You can download and extract Frida from here: https://github.com/frida/frida/releases/.

I'm going to close this, since it's not related to this repo. If you're having issues with running Frida server in the first place, you should open an issue with Frida itself, they should be able to help you out.

rushkii commented 1 year ago

This must be an issue with your Frida setup, not with this script. I'm not sure what that frida-server file contains in your case, but it's not the normal Frida server binary - that error suggests it's being treated as a script or similar. Maybe you've accidentally downloaded an error page instead, or you've pushed the wrong file? You can download and extract Frida from here: https://github.com/frida/frida/releases/.

I'm going to close this, since it's not related to this repo. If you're having issues with running Frida server in the first place, you should open an issue with Frida itself, they should be able to help you out.

I'm using Android 12 and downloaded frida-core-devkit-16.0.19-android-arm64.tar.xz and extracted it. I ran the following commands: image

So which binary should I push? image

pimterry commented 1 year ago

Frida-core-devkit is not correct - you want frida-server

rushkii commented 1 year ago

Frida-core-devkit is not correct - you want frida-server

Ahh, I see. I downloaded the wrong release version, previous one has android frida server, I will try it later, thank you.