fix for multiple exploit
git-svn-id: file:///home/svn/incoming/trunk@3046 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
07328a0841
commit
cbbce06ee0
|
@ -171,7 +171,7 @@ protected
|
|||
|
||||
# Set the exploit up the bomb
|
||||
exploit.setup
|
||||
|
||||
|
||||
# Launch the exploit
|
||||
exploit.exploit
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue