@Test @Ignore public void testRun() throws IOException { BufferFinder bf = new BufferFinder(group); bf.find(); }
public void find() { for (ClassFile cf : group.getClasses()) { for (Method m : cf.getMethods()) { Code code = m.getCode(); if (findModPow(code)) { buffer = cf; packetBuffer = group.getClasses().stream() .filter(cl -> cl.getParent() == cf) .findAny() .get(); logger.info("Identified buffer {}, packetBuffer {}", buffer, packetBuffer); } } } }
BufferFinder { public void find() { for (ClassFile cf : group.getClasses()) { for (Method m : cf.getMethods()) { Code code = m.getCode(); if (findModPow(code)) { buffer = cf; packetBuffer = group.getClasses().stream() .filter(cl -> cl.getParent() == cf) .findAny() .get(); logger.info("Identified buffer {}, packetBuffer {}", buffer, packetBuffer); } } } } }
BufferFinder { public void find() { for (ClassFile cf : group.getClasses()) { for (Method m : cf.getMethods()) { Code code = m.getCode(); if (findModPow(code)) { buffer = cf; packetBuffer = group.getClasses().stream() .filter(cl -> cl.getParent() == cf) .findAny() .get(); logger.info("Identified buffer {}, packetBuffer {}", buffer, packetBuffer); } } } } BufferFinder(ClassGroup group); }
BufferFinder { public void find() { for (ClassFile cf : group.getClasses()) { for (Method m : cf.getMethods()) { Code code = m.getCode(); if (findModPow(code)) { buffer = cf; packetBuffer = group.getClasses().stream() .filter(cl -> cl.getParent() == cf) .findAny() .get(); logger.info("Identified buffer {}, packetBuffer {}", buffer, packetBuffer); } } } } BufferFinder(ClassGroup group); ClassFile getBuffer(); ClassFile getPacketBuffer(); void find(); }
BufferFinder { public void find() { for (ClassFile cf : group.getClasses()) { for (Method m : cf.getMethods()) { Code code = m.getCode(); if (findModPow(code)) { buffer = cf; packetBuffer = group.getClasses().stream() .filter(cl -> cl.getParent() == cf) .findAny() .get(); logger.info("Identified buffer {}, packetBuffer {}", buffer, packetBuffer); } } } } BufferFinder(ClassGroup group); ClassFile getBuffer(); ClassFile getPacketBuffer(); void find();  }