1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-08 23:33:07 +01:00

Land #131, 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

View File

@ -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)