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:
parent
1ead8a024d
commit
8d61e5591b
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user