Check if session responds to response_timeout
parent
b33efd8b8d
commit
98d531e053
|
@ -1778,7 +1778,9 @@ class Core
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
# Restore timeout for each session
|
# Restore timeout for each session
|
||||||
session.response_timeout = last_known_timeout if last_known_timeout
|
if session.respond_to?(:response_timeout)
|
||||||
|
session.response_timeout = last_known_timeout if last_known_timeout
|
||||||
|
end
|
||||||
end
|
end
|
||||||
# If the session isn't a meterpreter or shell type, it
|
# If the session isn't a meterpreter or shell type, it
|
||||||
# could be a VNC session (which can't run commands) or
|
# could be a VNC session (which can't run commands) or
|
||||||
|
|
Loading…
Reference in New Issue