Questions tagged [frida]

FRIDA is a free dynamic instrumentation toolkit which lets you inject your own scripts into black box processes. Works on Windows, macOS, GNU/Linux, iOS, Android, and QNX.

It’s Greasemonkey for native apps, or, put in more technical terms, it’s a dynamic code instrumentation toolkit. It lets you inject snippets of JavaScript or your own library into native apps on Windows, macOS, GNU/Linux, iOS, Android, and QNX. Frida also provides you with some simple tools built on top of the Frida API. These can be used as-is, tweaked to your needs, or serve as examples of how to use the API.

328 questions
2
votes
0 answers

Get SymmetricKey from Swift binary

I'm trying to demonstrate that having a CryptoKit.SymmetricKey stored/generated in a binary isn't secure and made a test script: import Foundation import CryptoKit let key = SymmetricKey(data: Data([0x18, 0xd3, 0x31, 0xd0, 0xb4, 0x42, 0x55, 0x71,…
Swifty
  • 21
  • 2
2
votes
1 answer

get a variable value from a method at runtime with frida

I'm completely beginner to frida. I've this final method which belongs to class say X. I want to extract the value of token variable -> result.getToken() when i hook frida to the android app which contains that class at runtime. can anyone complete…
nora
  • 25
  • 3
2
votes
1 answer

Frida server keeps respawning

I have a frida server running on my phone. I want to stop it and start a different one. Running ps -A | grep frida gives me the PID to kill. root 19124 1064 132952 48396 poll_schedule_timeout 7b141fd0c8 S frida-server root 19359 …
Dino
  • 7,779
  • 12
  • 46
  • 85
2
votes
2 answers

Frida: nothing happens when hooking function

Hello I'm trying to hook a function that stores variables in some interface, but when I do, nothing happens, there no error, no log. Function I'm trying to hook looks like this: package somepackagename.a; public interface a { c a(String str, String…
2
votes
1 answer

Android Frida Error When A Process is Attached

From that code line: process = frida.get_usb_device(1).attach('com.android.settings') I got the following error: raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name) frida.ProcessNotFoundError: unable to find…
KosD
  • 61
  • 1
  • 9
2
votes
1 answer

frida -U -n "packagename" is giving a failure to spawn frida, unable to find process with the name

I am trying to connect with frida to a certain application and its gives me the following error: Failed to spawn: unable to find process with the name "com.androidpentesting.securestore" This happens after i write this command: frida -U -n…
Guy
  • 9
  • 4
2
votes
1 answer

remove element from list while overload function with Frida

I debug an android application with Frida and I overload function that return java.util.List I want to remove the first element from List that the function is return. How can I do that please? Java.perform(function x() { var…
vtable
  • 302
  • 2
  • 15
2
votes
0 answers

Can Xposed be used to intercept calls to native code?

Referring the Frida tutorial. public class MainActivity extends AppCompatActivity { static { System.loadLibrary("native-lib"); } public native int Jniint(); In the tutorial Frida is used to intercept the call to the JNI method…
Jake
  • 16,329
  • 50
  • 126
  • 202
2
votes
1 answer

Failed to spawn: unable to find process with name 'o-paus'

what should i do, when i do frida -U -f Telegram -l freda.js — -no-whale and it exits like Failed to spawn: unable to find process with name 'o-paus'
Nanz
  • 105
  • 2
  • 5
2
votes
1 answer

Load JS script file to Frida CLI

How can I load JS script to Frida CLI (while frida running) ? I know I can load JS script : frida -l test.js But how can I do that if Frida just running and I in Frida CLI ?
vtable
  • 302
  • 2
  • 15
2
votes
1 answer

How do I intercept the constructor for a Swift class using Frida?

I am attempting to use the frida swift bridge functionality built into Frida to hook the constructor of a Swift class. I am running my code with the command: frida --no-pause -U -l swift_cooperia.js -f com.example.myapp with the contents of…
systemdev
  • 33
  • 5
2
votes
0 answers

Why doesn't frida-trace find functions in Ubuntu/GCC binaries that it finds on MacOS/Clang compiles?

Here is a simple program: int fx(int a) { a += 20; return a; } int main(int argc, char *argv[]) { return fx(fx(10)); } I compile this on macOS (bigSur) with Clang, and trace it: 0 ✓ [11:21:19 Fri Aug 27] ~/nobackup/frida/02 % gcc…
PeterT
  • 920
  • 8
  • 20
2
votes
1 answer

Null address in Sslpinning bypass of flutter app by using frida

I was working on pentesting a flutter android app on genymotion x86 to bypass sslpinning by using this and this approaches, but my function address return null when running Frida. First of all, by Ghidra found the address of the function which is…
2
votes
3 answers

how to fix Error: java.lang.ClassNotFoundException on frida

I'm trying to bypass a root detection mechanism on an android app using Frida, I've tried so many different scripts (frida code share) and different approaches (like hiding root) with no luck! So I tried to locate the class and method responsible…
Mahdi
  • 144
  • 2
  • 13
2
votes
1 answer

Create new NativeFunction and use it then

I am wondering: how can I allow self-signed certs while app using openssl library? I saw that code which disables certificate validation StackOverflow question/answer hyperlink static int always_true_callback(X509_STORE_CTX *ctx, void *arg) { …
Kaspek
  • 159
  • 1
  • 11
1 2
3
21 22