Skip to content

Commit

Permalink
Update meterpreter.py
Browse files Browse the repository at this point in the history
fixed an error for older Python versions
  • Loading branch information
0xriasaat authored Nov 30, 2024
1 parent 42b0fbc commit 50c3771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/meterpreter/meterpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ def _get_packet(self):
if len(packet) != (pkt_length + PACKET_HEADER_SIZE):
packet = None
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:
self.communication_last = time.time()
Expand Down

0 comments on commit 50c3771

Please sign in to comment.