-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
123 lines (92 loc) · 4.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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.