Questions tagged [jnetpcap]

jNetPcap is an open-source Java wrapper for nearly all libpcap library native calls.

Links

129 questions
0
votes
2 answers

How to format TCP header values and push to a byte array for packet test in Java

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.…
pears987
  • 1
  • 4
0
votes
1 answer

Relative sequence / ack number in jNetPcap

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…
Anders Lassen
  • 615
  • 2
  • 8
  • 20
0
votes
2 answers

jNetPcap acknowledgement value

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…
Anders Lassen
  • 615
  • 2
  • 8
  • 20
0
votes
1 answer

Build jar from command line including jnetpcap

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…
mvrht
  • 1
  • 2
0
votes
1 answer

How can i check the data which is sent out internet?

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…
Viet
  • 3,349
  • 1
  • 16
  • 35
0
votes
0 answers

JTable Blocked By pcap.loop()

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…
0
votes
1 answer

Obtaining audio port in video calls with JnetPcap

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…
user2818782
  • 736
  • 8
  • 18
0
votes
1 answer

Not able to run jnetpcap on Linux

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…
0
votes
1 answer

Decode HTTPS request payload on server using jNetPcap

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…
Wasif Kirmani
  • 1,277
  • 3
  • 22
  • 43
0
votes
2 answers

How to create a Cyber Forensic Pcap analyzer pretty fast?

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…
pathat0r
  • 75
  • 10
0
votes
1 answer

Reading an ssid from pcap file using jnetpcap

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…
user1383163
  • 577
  • 1
  • 7
  • 24
0
votes
1 answer

Using Native Library in Spring With JBOSS

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…
0
votes
1 answer

could not load jnetpcap.so file in java on debian wheezy

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…
herburos
  • 118
  • 11
0
votes
1 answer

parsing PCAP file with JNetPcap to extract DNS queries

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…
had0yori
  • 1
  • 2
0
votes
1 answer

net/raw.h No such file or directory while compiling Android PCAP (jnetpcap) with NDK r10e

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:…
DeepSidhu1313
  • 805
  • 15
  • 31
1 2 3
8 9