jpcap

How to send Ping6 request using Java library (JpCap)

两盒软妹~` 提交于 2019-12-12 22:18:15
问题 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 java.io.IOException: only IPv4 packet is supported at jpcap.JpcapSender.nativeSendPacket(Native Method) at jpcap.JpcapSender.sendPacket(JpcapSender.java:93) at Ping6.sendPing6Request(Ping6.java:131) at Ping6.main(Ping6.java:40) Please help me how to solve this

How to install Jpcap for Ubuntu

拈花ヽ惹草 提交于 2019-12-12 19:07:41
问题 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 having the files jpcap-0.7.tar.gz, bison-2.4.1.tar.bz2, m4-1.4.13.tar.gz, flex-2.5.35.tar.gz, libpcap-1.3.0.tar.gz. I read somewhere that these files are required for installing jpcap... Thanks in advance. 回答1: Installing from a DEB will be your

Is it possible to use JPCAP with Android?

家住魔仙堡 提交于 2019-12-10 16:02:50
问题 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? 回答1: Can i use JPCAP library (Java)? Not directly. It relies upon JNI, presumably for accessing libpcap . You would need to modify the build process to use Android's NDK. It is conceivable that this would require no code changes, but that's far from certain. Also, it is possible that the Java code for JPCAP requires

Creating a Reverse Proxy using Jpcap

大憨熊 提交于 2019-12-07 14:28:12
问题 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 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 now by stitching together pieces from the Jpcap tutorial: import java.net.InetAddress; import java.io.*

Why am I getting UnsatisfiedLinkError in below program?

时光怂恿深爱的人放手 提交于 2019-12-06 11:49:42
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 jpcap.*; import jpcap.packet.*; import java.io.*; import jpcap.packet.TCPPacket.*; import java.io.*; import jpcap.JpcapCaptor.*; class Network implements PacketReceiver { System.out.println(System.getProperty("java.library.path")); String sp=null; String dp=null; String window=null; String sequence=null; String acknowledge=null; FileWriter ff=null; String da=null; public

Creating a Reverse Proxy using Jpcap

折月煮酒 提交于 2019-12-06 00:01:39
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 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 now by stitching together pieces from the Jpcap tutorial: import java.net.InetAddress; import java.io.*; import jpcap.*; import jpcap.packet.*; public class Router { public static void main(String args[]) {

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

隐身守侯 提交于 2019-12-04 22:16:34
问题 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 bit and 64 bit systems, which is normally the case with java applications developed using any JDK. But I believe the situation is slightly complicated because besides a jar, Jpcap installs system libraries (.dll/.so) which in turn are wrappers for

Writing a Personal Firewall in Java that drop network packet [closed]

人盡茶涼 提交于 2019-12-04 07:09:59
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I would like to write a Personal Firewall on Java that can drop network packet. Is it possible? I want to capture a packet on jpcap, but how can i do drop packet? Is there a library in this event on java? And

Traceroute on android

ε祈祈猫儿з 提交于 2019-12-03 20:19:25
问题 I am a beginner on android platform, and i want to build a tracerouting app. So these are some my queries that I want to ask: Is it possible to make such application in Android? if possible then guide me the way that I follow. Does Android support low level programming to capture ICMP packets? or do I need to add some kind of JAR (in java) or some other libraries to support this application. In Java there are JPCAP and docjar etc kind of libraries that we can import in our IDE or Eclipse so

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

╄→尐↘猪︶ㄣ 提交于 2019-12-03 14:48:33
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 bit and 64 bit systems, which is normally the case with java applications developed using any JDK. But I believe the situation is slightly complicated because besides a jar, Jpcap installs system libraries (.dll/.so) which in turn are wrappers for WinPcap and libpcap. So a Jpcap call is a succession of nested invocations to these libraries. Here's

工具导航Map