This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
README
73 lines (53 loc) · 2.63 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
Latest Downloads:
https://github.com/ashdnazg/pyreshark/releases/tag/0.1.4
Windows Installer for all versions:
https://github.com/ashdnazg/pyreshark/releases/download/0.1.4/pyreshark_0.1.4_installer.exe
General Information
-------------------
Pyreshark is a plugin for Wireshark with the purpose of allowing other plugins to be written with:
1. Python
2. Ease
3. Efficiency
The source code and some binaries can be found in https://github.com/ashdnazg/pyreshark
License
-------
Pyreshark is released under the GNU GPLv2 license. See <http://www.gnu.org/licenses/gpl-2.0.html> for details.
Installation
------------
Python 2.7.* or 2.6.* is required, so make sure it is installed.
Put pyreshark.dll in <Wireshark-Dir>\plugins\1.*.*\
Put all files in the python folder in <Wireshark-Dir>\python.
The overall directory structure should be:
<Wireshark-Dir>\python
<Wireshark-Dir>\python\cal
<Wireshark-Dir>\python\protocols
Using Pyreshark
---------------
To add an existing dissector just drop it in <Wireshark-Dir>\python\protocols
To write a new dissector see the guide at https://github.com/ashdnazg/pyreshark/wiki/Writing-Dissectors
Building Pyreshark
------------------
Currently the plugin was tested on win32, win64 and some linux distro's.
Win32/64 Instructions:
1. Get Wireshark's source. (version 1.12 or 1.10 is required)
2. Build Wireshark.
3. Get pyreshark's source through hg clone.
4. Place pyreshark's source in the plugins dir of Wireshark's source.
5. Go to <WS_source_root>\plugins\pyreshark and run:
nmake -f Makefile.nmake all
6. If all went well, you can now copy the shiny new pyreshark.dll and python folder to your Wireshark installation.
Linux Instructions:
1. Get Wireshark's source.
2. Get pyreshark's source through hg clone.
3. Place pyreshark's source in the plugins dir of Wireshark's source.
4. If your Python dynamic library isn't named libpython2.*.so.1.0 or isn't in the search path,
change the PYTHON_* values in python_loader.h to the correct full path of the library.
5. Follow the instructions in http://anonsvn.wireshark.org/wireshark/trunk/doc/README.plugins
6. Build Wireshark and install it.
7. If all went well, you should have the plugin installed as well.
Contact
-------
I'd be more than happy to receive bug reports, suggestions and/or pleas for help through mail (<ashdnazg [AT] gmail.com>)
and assist accordingly.
If further support or commercial work is required, I may certainly be contracted for projects of both open-source and closed-source nature.
Go wild.