Tutorial » History » Version 1
Linus, 12/23/2013 05:54 PM
1 | 1 | Linus | h1. Osmocom + CatcherCatcher tutorial |
---|---|---|---|
2 | |||
3 | In this page, you can find all the needed information to set up an IMSI Catcher Catcher based on Osmocom. |
||
4 | |||
5 | If you already have a working Osmocom setup you may skip some steps and just open a new git branch. |
||
6 | All the normal capabilities of an Osmocom-based mobile are available. |
||
7 | |||
8 | For everything not covered on this tutorial you can check the Osmocom wiki: |
||
9 | * http://bb.osmocom.org/trac/wiki/GettingStarted |
||
10 | * http://bb.osmocom.org/trac/wiki/mobile |
||
11 | |||
12 | h2. Download sources into ~/catchercatcher |
||
13 | |||
14 | <pre> |
||
15 | mkdir -p ~/catchercatcher |
||
16 | cd ~/catchercatcher |
||
17 | git clone git://git.osmocom.org/osmocom-bb.git |
||
18 | wget https://opensource.srlabs.de/attachments/download/63/mobile.cfg |
||
19 | </pre> |
||
20 | |||
21 | h2. Download ARM cross compiler |
||
22 | |||
23 | <pre> |
||
24 | wget http://gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 |
||
25 | tar xf bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 |
||
26 | </pre> |
||
27 | |||
28 | h2. Compile OsmocomBB |
||
29 | |||
30 | <pre> |
||
31 | cd ~/catchercatcher/osmocom-bb |
||
32 | git checkout --track origin/luca/catcher |
||
33 | |||
34 | cd src |
||
35 | export PATH=$PATH:~/catchercatcher/gnuarm-3.4.3/bin |
||
36 | make |
||
37 | </pre> |
||
38 | |||
39 | |||
40 | h2. Setup configuration file |
||
41 | |||
42 | <pre> |
||
43 | mkdir -p ~/.osmocom/bb |
||
44 | cp ~/catchercatcher/mobile.cfg ~/.osmocom/bb/ |
||
45 | </pre> |
||
46 | |||
47 | h2. Run OsmocomBB firmware |
||
48 | |||
49 | <pre> |
||
50 | # Conect Osmocom phone (eg, Motorola C123) through USB cable |
||
51 | cd ~/catchercatcher/osmocom-bb/src |
||
52 | ./host/osmocon/osmocon -m c123xor -p /dev/ttyUSB0 ./target/firmware/board/compal_e88/layer1.compalram.bin |
||
53 | # Switch on Osmocom phone |
||
54 | </pre> |
||
55 | |||
56 | h2. Run OsmocomBB host software (in second terminal) |
||
57 | |||
58 | ../osmocom-bb/src/host/layer23/src/mobile/mobile |
||
59 | |||
60 | h2. Connect to console |
||
61 | |||
62 | <pre> |
||
63 | # every event is reported on the console port |
||
64 | # (try to connect as soon as possible) |
||
65 | telnet 127.0.0.1 4247 |
||
66 | |||
67 | # to get the current catcher status |
||
68 | show catcher <enter> |
||
69 | |||
70 | # before call or sms you need privileged mode |
||
71 | en <enter> |
||
72 | |||
73 | # use help or ? to see the parameters |
||
74 | help call <enter> |
||
75 | help sms <enter> |
||
76 | </pre> |