summaryrefslogtreecommitdiffstats
path: root/Src/PyCatcher/src/pyCatcherModel.py
diff options
context:
space:
mode:
authorTom2012-03-01 16:00:56 +0100
committerTom2012-03-01 16:00:56 +0100
commit5a7b44073550196d0d52f022d991ffed7b04e7e8 (patch)
tree4ce2900b1c6d338329e486443f767ee1454409cf /Src/PyCatcher/src/pyCatcherModel.py
parentgitignore updated (diff)
downloadimsi-catcher-detection-5a7b44073550196d0d52f022d991ffed7b04e7e8.tar.gz
imsi-catcher-detection-5a7b44073550196d0d52f022d991ffed7b04e7e8.tar.xz
imsi-catcher-detection-5a7b44073550196d0d52f022d991ffed7b04e7e8.zip
cleaning up git
Diffstat (limited to 'Src/PyCatcher/src/pyCatcherModel.py')
-rw-r--r--Src/PyCatcher/src/pyCatcherModel.py27
1 files changed, 20 insertions, 7 deletions
diff --git a/Src/PyCatcher/src/pyCatcherModel.py b/Src/PyCatcher/src/pyCatcherModel.py
index a857760..5de6234 100644
--- a/Src/PyCatcher/src/pyCatcherModel.py
+++ b/Src/PyCatcher/src/pyCatcherModel.py
@@ -3,22 +3,27 @@ import gtk
import math
class BaseStationInformation:
- #TODO: examine plmn permitted byte
- #TODO: examine emergency call capability
+
def __init__ (self):
self.country = 'Nowhere'
self.provider = 'Carry'
self.arfcn = 0
self.rxlev = 0
self.system_info_t2 = []
+ self.system_info_t2bis = []
+ self.system_info_t2ter = []
self.discovery_time = datetime.datetime.now().strftime('%T')
self.found = False
-
+ self.bsic = ''
+ self.lac = 0
+ self.cell = 0
+ self.rules_report = {}
+ self.evaluation = 'NYE'
+
def get_list_model(self):
- return (self.provider, str(self.arfcn), str(self.rxlev), self.discovery_time)
+ return (self.provider, str(self.arfcn), str(self.rxlev), self.evaluation, self.discovery_time)
def get_neighbour_arfcn(self):
- #TODO: implement this for bis/tar sysinfo
neighbours = self.system_info_t2[3:19]
bin_representation = ''
neighbour_arfcn = []
@@ -30,8 +35,7 @@ class BaseStationInformation:
>>> for i, bit in enumerate(reversed(a)):
... if bit == '1':
... print i
- '''
-
+ '''
for x in xrange(1,125):
index = 0-x
bit = bin_representation[index]
@@ -39,6 +43,15 @@ class BaseStationInformation:
neighbour_arfcn.append(abs(index))
return neighbour_arfcn
+ def get_neighbour_arfcn_ter(self):
+ pass
+
+ def get_neighbour_arfcn_bis(self):
+ pass
+
+ def create_lof(self):
+ pass
+
class BaseStationInformationList:
def __init__(self):
self._base_station_list = []