|
|
|
Install |
About |
Welcome on |
1.
What is First of all you should ask to yourself what is The answer is quite simple !!
|
2.
Download and install To install 1-
Download 2- Download WINPCAP from http://www.winpcap.org/install/default.htm
and select default option and path. When I wrote this page, WINPCAP was
version 3.1. 3- Unzip jiffer.zip file where you want but keep
default folder hierarchy, 4- You should have following folders : Example contains one sample program to learn how to use Javadoc contains the java documentation for Lib contains the jiffer.jar Native contains java native code and a dll to use WINPCAP API (for
informations about WINPCAP please read ‘How does Org contains the Go at ‘Run sample’ section to run the small application to test that
your installation is successful. |
3.
Is As you know one of the big advantages of Java is its portability. It
means that you can develop on Windows and run your code on Unix. At present So at present |
4.
How does The best way to understand a)
Native API. As you know now, Java basically does not offer API to listen or send
Ethernet packet over network. STOP… I did not say that it was not possible to
send network packet with Java. The java.net package offer several classes to
open socket… However you can not build from scratch your network packet. For
example it is not possible to change your MAC address. With To do that, WINPCAP is a free windows C API to make
some network operations. I’d rather make my own low level API, which is a future project,
however at present I use WINPCAP, this is why you will need to download it to
use b)
Java native API Java native API is the part which is between a java application, and
platform specific API. It allows you to convert from native type to java
types. For example you can use a C structure from native application and
build a java class using the C structure data and send this java class to
your java application. The java native API is a small dll which is download
by JVM when you start your java application. The source code of this DLL is
also provided when you download c)
Java API At least the most interesting part is the
Java API. It is the API you will use to build your java application upon To have more details please read javadoc. To summarize |
5.
Run sample. Before developing with 1- Open a dos command window 2- Go under JIFFER_HOME/example 3- Enter runjava
in command prompt and press enter. 4- You should see a list of network adapter depending on your machine,
like the following : 5- Choose the network adaptor you want to use. 6- Then choose between sending or listening packet (here choose Listen). 7- Following display should appear : Promiscuous is a mode that ask to your network adaptor to listen to
all incoming message event those that are not for you. For other filter mode please refer to network website or books. 8- Then you should see network packet display to your screen that come
from your local network. If you do not see anything open a browser and
connect to internet for example. Now have fun with |