From 0355ade55ac9a7d974316d695d7b4af1eb8c9fe9 Mon Sep 17 00:00:00 2001 From: Oros Date: Wed, 5 Oct 2016 16:46:01 +0200 Subject: [PATCH] fix check of Channel Type --- README.md | 2 +- simple_IMSI-catcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc79cb8..43d4b06 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Links Setup of Gr-Gsm : http://blog.nikseetharaman.com/gsm-network-characterization-using-software-defined-radio/ Frequency : https://fr.wikipedia.org/wiki/Global_System_for_Mobile_Communications -Mobile Network Code : https://fr.wikipedia.org/wiki/Mobile_Network_Code +Mobile Network Code : https://en.wikipedia.org/wiki/Mobile_Network_Code Scapy : http://secdev.org/projects/scapy/doc/usage.html IMSI : https://fr.wikipedia.org/wiki/IMSI Realtek RTL2832U : http://doc.ubuntu-fr.org/rtl2832u and http://doc.ubuntu-fr.org/rtl-sdr diff --git a/simple_IMSI-catcher.py b/simple_IMSI-catcher.py index b71e160..dbb0bf2 100644 --- a/simple_IMSI-catcher.py +++ b/simple_IMSI-catcher.py @@ -93,7 +93,7 @@ def show_imsi(imsi, p): def find_imsi(x): p=str(x) - if ord(p[0x36]) == 0x2: + if ord(p[0x36]) != 0x1: # Channel Type != BCCH (0) if ord(p[0x3c]) == 0x21: # Message Type: Paging Request Type 1 if ord(p[0x3e]) == 0x08 and (ord(p[0x3f]) & 0x1) == 0x1: # Channel 1: TCH/F (Full rate) (2) # Mobile Identity 1 Type: IMSI (1)