jpcap

Implementing Arp Sweep

I have been playing with libpcap/jpcap. Implementing a arp sweeper. I send a request for all ip's in the block to the broadcast address and read replies. Now i can't think of a way to exit from the listening function. Now i wait 2 secs and assume ever client responded but this just seems dirty. Can anyone recommend a logic to determine i...

Network Intrusion Detection System in Java..!!

i am planning to implement a NIDS (netw intrusion detection system) in d java programming language on a very small basis... well after searching i found 2 libraries for it.. 1) Jpcap 2) jNetPcap which one should i use..and y..? which is more preferrable to use...? ...

where to look for programs that use jpcap or jNetPcap ?

Is there any code available in java ( that uses jpcap or jNetPcap ), that captures packets and displays all header information.. ...

How to get WLAN SSID & signal strength using JPCAP?

Hi, am looking @ retrieving WLAN SSID & signal strength using JPCAP on windows, has anyone worked on something similar? any help/posts in this regard will be of great help. Thanks, ...

Creating a Reverse Proxy using Jpcap

I need to create a program that receives HTTP request and forwards those requests to the web servers. I have successfully made this using only Java Sockets but the client needed the program to be implemented in Jpcap. I'd like to know if this is possible and what literature I should be reading for this project. This is what I have n...

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. ...

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 to log the websites. I want a way to filter the DNS packets. How can I do it? ...

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

Hello guys, 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 10 MiB/s). I'm doing this control in some really crappy way. I made a UDP/TC...

Using jpcap to capture html

I'm trying to print out the response data when I make a HTTP request, where jpcap is sniffing the packets. I've managed to get some header info, but I can't get the actual HTML contents. This is the code I'm using: try { NetworkInterface[] devices = JpcapCaptor.getDeviceList(); System.out.println("Opening interface...

I want to make my packet sniffer using jpcap, but I don't know how to use it. Please guide me in details

please tell me how can i create a packet sniffer using jpcap?? ...

How does HTTP response relate to request?

I'm packet sniffing using jpcap, and I'm wondering how I can find out which request the response is for. The HTTP header fields don't even state the address of the server, and there are no ID's. Do I need to check ports or something? ...