Created
April 26, 2018 07:14
-
-
Save avicoder/aa54c0a1b0279c01f80d8c6369d27355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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