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.
135 questions
9
votes
2 answers

run jar with root privileges on mac os x by one click

I implemented a small java sniffer-tool with jpcap. So far its functioning fine, but it needs root privileges to get access to the network-devices. In case of I export my project to a runnable jar, I can run it by using sudo in terminal: $ sudo java…
Philipp Li
  • 367
  • 4
  • 17
7
votes
2 answers

Can I run a java program developed using 32 bit jdk with 64 bit jre? application uses 32 bit non java system libraries

I am developing a java application using 64 bit eclipse on a 64 bit Windows 7 install. I'm forced to use a 32 bit JDK(1.7.0) because the application uses Jpcap, which wont compile with a 64 bit JDK. The application has to be cross platform across 32…
schinoy
  • 95
  • 1
  • 1
  • 7
6
votes
3 answers

Traceroute on android

I am a beginner on android platform, and I want to build a tracerouting app. So these are my queries: Is it possible to make such an application in Android? if possible then guide me the way that I follow. Does Android support low-level…
PiyushMishra
  • 5,515
  • 6
  • 35
  • 57
6
votes
1 answer

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in java.library.path

i am using netbeans ide and trying to capture packets using jpcap library. my program used to run correctly before bu suddenly this error Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpcap in java.library.path is appearing. i have…
Asad Ikram
  • 61
  • 1
  • 1
  • 3
5
votes
3 answers

Real-Time TCP session reconstruction in Java using jPcap

I am listening a specific network card and capturing TCP(just TCP) packets using jPcap library. However, I need to have whole TCP sessions, not individual packets. In Wireshark, I can choose "follow tcp stream", so that I can get the whole…
Alpay
  • 1,424
  • 2
  • 21
  • 51
4
votes
1 answer

Is it possible to use JPCAP with Android?

I want to create a module that capture packets ( like Shark for Root app in Android). Can i use JPCAP library (Java)? Do i need to root my Android phone to capture packets?
Tran Ngu Dang
  • 2,348
  • 5
  • 24
  • 38
4
votes
2 answers

Getting interface name/address from (or mapping NetworkInterface to) jpcap device paths

I am trying to do the following: Display a list of human-readable network interface names and their IP addresses to the user. Start a jpcap packet capture on the interface the user selects. However, the following points are giving me…
Jason C
  • 34,234
  • 12
  • 103
  • 151
4
votes
2 answers

Which jpcap library to use?

I'm new to jpcap and I have been looking for a most useful, the best, the most widely used, the most popluar jpcap library? i came across these jpcap libraries. The one on http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/ ? , the one on…
user1284808
  • 61
  • 1
  • 8
3
votes
3 answers

jpcap.dll on a 64 bit system?

Hey i was using the Jpcap API on my system. It requires you to put a copy of jpcap.dll in the system32 folder. The problem is that it doesnt work on my 64 bit system. I tried running a program in eclipse n it gave the following error - "Exception in…
user1197004
  • 29
  • 1
  • 4
3
votes
2 answers

Filter with Jpcap

I need to filter Telnet packets using Jpcap.. how can I do it? I've tried with: captor.setFilter("telnet", true); but it does not work...
Andrea
  • 31
  • 3
3
votes
4 answers

Jpcap breaking the JVM

I have written the following program that is intended to dump all network device traffic to a file. I know the problem involves the use of JpcapWriter. Why am I getting the error message shown below? import jpcap.*; import jpcap.packet.*; public…
Donald Taylor
  • 8,894
  • 15
  • 59
  • 85
3
votes
3 answers

capturing dns packets using java

I want to log the websites visited in a system. So i decided to record the packets send by the system. I am using Jpcap API. I am able to record a lot of packets. Now what i want to do is i want to filter only DNS packets. I think that will be able…
rgksugan
  • 3,342
  • 11
  • 42
  • 53
3
votes
2 answers

How can you access the packet information in a JpCap Packet

How can I pull relevant packet information from a JpCap packet? I am trying to find the source/destination ip and port. So far I have tried string parsing the Packet's toString() method, but that seems brutish.
Mantas Vidutis
  • 15,230
  • 20
  • 73
  • 91
3
votes
2 answers

Creating a Reverse Proxy using Jpcap

I need to create a program that receives HTTP request and forwards those requests to the web servers. Diagram http://img269.imageshack.us/img269/1862/h98trsly.jpg I have successfully made this using only Java Sockets but the client needed the…
3
votes
0 answers

how can I use jpcap library in my project?

I am using Netbeans 7, and I have 32 bit JDK version 1.7.0.40. I want to use jpcap library to analyze incoming packets. I do following to be able to use jpcap. I added "jpcap.jar" into my project's library. I copied "jpcap.dll" into my JRE/bin I…
tmr
  • 125
  • 2
  • 9
1
2 3
8 9