I am trying to figure out how to push some manually created TCP header data to a byte array. I will be able to use JnetPcap.send(byte[] packet) and see it with wireshark, all I need now is to create the packet as a byte array so I can send it along.…
I've been tryind to get the relative sequence and ack numbers for some comparison, but i cannot seem to find a way to get the relative in jNetPcap? I can get the absolute value for both, but this that i am not interested in.
Anyone know how to…
im trying to retrieve the ack from the tcp like the one wireshark returns. In wireshark it returns an ack of 1 or 647. But when i'm trying to get the ack from the packet it returns a long number that is nothing similar to the ack wireshark…
I have written a Programm that uses JnetPcap but dont know how to build a jarfile from my Project. its not an IDE Project, i had compiled everything from command line. my Folder structure is as…
I want to check data is sent out to the internet.
I tried with jnetcap example here
I can use the below code to check receive packages:
PcapPacketHandler jpacketHandler = new PcapPacketHandler() {
public void…
I am populating a JTable with an ArrayList that contains necessary packet data. My JTable populates after all of the packets are received rather than one by one. I am using the Jnetpcap library and I believe I am having a thread issue.
I have…
I'm trying to obtain the port of the audio media of SDP headers. I am currently using JnetPcap to catch traffic.
I am obtaining the Media value from the SDP headers like so:
sdp.getAVP(Sdp.Fields.Media.name());
(I know this is not the prettiest…
I have a Program which is reading Pcap file in JAVA. I have included jnetpcap jar into it. Along with jar file, I have also put .dll file in System32 folder of windows. I am able to run this program on windows machine.
Now I tried to run same…
Before jumping into the problem I would like to share that what is the structure of my network. I have 3 computers where 1 is acting as a server and rest of the machines are acting as clients. Server is connected to internet and sharing it with…
I want to create, for my thesis in "Cyber Forensics Challenges", an application that can take any PCAP file and render an HTML analysis file with as much information as possible, probably coupled with an API that searches the ip lookup. I have very…
So i have a pcap file, when i open this file in wireshark i see a number of tagged parameters, one of them is the ssid which i would like to simply print out on screen.
i have done the following:
public class PacketHandler implements…
In my application I'm using Jnetpcap native libraries. The native libraries are loaded using a static block in the jar itself.
When I'm loading the application freshly into JBOSS after start, it works fine.
Once I do any redeployment without…
I'm using jnetpcap v1.3 in my java project and the so file it uses for native calls has a dependency on libpcap0.9 but my libpcap version is 0.8 and cannot find this library in apt repositories.
so how can i install libpcap0.9 on debian wheezy to…
I'm trying to extract DNS queries from a PCAP file with JNetPcap, but i'm only able to get the IP header.
Is there a way to get the data inside the packet with JNetPcap ?
This is a part of my code:
public void nextPacket(PcapPacket packet, String…
I am trying to learn Android-NDK, so i am trying to modify existing examples so I am trying to build apk from Android-PCAP but unable to do so, and getting this error message
Information:Gradle tasks [:app:assembleDebug]
WARNING [Project:…