Merge branch 'useragent_cleanup' of git://github.com/ChrisJohnRiley/metasploit-framework into ChrisJohnRiley-useragent_cleanup
commit
2c4d517e75
|
@ -48,11 +48,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => "/dswsbobje/services/listServices",
|
'uri' => "/dswsbobje/services/listServices",
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 25)
|
}, 25)
|
||||||
return if not res
|
return if not res
|
||||||
|
|
||||||
|
|
|
@ -44,11 +44,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => "/PlatformServices/service/app/logon.object",
|
'uri' => "/PlatformServices/service/app/logon.object",
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 25)
|
}, 25)
|
||||||
return if not res
|
return if not res
|
||||||
|
|
||||||
|
|
|
@ -50,11 +50,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
|
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 25)
|
}, 25)
|
||||||
return if not res
|
return if not res
|
||||||
|
|
||||||
|
|
|
@ -49,11 +49,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
|
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 25)
|
}, 25)
|
||||||
return if not res or res.code != 200
|
return if not res or res.code != 200
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {'User-Agent' => datastore['UserAgent']}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -52,11 +52,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -50,12 +50,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -50,11 +50,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -50,11 +50,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -41,8 +41,8 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
Opt::RPORT(50013),
|
Opt::RPORT(50013),
|
||||||
OptString.new('URI', [false, 'Path to the SAP Management Console ', '/']),
|
OptString.new('URI', [false, 'Path to the SAP Management Console ', '/']),
|
||||||
OptString.new('RFILE', [ true, 'The name of the file to download ', 'sapstart.log']),
|
OptString.new('RFILE', [ true, 'The name of the file to download ', 'sapstart.log']),
|
||||||
OptString.new('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE']),
|
OptEnum.new('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE', ['TRACEFILE','LOGFILE']]),
|
||||||
OptBool.new('GETALL', [ false, 'Download all available files (WARNING: may take long!)', false]),
|
OptBool.new('GETALL', [ false, 'Download all available files (WARNING: may take a long time!)', false])
|
||||||
], self.class)
|
], self.class)
|
||||||
register_autofilter_ports([ 50013 ])
|
register_autofilter_ports([ 50013 ])
|
||||||
deregister_options('RHOST')
|
deregister_options('RHOST')
|
||||||
|
|
|
@ -51,11 +51,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
[
|
[
|
||||||
Opt::RPORT(50013),
|
Opt::RPORT(50013),
|
||||||
OptString.new('URI', [false, 'Path to the SAP Management Console ', '/']),
|
OptString.new('URI', [false, 'Path to the SAP Management Console ', '/']),
|
||||||
OptString.new('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE']),
|
OptEnum.new('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE', ['TRACEFILE','LOGFILE']])
|
||||||
], self.class)
|
], self.class)
|
||||||
register_autofilter_ports([ 50013 ])
|
register_autofilter_ports([ 50013 ])
|
||||||
deregister_options('RHOST')
|
deregister_options('RHOST')
|
||||||
|
@ -52,11 +52,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' =>
|
|
||||||
{
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -50,10 +50,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
|
@ -50,10 +50,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def run_host(ip)
|
def run_host(ip)
|
||||||
res = send_request_cgi({
|
res = send_request_cgi({
|
||||||
'uri' => normalize_uri(datastore['URI']),
|
'uri' => normalize_uri(datastore['URI']),
|
||||||
'method' => 'GET',
|
'method' => 'GET'
|
||||||
'headers' => {
|
|
||||||
'User-Agent' => datastore['UserAgent']
|
|
||||||
}
|
|
||||||
}, 25)
|
}, 25)
|
||||||
|
|
||||||
if not res
|
if not res
|
||||||
|
|
Loading…
Reference in New Issue