better test for registry extension
git-svn-id: file:///home/svn/framework3/trunk@11819 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4721fd4539
commit
21ed434f24
|
@ -108,7 +108,11 @@ protected
|
|||
# Determines whether the session can use meterpreter registry methods
|
||||
#
|
||||
def session_has_registry_ext?
|
||||
(session.sys and session.sys.respond_to?(:registry))
|
||||
begin
|
||||
return !!(session.sys and session.sys.registry)
|
||||
rescue NoMethodError
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue