I'm getting numerous errors involving the base64 decoding of packet data. Unfortunately i cannot provide any example packets due to the sensitive nature of the data, but happy to assist in other ways to identify the root cause.
Traceback (most recent call last):
File "./Pcredz", line 834, in <module>
Run()
File "./Pcredz", line 829, in Run
decode_file(fname,'')
File "./Pcredz", line 743, in decode_file
Print_Packet_Tcpdump(plen, t, buf)
File "./Pcredz", line 717, in Print_Packet_Tcpdump
ParseDataRegex(decoded, SrcPort, DstPort)
File "./Pcredz", line 411, in ParseDataRegex
decoded_value = b64decode(authz_value_padded)
File "/usr/lib/python3.8/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (1173) cannot be 1 more than a multiple of 4
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "./Pcredz", line 720, in loop_packets
func(x[0], x[1], x[2])
File "./Pcredz", line 706, in Print_Packet_Tcpdump
ParseDataRegex(decoded, SrcPort, DstPort)
File "./Pcredz", line 404, in ParseDataRegex
decoded['data'] = b64decode(b''.join(HTTPNegotiateAuthz))
File "/usr/local/lib/python3.7/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding