diff --git a/s1ap_reiniger.py b/s1ap_reiniger.py index 89c3d20..1c21f26 100755 --- a/s1ap_reiniger.py +++ b/s1ap_reiniger.py @@ -27,7 +27,7 @@ from pycrate_asn1dir import S1AP from pycrate_mobile import NAS def handle_nas_pdu(pdu, dl, regen = False): - log.debug("Processing %s NAS PDU: %s" % ("Downlink" if dl else "Uplink", pdu.encode('hex'))) + log.debug("Processing %s NAS PDU: %s" % ("Downlink" if dl else "Uplink", pdu.hex())) (msg, code) = NAS.parse_NASLTE_MT(pdu) if dl else NAS.parse_NASLTE_MO(pdu) if code: log.error("Failed to parse NAS payload") @@ -54,7 +54,7 @@ def handle_s1ap_imsi(imsi): return '\x29\x26\x24' + '\x00' * 5 def handle_s1ap_tmsi(tmsi): - log.info("Cleaning TMSI: %s" % tmsi.encode('hex')) + log.info("Cleaning TMSI: %s" % tmsi.hex()) return tmsi # NOTE: for now, keep TMSI unchanged def handle_s1ap_imeisv(imeisv):