1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-14 17:37:27 +01:00

Update python meterpreter to include hex error code when format message fails

This commit is contained in:
adfoster-r7 2023-06-14 22:21:53 +01:00
parent 1ead8a024d
commit 8d61e5591b
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04

View File

@ -2899,7 +2899,7 @@ def stdapi_railgun_api(request, response):
if last_error == ERROR_SUCCESS:
error_message = 'The operation completed successfully.'
else:
error_message = 'FormatMessage failed to retrieve the error.'
error_message = 'FormatMessage failed to retrieve the error for value ' + hex(last_error) + '.'
else:
raise RuntimeError('unknown platform')