Skip to content

Instantly share code, notes, and snippets.

Vikas Gupta su-vikas

Block or report user

Report or block su-vikas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@su-vikas
su-vikas / screenshot.js
Created Oct 7, 2018
FRIDA script for bypassing Android FLAG_SECURE
View screenshot.js
Java.perform(function() {
var surface_view = Java.use('android.view.SurfaceView');
var set_secure = surface_view.setSecure.overload('boolean');
set_secure.implementation = function(flag){
console.log("setSecure() flag called with args: " + flag);
set_secure.call(false);
};
@su-vikas
su-vikas / ptrace_patch.py
Last active Jan 23, 2018
IDAPython script automating ptrace patching for an iOS binary
View ptrace_patch.py
import idaapi
import idautils
import idc
num_imps = idaapi.get_import_module_qty()
print("[+] Found % d import(s)" % num_imps)
for i in xrange(0, num_imps):
name = idaapi.get_import_module_name(i)
if not name:
You can’t perform that action at this time.