Skip to content

Commit

Permalink
Merge pull request #35 from NeRdTheNed/fix-sig2
Browse files Browse the repository at this point in the history
Fix issue with SIG2 detection
  • Loading branch information
MCRcortex committed Jun 8, 2023
2 parents 85fda28 + d385c9c commit 164630c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/cortex/jarscanner/Detector.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static byte[] getByteArray(InputStream inputStream) throws IOException {
private static final AbstractInsnNode[] SIG2 = new AbstractInsnNode[] {
new MethodInsnNode(INVOKESTATIC, "java/lang/Runtime", "getRuntime", "()Ljava/lang/Runtime;"),
new MethodInsnNode(INVOKESTATIC, "java/util/Base64", "getDecoder", "()Ljava/util/Base64$Decoder;"),
new MethodInsnNode(INVOKEVIRTUAL, "java/lang/String", "INVOKEVIRTUAL",
new MethodInsnNode(INVOKEVIRTUAL, "java/lang/String", "concat",
"(Ljava/lang/String;)Ljava/lang/String;"), // TODO:FIXME: this might not be in all of them
new MethodInsnNode(INVOKEVIRTUAL, "java/util/Base64$Decoder", "decode", "(Ljava/lang/String;)[B"),
new MethodInsnNode(INVOKESPECIAL, "java/lang/String", "<init>", "([B)V"),
Expand Down

0 comments on commit 164630c

Please sign in to comment.