Land #10666, compatible_sessions NoMethodError fix

4.x
William Vu 2018-09-19 03:44:04 -05:00 committed by Metasploit
parent 9b466d93bf
commit 2f515318e7
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 3 additions and 1 deletions

View File

@ -2247,7 +2247,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
#