fix check of Channel Type
This commit is contained in:
parent
378d9bf0bf
commit
0355ade55a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue