1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-14 17:37:27 +01:00

Update meterpreter.py

fixed an error for older Python versions
This commit is contained in:
0xriasaat 2024-12-01 01:38:14 +06:00 committed by GitHub
parent 42b0fbc35a
commit 50c377147d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1082,7 +1082,7 @@ class HttpTransport(Transport):
if len(packet) != (pkt_length + PACKET_HEADER_SIZE): if len(packet) != (pkt_length + PACKET_HEADER_SIZE):
packet = None packet = None
except requests.RequestException as e: except requests.RequestException as e:
debug_traceback(f"[-] Failure to receive packet from {self.url}: {e}") debug_traceback("[-] Failure to receive packet from " + str(self.url) + ": " + str(e))
if not packet: if not packet:
self.communication_last = time.time() self.communication_last = time.time()