Fix the if cleanup

bug/bundler_fix
jvazquez-r7 2014-06-17 23:40:00 -05:00
parent 288430d813
commit 45ea59050c
1 changed files with 8 additions and 7 deletions

View File

@ -40,7 +40,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Arch' => ARCH_CMD,
'Payload' =>
{
#'BadChars' => "[;`$<>|]", # Don't apply bcuz of the perl stub applied
#'BadChars' => "[;`$<>|]", # Don't apply bcuz of the perl stub applied
'Compat' => {
'RequiredCmd' => 'perl netcat-e openssl python gawk'
}
@ -66,12 +66,13 @@ class Metasploit3 < Msf::Exploit::Remote
version = ""
res = send_soap_request("get_dpkg")
if res && res.code == 200
if res.headers['SOAPServer'] && res.headers['SOAPServer'] =~ /SOAP::Lite/
if res.body.to_s =~ /alienvault-center\s*([\d\.]*)-\d/
version = $1
end
end
if res &&
res.code == 200 &&
res.headers['SOAPServer'] &&
res.headers['SOAPServer'] =~ /SOAP::Lite/ &&
res.body.to_s =~ /alienvault-center\s*([\d\.]*)-\d/
version = $1
end
if version.empty? || version >= "4.7.0"