Protocol Analysis

Exception when capturing http traffic (possible bug).


Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:686)
at org.jnetpcap.packet.AbstractMessageHeader.decodeHeader(Unknown Source)
at org.jnetpcap.packet.JHeader.decode(Unknown Source)
at org.jnetpcap.packet.JPacket.getHeaderByIndex(Unknown Source)
at org.jnetpcap.packet.JPacket.hasHeader(Unknown Source)
at org.jnetpcap.packet.JPacket.hasHeader(Unknown Source)
at Demo$1.nextPacket(Demo.java:66)
at Demo$1.nextPacket(Demo.java:61)
at org.jnetpcap.Pcap.loop(Native Method)
at org.jnetpcap.Pcap.loop(Unknown Source)
at Demo.main(Demo.java:85)
Java Result: 1

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

Implement custom protocol.

Method call required

Syndicate content