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:
commit
a1913e6ac1
@ -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)
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user