mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-28 08:29:58 -07:00
raise error on non nas message
This commit is contained in:
committed by
Will Greenberg
parent
4009e3d1ed
commit
e47d4dacc4
@@ -26,7 +26,7 @@ def parse_nas_message(buffer, uplink=None):
|
||||
parsed = NASLTE.parse_NASLTE_MT(bin)
|
||||
|
||||
if parsed[0] is None: # Not a NAS Packet
|
||||
raise parsed[1]
|
||||
raise TypeError("Not a nas packet")
|
||||
return parsed[0]
|
||||
|
||||
def heur_ue_imsi_sent(msg):
|
||||
|
||||
Reference in New Issue
Block a user