summaryrefslogblamecommitdiffstats
path: root/Src/PyCatcher/src/settings.py
blob: b810899b644c8b4270e833bc8d94f2e3a4b5eab0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

                                                                                                              
                                     











                                                                            

                                                                                                         
                                                                              
                                                                              



                                                                                                                
                                                                           

                         
                                
                         


                         

 
               




                               
 
 
                 
                               
                                                         


                                                      

 
                    
 

                      










                                                                                                                
 





                                                                                                                


                                                                                                                
 
                                                                           
 
#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', '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],
    '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

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

PCH_retries = 5

USR_timeout = 15

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

Rule_Groups = []

Rule_Weights = {}

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

Open_Cell_ID_Key = 'd7a5bc3f21b44d4bf93d1ec2b3f83dc4'

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