jpcap

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

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

半世苍凉 提交于 2019-12-02 13:24:42
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 sorry for my bad English. I would like to write a Personal Firewall on Java that can drop network packet. Is it possible? No. I want to capture a packet on jpcap, but how can i do drop packet? You can't drop packets with either JPcap, in any of its at least 3 incarnations, or its native component libpcap/winpcap . Is there a library in this event on java? Not that I'm aware of, and I'm

Traceroute on android

☆樱花仙子☆ 提交于 2019-11-30 15:39:46
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 that Java support for making such kind of api's? I need valuable suggestions. The simplest way I can