tool for anonymization of (telecom) PCAP files
Go to file
Harald Welte 4626b5c2f0 Fix bug trying to use encode method on byte object
Traceback (most recent call last):
  File "/tmp/s1ap_reiniger.py", line 242, in <module>
    handle_pcap(sys.argv[1], sys.argv[2])
  File "/tmp/s1ap_reiniger.py", line 213, in handle_pcap
    pkt = handle_sctp_pkt(pkt)
  File "/tmp/s1ap_reiniger.py", line 192, in handle_sctp_pkt
    success = handle_sctp_chunk(chunk)
  File "/tmp/s1ap_reiniger.py", line 166, in handle_sctp_chunk
    handle_s1ap(s1ap())
  File "/tmp/s1ap_reiniger.py", line 152, in handle_s1ap
    find_and_handle_s1ap_nas_pdu(msg[1]['value'], dl = False)
  File "/tmp/s1ap_reiniger.py", line 103, in find_and_handle_s1ap_nas_pdu
    pdu = handle_nas_pdu(ie['value'][1], dl)
  File "/tmp/s1ap_reiniger.py", line 30, in handle_nas_pdu
    log.debug("Processing %s NAS PDU: %s" % ("Downlink" if dl else "Uplink", pdu.encode('hex')))
AttributeError: 'bytes' object has no attribute 'encode'
2019-09-27 09:52:16 +02:00
s1ap_reiniger.py Fix bug trying to use encode method on byte object 2019-09-27 09:52:16 +02:00