Logo
RSS Feed

Frida

📚 Frida Crash Course

Intro

Frida is cool

Templates

Empty

If a method needs an argument of type Context, getApplicationContext() needs to be used. Otherwise, may skip it.

function getApplicationContext() {
		const ActivityThread = Java.use("android.app.ActivityThread");
		const currentApplication = ActivityThread.currentApplication();

		var ret = currentApplication.getApplicationContext();
		return ret;
}


function bruteforcePIN() {
	Java.perform(() => {
    // if the method requires Context type arg
		var context = getApplicationContext();
		try {
      // code here
    }
    catch(e) {
      // exceptions to handle, example:
      console.log(e.message);
    }    
	});
}

Reverse Bool

If there is a function that returns a bool, and this bool value needs to be reversed:

How I Met Radare2

📆 24/09/2020, Wednesday

🕰 7:00 What a nice morning! And it’s so great to be woken up by a high-pitched cry in the ear… Well, after giving my daughter her breakfast and doing all the neccessary hygine procedures for us both, I left her by my side on the development carpet, so that I could develop myself…

🛠 Environment and Tools: macOS Catalina 10.15.6 (19G2021) + pyenv 1.2.20 + Python 3.8.5 + Visual Code Version: 1.49.1, VBox Version 6.1.12 r139181 (Qt5.6.3) + Kali Linux + radare2 4.6.0-git 25077 @ linux-x86-64 git.4.4.0-749-g2a0d8fbe5