Project

General

Profile

Tutorial » History » Version 1

Linus, 12/23/2013 05:54 PM

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