summaryrefslogtreecommitdiffstats
path: root/Src/PyCatcher/src/settings.py
blob: 11084dc770507d412cd0a316bb625b1dcdf7d6a8 (plain) (blame)
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
#Core Configuration ------------------------------------------------------------------------------------------

PyCatcher_settings = {'debug' : False,
                    }

Device_settings = { 'mobile_device' : '/dev/ttyUSB0',
                    'xor_type' : 'c123xor',
                    'firmware' : 'compal_e88',
                   }

Osmocon_lib = '/home/tom/imsi-catcher-detection/Src/osmolib/src'

Commands = {'osmocon_command' : [Osmocon_lib + '/host/osmocon/osmocon', 
                                    '-p', Device_settings['mobile_device'], 
                                    '-m', Device_settings['xor_type'], 
                                    Osmocon_lib + '/target/firmware/board/' + Device_settings['firmware'] + '/layer1.compalram.bin'],   
            'scan_command' : [Osmocon_lib + '/host/layer23/src/misc/catcher'],
           }

#Rules Configuration -------------------------------------------------------------------------------------------

Provider_list = ['T-Mobile', 'O2', 'Vodafone', 'E-Plus', 'DB Systel GSM-R']

Provider_Country_list = {
    'DB Systel GSM-R':'Germany',
    'T-Mobile':'Germany',
    'O2':'Germany',
    'Vodafone':'Germany',
    'E-Plus':'Germany'
}

LAC_mapping = {
    'DB Systel GSM-R': [0,999999],
    'T-Mobile' : [21000,22000],
    'O2' : [0,99999],
    'Vodafone' : [0,100000],
    'E-Plus' : [0,100000]
}

ARFCN_mapping = {
    'DB Systel GSM-R': [0,9999],
    'T-Mobile' : [0,9999],
    'O2' : [0,9999],
    'Vodafone' : [0,9999],
    'E-Plus' : [0,9999]
}

LAC_threshold = 0

RX_threshold = 0.05

#Database Configuration ----------------------------------------------------------------------------------------

Open_Cell_ID_Key = 'd7a5bc3f21b44d4bf93d1ec2b3f83dc4'

Database_path = '/home/tom/imsi-catcher-detection/Src/PyCatcher/Databases/'