OpticFusion1 / MCAntiMalware

Anti-Malware for minecraft
https://www.spigotmc.org/resources/spigot-anti-malware-detects-over-200-malicious-plugins.64982/
GNU General Public License v3.0
283 stars 29 forks source link

Check to see if this is actually useful #448

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Check to see if this is actually useful

https://github.com/OpticFusion1/MCAntiMalware/blob/8120390d2b5e01db82149f0deb67f663eedc2c76/MCAntiMalware-Core/src/main/java/optic_fusion1/antimalware/check/impl/CrasherCheck.java#L55


    int curLine = -1;
    try {
      for (AbstractInsnNode abstractInsnNode : node.instructions.toArray()) {
        // TODO: Check to see if this is actually useful
        if (abstractInsnNode instanceof TypeInsnNode) {
          continue;
        }
        if (abstractInsnNode instanceof MethodInsnNode) {
          MethodInsnNode methodInsnNode = (MethodInsnNode) abstractInsnNode;
          // Variant A

bde2822264b4e04f60a960fcc7849d091f12ecf0

OpticFusion1 commented 3 years ago

TypeInsnNode: A node that represents a type instruction. A type instruction is an instruction that takes a type descriptor as parameter.

NEW, ANEWARRAY, CHECKCAST or INSTANCEOF

guess we can use it for some detections which ones I'm not really sure though

github-actions[bot] commented 3 years ago

Closed in 2543a9db4e188e719b4a571ef7335517e235a5de