Fix crash issue when auto complete the session option.
parent
1260c8f801
commit
85c40a122a
|
@ -2225,8 +2225,10 @@ class Core
|
|||
# Provide valid session options for the current post-exploit module
|
||||
#
|
||||
def option_values_sessions
|
||||
if active_module.respond_to?(:compatible_sessions)
|
||||
active_module.compatible_sessions.map { |sid| sid.to_s }
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# Provide valid target options for the current exploit
|
||||
|
|
Loading…
Reference in New Issue