better test for registry extension

git-svn-id: file:///home/svn/framework3/trunk@11819 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-02-24 19:36:22 +00:00
parent 4721fd4539
commit 21ed434f24
1 changed files with 5 additions and 1 deletions

View File

@ -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