Questions tagged [jpcap]

Jpcap is a Java Library which enables you to Send and capture Packets.

Jpcap is a library for working on Packet Level using Java. The Jpcap library is based on libpcap/winpcap and therefore Jpcap supports any system which is supported by libpcap/winpcap. Currently those include Windows, Linux, FreeBSD, Mac OS X and Solaris.

Provided functionality:

  1. Sending Network Packets
  2. Capturing Network Packets
  3. It can capture Ethernet, IPv4, IPv6, ARP/RARP, TCP, UDP, and ICMPv4 packets.
134 questions
3
votes
2 answers

jpcap installation error

I installed jpcap library when i run my program I got this error. I am sure that add jpcap.jar and jpcap.dll to correct directory but i do not know what is the problem! anyone know what is the erorr? Exception in thread "AWT-EventQueue-0"…
user2091416
  • 77
  • 2
  • 10
3
votes
1 answer

Using jpcap to forge ARPRequest

when i use JPCap to forge ARP Request , i notice that jpcap is adding a trailer of 18 byte zeros to the tail of the ARP also i am not interested in sending this data. Is there a way to prevent this padding.
Mohammed Falha
  • 967
  • 8
  • 22
3
votes
1 answer

Downloading Jpcap for Linux

I posted this somewhere else but I think it was deleted so I'll post it as a new question... Here's my problem; I've been developing a packet sniffer using the Jpcap library from http://netresearch.ics.uci.edu/ . I was developing using the windows…
Shane
  • 461
  • 2
  • 8
  • 23
2
votes
1 answer

jpcap EXCEPTION_ACCESS_VIOLATION when writingPacket

I'm creating a small utility for writing various data payloads to a pcap dump file using jpcap. For each payload I create a packet as described in the "Send packets through a network interface" example and send it: byte[] data = new…
2
votes
2 answers

How to send Ping6 request using Java library (JpCap)

I would like to monitor the ipv6 devices using ping6 request. Please let me know is there any open source library is available to send and receive Ping6 request. I tried with JpCap but couldn't succeed and I got the below error message…
Ravikumar
  • 41
  • 5
2
votes
1 answer

How can I control the traffic speed (bytes sent) in Java (Jpcap)

I'm making a network simulation application in my class. I already did the entire code, however I'm getting trouble at controlling the speed of the traffic sent. The user of the app can input the desired speed that he wants to generate (for example…
Marcos Roriz Junior
  • 4,076
  • 11
  • 51
  • 76
2
votes
1 answer

Reading packet header with jpcap

I'm trying to read packet headers using jpcap. TCPPacket tcpPacket = (TCPPacket) captor.getPacket(); System.out.println(new String(tcpPacket.header)); and the output is (something like): What am I missing? (When reading the data part, it looks OK)
danieln
  • 4,795
  • 10
  • 42
  • 64
2
votes
1 answer

Exception in thread "main" java.lang.UnsatisfiedLinkError using Jpcap

I am using jpcap in my java program. I tried everything to get it run but nothing works. Gives exception: : Exception in thread "main" java.lang.UnsatisfiedLinkError C:\Program Files\Java\jdk1.7.0\bin\Jpcap.dll: Can't find dependent libraries I…
Mohit
  • 342
  • 3
  • 16
2
votes
3 answers

capturing packets from network and saving in database using jpcap library

I am capturing packets using jpcap library and saving in Mysql database. I want to do these two functions separately. My program captures packet and saves in database then captures another packet and saves in database. I want is that one Method…
user3578992
2
votes
1 answer

JnetPcap Wireless Interface

Will I'm working on project using JnetPcap API,I was able to list to run the ClassicPcapExample successfully public class ClassicPcapExample { /** * Main startup method * * @param args * ignored */ public static void main(String[]…
Sam Ben
  • 229
  • 1
  • 5
  • 11
2
votes
1 answer

java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.jpcap")

I have an application for my school project which has jpcap classes and I get these exceptions when trying to run the jar file: java.lang.ExceptionInInitializerError ... Caused by: java.security.AccessControlException: access denied…
joeNio
  • 21
  • 1
  • 5
2
votes
4 answers

Why am I getting UnsatisfiedLinkError in below program?

Error is :Exception in thread "main" java.lang.UnsatisfiedLinkError: jpcap.JpcapCaptor.getDeviceList()[Ljpcap/NetworkInterface; at jpcap.JpcapCaptor.getDeviceList(Native Method) at jcap.network.main(network.java:63) import…
Ram Sharma
  • 101
  • 2
  • 6
2
votes
2 answers

How to overcome JpCap issue?

I have a program to capture network ip address using jpcap. But I getting this error // Exception in thread "main" java.lang.UnsatisfiedLinkError: jpcap.JpcapCaptor.getDeviceList()[Ljpcap/NetworkInterface; at…
ags
  • 21
  • 1
  • 2
2
votes
2 answers

How to capture ip address using jpcap in java

Here is the code to capture the ICMP packets and store in txt file, but the storing information is in the format of binary. Can any one please tell me, how to capture the ICMP packet's source address and size [if possible MAC address] in clear text…
Vinoth Kumar
  • 413
  • 6
  • 18
2
votes
1 answer

How to install Jpcap for Ubuntu

This may seem a very stupid question, but I'm facing a lot of trouble with installing jpcap. I'm new to Ubuntu and unaware of it's architecture, it would be very helpful if you could tell me the process step by step with descriptions. Presently I'm…
sam
  • 120
  • 1
  • 8
1
2
3
8 9