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

Add pymet core_native_arch method

This commit is contained in:
Spencer McIntyre 2017-02-18 15:55:47 -05:00
parent d11979b09d
commit 77d6ea0161

View File

@ -923,6 +923,10 @@ class PythonMeterpreter(object):
response += tlv_pack(TLV_TYPE_MACHINE_ID, "%s:%s" % (serial, machine_name))
return ERROR_SUCCESS, response
def _core_native_arch(self, request, response):
response += tlv_pack(TLV_TYPE_STRING, get_native_arch())
return ERROR_SUCCESS, response
def _core_patch_url(self, request, response):
if not isinstance(self.transport, HttpTransport):
return ERROR_FAILURE, response