1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-06 09:13:02 +01:00

set 0 instead of None in memory addresses - ext_server_stdapi.py

Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
This commit is contained in:
Alex Romero 2023-05-12 00:11:47 +03:30 committed by GitHub
parent 2453e2703a
commit 0289d70ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1756,8 +1756,8 @@ def stdapi_sys_process_memory_query(request, response):
if size == 0:
return error_result_windows(), response
response += tlv_pack(TLV_TYPE_BASE_ADDRESS, info.BaseAddress)
response += tlv_pack(TLV_TYPE_ALLOC_BASE_ADDRESS, info.AllocationBase)
response += tlv_pack(TLV_TYPE_BASE_ADDRESS, info.BaseAddress or 0)
response += tlv_pack(TLV_TYPE_ALLOC_BASE_ADDRESS, info.AllocationBase or 0)
response += tlv_pack(TLV_TYPE_ALLOC_PROTECTION, info.AllocationProtect)
response += tlv_pack(TLV_TYPE_LENGTH, info.RegionSize)
response += tlv_pack(TLV_TYPE_MEMORY_STATE, info.State)