Land #11332, Add support for mettle debug

4.x
Brent Cook 2019-01-30 11:05:45 -06:00 committed by Metasploit
parent 649e528875
commit ac937a7996
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
2 changed files with 22 additions and 0 deletions

View File

@ -71,6 +71,14 @@ module Msf
opts[:name] ||= ds['PayloadProcessCommandLine']
end
if ds['RemoteMeterpreterDebugFile'] != ''
opts[:log_file] ||= ds['RemoteMeterpreterDebugFile']
end
log_level = ds['MeterpreterDebugLevel'].to_i
log_level = 0 if log_level < 0
log_level = 3 if log_level > 3
opts[:debug] = log_level
opts[:uuid] ||= generate_payload_uuid
case opts[:scheme]

View File

@ -82,6 +82,20 @@ module Msf::Payload::Linux
"false"
]
),
Msf::OptInt.new('MeterpreterDebugLevel',
[
true,
"Set debug level for meterpreter 0-3 (Default output is strerr)",
0
]
),
Msf::OptString.new('RemoteMeterpreterDebugFile',
[
false,
"Redirect Debug Info to a Log File",
""
]
),
], Msf::Payload::Linux)
ret