Skip to content

Instantly share code, notes, and snippets.

@avicoder
Created April 26, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avicoder/aa54c0a1b0279c01f80d8c6369d27355 to your computer and use it in GitHub Desktop.
Save avicoder/aa54c0a1b0279c01f80d8c6369d27355 to your computer and use it in GitHub Desktop.
"use strict";
/* Check if a Java/Dalvik/ART VM is available */
if (Java.available) {
//FIX - Need to be inside perform
Java.perform(function() {
/* enumerate loaded classes */
Java.enumerateLoadedClasses({
/* when a class is found send it to the client */
onMatch: function(className) {
send(className);
},
/* when we are done enumerating classes send "done" to the client */
onComplete: function() {
send("done");
}
});
});
/* if a Java/Dalvik/ART VM is not available */
} else {
send("Java not available in this process");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment