Project

General

Profile

WireSharkPage » History » Version 17

Anonymous, 04/22/2017 04:04 PM
Yet another fix. Too tired for this ;-)

1 1
= Extending Wireshark =
2
The !WireShark packet sniffer normally doesn't support APCO P25. If you want to sniff P25 traffic using !WireShark then you'll need to patch the sources and rebuild it.
3
4 3
=== Downloading !WireShark ===
5 12
You first need to obtain the source code for !WireShark. The stable release of !WireShark is available from the [http://www.wireshark.org/download.html downloads section of the !WireShark web-site]. On that page you should be go to the "Get !WireShark" for the stable release (1.8.5 at the time of writing). Click on "Source Code" to download the file.
6 1
7 12
== Unpacking !WireShark ===
8
To unpack the source tree you need to open a shell and execute the following commands:
9
{{{
10 13
mkdir -p SourceCode
11
cd SourceCode
12 12
tar xjvf ~/Downloads/wireshark-1.8.5.tar.bz2
13
cd wireshark-1.8.5
14
}}}
15
(Remember your download directory may not be in ~/Downloads and the version number of !WireShark you download maybe different to that used here).
16
17 4
=== Patching !WireShark ===
18 12
Once you've downloaded the wireshark source tree, check out p25 plugin:
19 1
20
{{{
21 14
(cd plugins && svn checkout http://op25.osmocom.org/svn/trunk/wireshark/plugins/p25 p25)
22 1
}}}
23
24 12
This adds the necessary code to !WireShark for it to decode APCO P25 messages. A few small changes also need to be made to the !WireShark tree outside of the plugins directory. To do this the easiest way is to apply the appropriate patch. This can be done as follows:
25 1
26
{{{
27 16
svn checkout http://op25.osmocom.org/svn/trunk/wireshark/patches
28 17
patch -p1 < patches/wireshark-1.8.5.patch
29 1
}}}
30
31 9
Of course, it is inevitable that you will download a !WireShark version for which we haven't provided a patch. Don't fret - the patches will probably work for your version but if it fails to apply you may need to download one an earlier version of !WireShark for which we have a patch or make the changes manually using the existing patch as a guide.
32 1
33 3
=== Building + Installing !WireShark ===
34
35 15
You may need to install prerequisites beforehand. These are a minimum set for Ubuntu/Debian based systems:
36 8 matt
{{{
37 13
sudo apt-get install bison flex libgtk2.0-dev libpcap-dev
38 8 matt
}}}
39
40 6 matt
The standard build for wireshark requires that ./autogen.sh be run first. To compile !WireShark run the following commands:
41 3
42 1
{{{
43 13
./autogen.sh && ./configure && make clean && make
44 3
}}}
45
46
If it compiles cleanly then you can install it as follows:
47
48
{{{
49 13
sudo make install
50 1
}}}
51 10
52
=== Using !WireShark to sniff P25 ===
53
54
Now you've got a modified !WireShark installed it should be a simple matter to start the receiver and use !WireShark to capture its output. To do so simply sniff on your computer's network interface and use the following capture filter: "udp port 23456". At present all P25 traffic is sent to the multicast address 224.0.0.1 so it should be visible on other computers on your subnet - this allows you to sniff in one place and monitor from another.
Add picture from clipboard (Maximum size: 48.8 MB)