summaryrefslogtreecommitdiffstats
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/PyCatcher/src/driverConnector.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Src/PyCatcher/src/driverConnector.py b/Src/PyCatcher/src/driverConnector.py
index 8b20e4a..cf6f15a 100644
--- a/Src/PyCatcher/src/driverConnector.py
+++ b/Src/PyCatcher/src/driverConnector.py
@@ -182,6 +182,7 @@ class PCHThread(threading.Thread):
self._timeout = timeout
self._thread_break = False
self._scan_finished_callback = finished_callback
+ self._tmsi_dict = {}
def terminate(self):
self._thread_break = True
@@ -224,6 +225,13 @@ class PCHThread(threading.Thread):
if line:
if 'Paging' in line:
pages_found += 1
+ match = re.search(r'M\((.*)\)',line)
+ if match:
+ tmsi = match.group(1)
+ if not self._tmsi_dict.has_key(tmsi):
+ self._tmsi_dict[tmsi] = 1
+ else:
+ self._tmsi_dict[tmsi] += 1
if 'IMM' in line:
if 'HOP' in line:
ia_hop_fund += 1
@@ -243,6 +251,10 @@ class PCHThread(threading.Thread):
if scan_process:
scan_process.kill()
+ print 'Different TMSI: %d'%len(self._tmsi_dict)
+ for key, value in self._tmsi_dict.iteritems():
+ print key, value
+
result = {
'Pagings': pages_found,
'Assignments_hopping': ia_hop_fund,