1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-18 15:14:10 +01:00

Land , Fix pack format string issue in python extension

This commit is contained in:
Brent Cook 2016-10-03 19:49:25 -05:00
commit a1913e6ac1
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
2 changed files with 1 additions and 1 deletions
c/meterpreter/source/extensions/python
Lib/meterpreter
Resource Files

@ -213,7 +213,7 @@ def invoke_meterpreter(method, is_local, tlv = ""):
header += tlv_pack(TLV_TYPE_METHOD, method)
header += tlv_pack(TLV_TYPE_REQUEST_ID, 0)
# add a leading 4-byte "zero" for the xor-key
req = struct.pack('>I>I', 0, len(header) + len(tlv) + 4) + header + tlv
req = struct.pack('>II', 0, len(header) + len(tlv) + 4) + header + tlv
return getattr(meterpreter_bindings, binding)(is_local, req)