Coder Social home page Coder Social logo

dmitrmax / fast-wireshark Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 493 KB

Automatically exported from code.google.com/p/fast-wireshark

License: GNU Lesser General Public License v3.0

Vim Script 0.02% CMake 1.21% C 74.75% Shell 1.16% Batchfile 0.52% C++ 1.27% Java 21.06%

fast-wireshark's Introduction

INFORMATION HERE IS OUTDATED
See README.nix or README.win32 for current build instructions.

-------------
- License
-------------

This project is licensed under the LGPL, information can be found in the 
LICENSE file located in the same directory as this file

-------------
- Key Variables
-------------

ARCH - Your architecture, something like x86 or x86_64
WS_VERSION - Wireshark version, something like 1.2.6

-------------
- Windows Install
-------------

Double click the 'install' batch script, it will install 'fast.dll' to the
correct location. This installation is local to the user.

-------------
- Linux Install
-------------

- local install

cp .../fast-wireshark/fast.so $HOME/wireshark/plugins/fast.so

The wireshark directory may be hidden in the home directory,
so it may also be $HOME/.wireshark/plugins/fast.so
Once the fast.so file is in the wireshark plugins directory,
FAST should be sucessfully installed.

-

>-> Fix your permissions.
On Ubuntu, and other Debian-based systems I assume, this must be done to allow
a user to run Wireshark. If root (or a sudo'd user) runs Wireshark, user
plugins WILL NOT LOAD. The following allows dumpcap to listen on network
interfaces without being run as root.
  setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' `which dumpcap`

--------------
TShark
--------------
To run the fast plugin with tshark you need to dissable gtk windows.
run tshark with this command.
tshark -o fast.enable_dialogs:false


-------------
- Seeing Something Happen
-------------

There is a simple utility, which can only be built on POSIX platforms.

  cd util
  make bin/client

Inside of util/client...
'example-tshark.sh' shows how to use TShark.
'example-client.sh' shows how to use the client utility.
'example.xml' is the template file that both of the above scripts assume.

Wireshark will see traffic on the loopback interface (lo).

With the -h flag, you can shoot packets at a different host. Obviously
Wireshark must be listening on something other than loopback on the other
host. This is particularly useful for seeing the mock FAST traffic dissected
on a Windows machine.


-------------
Building under windows
-------------
Like Linux, you need a Built version of wireshark to run against. You also 
Will need a win32 Environment for compilation. See 
http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html 
For details. This will tell you how to get a working build environment,
including wirehshark source, a version of microsoft's C compiler and linker, 
and cygwin. Once complete return to this readme.

Once you can build wireshark, you will need
Our source code, which if your reading this We can assume you can find it.
Our source code MUST go in the /plugins/fast/ directory of your wireshark source to build.

You will also need a built win32 static library(.lib) of each libxml2, iconv, 
and Zlib, as well as the includes for iconv(you need the BUILT iconv include.h, 
NOT source include directory) and libxml2

These includes should be at 
C:\wireshark-win32-libs\libxml2-2.7.6.win32\include
and 
C:\wireshark-win32-libs\iconv-1.9.2.win32\include 
respectively, when you have aquired them. 

Unfortunately, these paths are hardcoded, you may change the paths in the 
".c.obj::" Rule if you must. Make sure the paths are prefixed with a -I 
if you change them, otherwise the compiler will now know where to include the headers from.

The .lib files go into our folder with our source to link with, 
IE C:.../wireshark-source/plugins/fast.
You can change this by altering the 
link -dll /out:$(PLUGIN_NAME).dll
entry, by replacing the '.' before the \X.lib\ with your new location, But make sure you
have the right path or the module with either fail to link or fail upon loading after start-up!

In addition, you may consider making the changes listed in Section 3 of README.plugins in 
the \doc folder of the wireshark soruce, but this only makes wireshark Build our plugin 
when it builds itself, so not really needed.

Once wireshark is set up, incldues and libraries set, and everything is in the proper places, 
simple go into our directory, and type 
nmake -f makefile.nmake
This will make the files. As a windows use you are are wanting the .dll made by this process.
Take it, and put it in the /plugins/version/folder of your wireshark folder, where the
rest of the external plugin dlls exist, and run wireshark. Wireshark will do the rest itself.

fast-wireshark's People

Contributors

dhevans avatar dmitrmax avatar foolishone9k2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.