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
909 stars 179 forks source link

Error with file : android-certificate-unpinning.js #95

Closed Avilash1234 closed 1 month ago

Avilash1234 commented 1 month ago

" SyntaxError: redeclaration of 'NO_OP' at (/home/avilash/frida-interception-and-unpinning/android/android-certificate-unpinning.js:1) "

I'm getting this error when trying to use this script.

pimterry commented 1 month ago

That means in the combination of all the scripts you're using, there's two places where "NO_OP" is declared at the top level. In these scripts that only happens once: here in android/android-certificate-unpinning.js, so that means you're either adding that script twice on the command line (in which case you'll want to remove one of those), or you're using another script from somewhere else that also defines this (in which case you'll need to modify one of the scripts to fix this).

Either way, this isn't a problem with the scripts here (it's a problem with the specific setup of how you're using Frida and/or the other script you're using too) so I'm going to close this.