fix for multiple exploit

git-svn-id: file:///home/svn/incoming/trunk@3046 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-11-18 00:26:19 +00:00
parent 07328a0841
commit cbbce06ee0
3 changed files with 4 additions and 4 deletions

View File

@ -171,7 +171,7 @@ protected
# Set the exploit up the bomb
exploit.setup
# Launch the exploit
exploit.exploit

View File

@ -163,7 +163,7 @@ class OptBool < OptBase
end
def normalize(value)
if(value.nil? or ((value.kind_of?(String) == true) and value.match(TrueRegex).nil?))
if(value.nil? or value.to_s.match(TrueRegex).nil?)
false
else
true

View File

@ -108,8 +108,8 @@ class Rex::Socket::Parameters
self.bare = false
end
if (hash['SSL'] and hash['SSL'] !~ /false|0|n/i)
self.ssl = hash['SSL']
if (hash['SSL'] and hash['SSL'].to_s =~ /^(t|y|1)/i)
self.ssl = true
else
self.ssl = false
end