I'm extracting the payload header hex values from a capture file and then the parse the mutation string into another method. Is this possible?
PcapPacketHandler<String> jpacketHandler = new PcapPacketHandler<String>() {
public void nextPacket(PcapPacket packet, String user) {
Payload payload = new Payload();
if (packet.hasHeader(payload)){
String mutation = payload.toHexdump();
mutation = mutation.replaceAll("[a-f0-9]{4}", "");
mutation = mutation.replaceAll("\\D", "");
}
}
};