summaryrefslogtreecommitdiffstats
path: root/Src/PyCatcher/src/settings.py
blob: e263d72015187d5251d68675df4c03abfdb1728d (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#Core Configuration ------------------------------------------------------------------------------------------

PyCatcher_settings = {'debug' : True,
                    }

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'],
            'pch_command' : [Osmocon_lib + '/host/layer23/src/misc/pch_scan'],
           }

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

Provider_list = ['T-Mobile', 'O2', 'Vodafone', 'E-Plus']

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],
    'T-Mobile' : [21014,21015],
    'O2' : [50945],
    'Vodafone' : [793],
    'E-Plus' : [138,588]
}

ARFCN_mapping = {
    'DB Systel GSM-R': [(0,1)],
    'T-Mobile' : [(13,49),(81, 102),(122,124),(587,611)],
    'O2' : [(0,0),(1000,1023),(637,723)],
    'Vodafone' : [(1,12),(50,80),(103,121),(725,751)],
    'E-Plus' : [(975,999),(777,863)]
}

LAC_threshold = 0.05

DB_RX_threshold = 0.05

CH_RX_threshold = 0.07

Pagings_per_10s_threshold = 20

Assignment_limit = 0

#Evaluator Configuration ---------------------------------------------------------------------------------------

Rule_Groups = []

Rule_Weights = {}

#PCH Parameters ------------------------------------------------------------------------------------------------

PCH_retries = 5

USR_timeout = 15

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

Open_Cell_ID_Key = 'd7a5bc3f21b44d4bf93d1ec2b3f83dc4'

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