gem version

bug/bundler_fix
h00die 2016-06-16 21:09:56 -04:00
parent afc942c680
commit ebde552982
1 changed files with 3 additions and 6 deletions

View File

@ -56,13 +56,10 @@ class MetasploitModule < Msf::Exploit::Remote
'uri' => normalize_uri(target_uri.path, 'index.php'),
'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 && \
version_high.to_i <= 2 && \
version_med.to_i <= 5 && \
version_low.to_i <= 3
vprint_good("Version Detected: #{[version_high, version_med, version_low].join('.')}")
if version && Gem::Version.new(version) <= Gem::Version.new('2.5.3')
vprint_good("Version Detected: #{version}")
Exploit::CheckCode::Appears
else
Exploit::CheckCode::Safe