How to interpret packets?
when i execute that program and enter the url address in web browser say Google.com,it displays me output like this
1277469255:706879
1277469255:708581
what does it means?Is there any possible way to extract header ,length ,type of packet and data that resides in that program
This is my program
import jpcap.*; import jpcap.packet.*; import java.io.*; import jpcap.packet.TCPPacket.*; import java.net.InetAddress; class NetworkList { public static void main(String args[])throws IOException { int i; try { NetworkInterface[] devices = JpcapCaptor.getDeviceList(); for (i = 0; i < devices.length; i++) { //print out its name and description System.out.println(i+": "+devices[i].name + "(" + devices[i].description+")"+devices[i].loopback); } JpcapCaptor captor=JpcapCaptor.openDevice(devices[0], 65535, false, 20); for(i=0;i<10;i++){ System.out.println(captor.getPacket()); } captor.close(); } catch(Exception e) { System.out.println(e.getMessage()); } } }I have also tried using captor.getPacket().data ,but then it throws null exception