Fix crash issue when auto complete the session option.

GSoC/Meterpreter_Web_Console
Green-m 2018-09-18 18:49:56 +08:00
parent 1260c8f801
commit 85c40a122a
No known key found for this signature in database
GPG Key ID: 7A4A0E684B5D6747
1 changed files with 3 additions and 1 deletions

View File

@ -2225,7 +2225,9 @@ class Core
# Provide valid session options for the current post-exploit module
#
def option_values_sessions
active_module.compatible_sessions.map { |sid| sid.to_s }
if active_module.respond_to?(:compatible_sessions)
active_module.compatible_sessions.map { |sid| sid.to_s }
end
end
#