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
1
vote
1 answer

JpcapCaptor, NetworkInterface in Jpcap package

I have dowloaded a jpcap package from http://sourceforge.net/projects/jpcap/ I have copied the jar file in ext of jre and jdk and also copied the folder in bin of jdk. but when i run my code it shows a error of JpcapCaptor and Network Interface…
1
vote
1 answer

JpcapCaptor.getDeviceList() returns an empty array

I'm new to Jpcap. I'm using NetworkInterface[] arr=JpcapCaptor.getDeviceList(); System.out.println(arr.length); to get the devices from Jpcap. But it returns an empty array. When I print the length of the array, it is 0. I' using ubuntu 11.10 and…
Krishan
  • 641
  • 4
  • 18
1
vote
1 answer

cannot open device using jpcap

I'm having trouble opening found network devices with the jpcap library. I have installed winpcap and have jpcap.dll in system32 and syswow64. The following tutorial code crashes when trying to open device. The crash log: PacketCapture: loading…
mechanicum
  • 699
  • 3
  • 14
  • 25
1
vote
1 answer

how to catch packet using jpcap?

i have installed jpcap and add it in library but i have error in this line: String[] devices = JpcapCaptor.getDeviceList(); i think I added it wrong because it said: Javadoc not found. Either Javadoc documentation for this item does not exist or you…
user1796108
  • 11
  • 1
  • 2
1
vote
1 answer

Sending SYN packet with Jpcap problems

I want to send a SYN packet with Jpcap and get a response, but when I do this I automatically send a RST packet, but I don't want to send a RST packet. How can I stop sending a RST packet and why am I sending a RST packet Here is my code: public…
Coding Guy
  • 95
  • 1
  • 7
1
vote
1 answer

How to drop packets using JAVA Program

Possible Duplicate: Writing a Personal Firewall in Java that drop network packet Hi friends I am new to this community. I am student of mtech. I am working on DOS attack detection and prevention technique as thesis. I am using jpcap library to…
Ashok
  • 9
  • 3
1
vote
0 answers

packet length reduces with jpcap

I wrote a server in java that is on port 4444. Then I made a mysql connection with terminal to port 4444(my mysql real port is 3306) Then with jpcap I captured the packet and changed the src port and ip to my server port and ip and also I changed…
Shadi Hariri
  • 197
  • 16
1
vote
4 answers

Display IP address from packets

How can I display IP Address from the packets. I am able to display ports and protocols but not the IP addresses from a pcap file. I am using jnetpcap. Any help ?
Aj.
  • 25
  • 1
  • 4
1
vote
1 answer

Can we filter https packets using jpcap?

Can we filter https packets using jpcap? And if yes then is something special done on these packets before they are actually given to a user Or nothing special? Is there special handling for https packets which is not for http packets or both are…
Naresh Sharma
  • 4,323
  • 7
  • 48
  • 68
1
vote
1 answer

jPcap - send packet to selected MAC (not the selected interface)

I'm trying to send ethernet packet to choosed destination MAC address using jPcap: public void sendPacket(Packet packet, byte[] srcMac, byte[] dstMac, Interface i) throws IOException { JpcapSender sender =…
gaffcz
  • 3,469
  • 14
  • 68
  • 108
0
votes
2 answers

jpcap compilation/installation failing on Gumstix

( A bit of background can be found in my previous question here, if it assists someone in helping me: JamVm not running an application (that uses jpcap) on Gumstix ). I am trying to run a packet sniffing java application on a Gumstix overo board.…
0
votes
1 answer

JamVm not running an application (that uses jpcap) on Gumstix

A newbie here so apologies in advance for asking anything silly/obvious. I am trying to run a java application on a Gumstix overo board (linux kernel 2.6.34). So far, I have installed JamVm (jvm), jikes compiler and classpath libraries (as per…
0
votes
1 answer

What does packet class of JPCAP represent?

It is written in the jpcap documentation that packet class is a root class of the all the packets captured by Jpcap.So, by root class what do they mean ?They want to say that it will have header and data from the datalink layer till application…
Xara
  • 8,748
  • 16
  • 52
  • 82
0
votes
1 answer

I get this "UnsatisfiedLinkError " while trying to use the jpcap Java library

Using: windows 10, VScode, intel cpu. I'm getting this error after importing the jar files into my project and running an example code from Github. import net.sourceforge.jpcap.capture.*; import net.sourceforge.jpcap.net.*; /** * jpcap Tutorial…
Aymene
  • 1
  • 2
0
votes
2 answers

How to add jcap.jar and its Javadoc into Netbeans

i want to add jpcap.jar the path is this: C:\WINDOWS\Sun\Java\lib\ext how to do this? import java.lang.ClassLoader; is it needed? or: System.loadLibrary('what must be in here?'); or: System.load(???); suppose this code: public void…
Nickool
  • 3,662
  • 10
  • 42
  • 72
1 2 3
8 9