Skip to content

Commit

Permalink
Merge pull request r0ysue#5 from Simp1er/main
Browse files Browse the repository at this point in the history
fix some bug
  • Loading branch information
r0ysue authored Jul 28, 2021
2 parents dce1899 + 8274521 commit 7f19440
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions r0tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ function hook(white, black, target = null) {
var targetClasses = new Array();
Java.enumerateLoadedClasses({
onMatch: function (className) {
if (className.toString().toLowerCase().indexOf(white) >= 0 &&
className.toString().toLowerCase().indexOf(black) < 0
) {
console.Black("Found Class => ", className)
if (className.toString().toLowerCase().indexOf(white.toLowerCase()) >= 0 &&
(black == null || black == '' || className.toString().toLowerCase().indexOf(black.toLowerCase()) < 0)) {
console.Black("Found Class => " + className)
targetClasses.push(className);
traceClass(className);
}
Expand Down

0 comments on commit 7f19440

Please sign in to comment.