gem version
parent
afc942c680
commit
ebde552982
|
@ -56,13 +56,10 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
'uri' => normalize_uri(target_uri.path, 'index.php'),
|
'uri' => normalize_uri(target_uri.path, 'index.php'),
|
||||||
'method' => 'GET'
|
'method' => 'GET'
|
||||||
)
|
)
|
||||||
/LoginInvitVersion"><br \/>[\s]+(?<version_high>[\d]{1,2})\.(?<version_med>[\d]{1,2})\.(?<version_low>[\d]{1,2})[\s]+<\/td>/ =~ res.body
|
/LoginInvitVersion"><br \/>[\s]+(?<version>[\d]{1,2}\.[\d]{1,2}\.[\d]{1,2})[\s]+<\/td>/ =~ res.body
|
||||||
|
|
||||||
if version_high && version_med && version_low && \
|
if version && Gem::Version.new(version) <= Gem::Version.new('2.5.3')
|
||||||
version_high.to_i <= 2 && \
|
vprint_good("Version Detected: #{version}")
|
||||||
version_med.to_i <= 5 && \
|
|
||||||
version_low.to_i <= 3
|
|
||||||
vprint_good("Version Detected: #{[version_high, version_med, version_low].join('.')}")
|
|
||||||
Exploit::CheckCode::Appears
|
Exploit::CheckCode::Appears
|
||||||
else
|
else
|
||||||
Exploit::CheckCode::Safe
|
Exploit::CheckCode::Safe
|
||||||
|
|
Loading…
Reference in New Issue