RE env for inspecting APKs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
866 B

  1. Java.perform(() => {
  2. var obj = Java.enumerateMethods('*com.twitter*!*') // com.example.demotest is application package name
  3. console.log("obj length: " + obj.length);
  4. ///var methods= JSON.stringify(groups, null," ")
  5. ///console.log(methods)
  6. ///var common =JSON.stringify(obj[0].classes[0],null," ")
  7. ///console.log("\x1b[32m","class-name "+" "+JSON.parse(common).name,"\n"+"\x1b[35m","Methods name"+" "+JSON.parse(common).methods)
  8. ///console.log("\x1b[32m", common);
  9. var i =0;
  10. //console.log(obj.length)
  11. for (i=0;i<obj.length;i++){
  12. console.log("obj" +"::"+i)
  13. var common =JSON.stringify(obj[i].classes[i],null," ")
  14. console.log("\x1b[32m","class-name "+" "+JSON.parse(common).name)
  15. var x;
  16. for (x=0;x<JSON.parse(common).methods.length;x++)
  17. {
  18. //console.log("methods"+ "::>"+x)
  19. //console.log("df")
  20. console.log("\x1b[34m",JSON.parse(common).methods[x])
  21. }
  22. }
  23. });