use of the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString in project bytecode-viewer by Konloch.
the class MalwareCodeScanner method scanMethods.
@Override
public void scanMethods(MalwareScan scan, ClassNode cn, MethodNode[] methods) {
for (MethodNode method : methods) {
InsnList instructionList = method.instructions;
// scan each instruction
for (AbstractInsnNode instruction : instructionList.toArray()) {
scanMethodInstruction(scan, cn, method, instruction);
if (instruction instanceof LdcInsnNode) {
if (((LdcInsnNode) instruction).cst instanceof String) {
final String string = (String) ((LdcInsnNode) instruction).cst;
scanMethodString(scan, cn, method, new SearchableString(string));
}
}
}
}
}
Aggregations