parent
1ca8fd2cf1
commit
74bddcf339
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue