News for hackers. Stuff that matters.
Re:Apk.sh is a Bash script that makes reverse engineering An... by jacob019 on Saturday December 17, 2022 @11:45AM (#34029438)
It seems to be made for injecting Frida into APKs. I'm having trouble understanding what Frida is. Can I do something cool with it?
Re:Apk.sh is a Bash script that makes reverse engineering An... by saagarjha on Saturday December 17, 2022 @11:49AM (#34029483)
Frida lets you hook behavior in apps. Think of it like mocking but for reverse engineers.
Re:Apk.sh is a Bash script that makes reverse engineering An... by jacob019 on Saturday December 17, 2022 @12:21PM (#34029865)
Would this help to reverse engineer an encrypted API?
Re:Apk.sh is a Bash script that makes reverse engineering An... by jefficient on Saturday December 17, 2022 @12:50PM (#34030225)
Yes. For example you could hook the function that encrypts the outgoing payload and print it out before it is encrypted. And then for decryption you could hook the function that decrypts the payload as it comes in print out the result.

Going further, the API likely uses some secret key for encryption/decryption and you could hook that value out of the app as well.

Re:Apk.sh is a Bash script that makes reverse engineering An... by SeriousM on Saturday December 17, 2022 @06:30PM (#34033372)
Wow, that sounds really cool! Searching around i found this list: https://github.com/dweinstein/awesome-frida
Re:Apk.sh is a Bash script that makes reverse engineering An... by varenc on Saturday December 17, 2022 @12:55PM (#34030279)
Sadly the name "Frida" suffers from poor google-ability. But here you go: https://frida.re/

Basically it's _the_ reverse engineering toolkit for security researchers. Has excellent support across Android, iOS, macOS, Windows, etc.

Re:Apk.sh is a Bash script that makes reverse engineering An... by biosboiii on Saturday December 17, 2022 @01:28PM (#34030643)
I did not know that Frida is used for anything but Mobile apps, thanks :D
Re:Apk.sh is a Bash script that makes reverse engineering An... by xeonax on Saturday December 17, 2022 @09:36PM (#34034553)
It helps you inject a js runtime in your apps which have access to everything via reflection.

No need to recompile the app after making changes to smali (decompiled but modifiable language).

As you can just modify the js script and get the modified behavior.