Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-agent cleanup #1190

Merged
merged 1 commit into from
Dec 21, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ def initialize
def run_host(ip)
res = send_request_cgi({
'uri' => "/dswsbobje/services/listServices",
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}

'method' => 'GET'
}, 25)
return if not res

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ def initialize
def run_host(ip)
res = send_request_cgi({
'uri' => "/PlatformServices/service/app/logon.object",
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}

'method' => 'GET'
}, 25)
return if not res

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def initialize
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}

'method' => 'GET'
}, 25)
return if not res

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']) + "/services/listServices",
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}

'method' => 'GET'
}, 25)
return if not res or res.code != 200

Expand Down
3 changes: 1 addition & 2 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_abaplog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' => {'User-Agent' => datastore['UserAgent']}
'method' => 'GET'
}, 25)

if not res
Expand Down
6 changes: 1 addition & 5 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_brute_login.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ def initialize
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
7 changes: 1 addition & 6 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_extractusers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}

'method' => 'GET'
}, 25)

if not res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
6 changes: 1 addition & 5 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_getenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
4 changes: 2 additions & 2 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_getlogfiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def initialize
Opt::RPORT(50013),
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('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE']),
OptBool.new('GETALL', [ false, 'Download all available files (WARNING: may take long!)', false]),
OptEnum.new('FILETYPE', [true, 'Specify LOGFILE or TRACEFILE', 'TRACEFILE', ['TRACEFILE','LOGFILE']]),
OptBool.new('GETALL', [ false, 'Download all available files (WARNING: may take a long time!)', false])
], self.class)
register_autofilter_ports([ 50013 ])
deregister_options('RHOST')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
8 changes: 2 additions & 6 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_listlogfiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def initialize
[
Opt::RPORT(50013),
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)
register_autofilter_ports([ 50013 ])
deregister_options('RHOST')
Expand All @@ -52,11 +52,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' =>
{
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
5 changes: 1 addition & 4 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_startprofile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down
5 changes: 1 addition & 4 deletions modules/auxiliary/scanner/sap/sap_mgmt_con_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ def rport
def run_host(ip)
res = send_request_cgi({
'uri' => normalize_uri(datastore['URI']),
'method' => 'GET',
'headers' => {
'User-Agent' => datastore['UserAgent']
}
'method' => 'GET'
}, 25)

if not res
Expand Down