Files
Mobile-Security-Framework-M…/mobsf/DynamicAnalyzer/tools/frida_scripts/auxiliary/get_methods.js
T
Ajin Abraham cf59941081 HOTFIX: setup.py and directory refactoring
Python setup.py #1585
directory refactoring
2021-01-17 01:47:49 -05:00

22 lines
567 B
JavaScript

/*
* raptor_frida_android_enum.js - Java class/method enumerator
* Copyright (c) 2017 Marco Ivaldi <[email protected]>
*
*/
Java.perform(function() {
var hook;
var targetClass = '{{CLASS}}';
try{
send('[AUXILIARY] Getting Methods and Implementations of Class: ' + targetClass)
hook = Java.use(targetClass);
} catch (err){
send('[AUXILIARY] Hooking ' + targetClass + ' [\"Error\"] => ' + err);
return;
}
var methods = hook.class.getDeclaredMethods();
hook.$dispose;
methods.forEach(function(method) {
send('[AUXILIARY] ' + method)
});
});