mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-11 22:50:09 +00:00
22 lines
567 B
JavaScript
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)
|
|
});
|
|
|
|
}); |