Skip to content

Commit efb226a

Browse files
committed
Fixed some minor errors
1 parent 81a35f8 commit efb226a

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

modules/auxiliary/dos/http/f5_bigip_apm_max_sessions.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def initialize(info = {})
2525
},
2626
'Author' =>
2727
[
28+
'Denis Kolegov <dnkolegov[at]gmail.com>',
2829
'Oleg Broslavsky <ovbroslavsky[at]gmail.com>',
29-
'Nikita Oleksov <neoleksov[at]gmail.com>',
30-
'Denis Kolegov <dnkolegov[at]gmail.com>'
30+
'Nikita Oleksov <neoleksov[at]gmail.com>'
3131
],
3232
'References' =>
3333
[
@@ -45,7 +45,7 @@ def initialize(info = {})
4545
register_options(
4646
[
4747
OptInt.new('RLIMIT', [true, 'The number of requests to send', 10000]),
48-
OptBool.new('FORCE', [true, 'Proceed with attack even if a BigIP virtual isn\'t detected', false])
48+
OptBool.new('FORCE', [true, 'Proceed with attack even if a BigIP virtual server isn\'t detected', false])
4949
], self.class)
5050
end
5151

@@ -89,10 +89,12 @@ def run
8989
print_status("#{peer} - Result is undefined. Try to manually determine DoS attack result")
9090
end
9191

92+
rescue ::Errno::ECONNRESET
93+
print_error("#{peer} - The connection was reset. Maybe BigIP 'Max In Progress Sessions Per Client IP' counter was reached")
9294
rescue ::Rex::ConnectionRefused
93-
print_error("#{peer} - Unable to connect to BigIP. Maybe BigIP 'Max In Progress Sessions Per Client IP' counter was reached")
95+
print_error("#{peer} - Unable to connect to BigIP")
9496
rescue ::Rex::ConnectionTimeout
95-
print_error("#{peer} - Unable to connect to BigIP.")
97+
print_error("#{peer} - Unable to connect to BigIP. Please check options")
9698
rescue ::OpenSSL::SSL::SSLError
9799
print_error("#{peer} - SSL/TLS connection error")
98100
end

modules/auxiliary/gather/f5_bigip_cookie_disclosure.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ def run
128128

129129
# Print the cookie name on the first request
130130
if i == 1
131-
print_status("#{peer} - F5 BigIP load balancing cookie \"#{cookie[:id]} = #{cookie[:value]}\" found")
131+
print_good("#{peer} - F5 BigIP load balancing cookie \"#{cookie[:id]} = #{cookie[:value]}\" found")
132132
if cookie[:id].start_with?('BIGipServer')
133-
print_status("#{peer} - Load balancing pool name \"#{cookie[:id].split('BIGipServer')[1]}\" found")
133+
print_good("#{peer} - Load balancing pool name \"#{cookie[:id].split('BIGipServer')[1]}\" found")
134134
end
135135
if cookie[:value].start_with?('rd')
136-
print_status("#{peer} - Route domain \"#{cookie[:value].split('rd')[1].split('o')[0]}\" found")
136+
print_good("#{peer} - Route domain \"#{cookie[:value].split('rd')[1].split('o')[0]}\" found")
137137
end
138138
end
139139

140140
backend = cookie_decode(cookie[:value])
141141
unless backend[:host].nil? || backends.include?(backend)
142-
print_status("#{peer} - Backend #{backend[:host]}:#{backend[:port]} found")
142+
print_good("#{peer} - Backend #{backend[:host]}:#{backend[:port]} found")
143143
backends.push(backend)
144144
end
145145
end

modules/auxiliary/scanner/http/f5_bigip_virtual_server.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def initialize(info = {})
2020
},
2121
'Author' =>
2222
[
23-
'Oleg Broslavsky <ovbroslavsky[at]gmail.com>',
24-
'Nikita Oleksov <neoleksov[at]gmail.com>',
2523
'Denis Kolegov <dnkolegov[at]gmail.com>',
24+
'Oleg Broslavsky <ovbroslavsky[at]gmail.com>',
25+
'Nikita Oleksov <neoleksov[at]gmail.com>'
2626
],
2727
'License' => MSF_LICENSE,
2828
'References' =>
@@ -47,7 +47,7 @@ def bigip_http?(ip, port, ssl)
4747
'method' => 'GET',
4848
'uri' => '/',
4949
'rport' => port,
50-
'ssl' => ssl,
50+
'SSL' => ssl,
5151
},
5252
datastore['TIMEOUT'])
5353
return false unless res

0 commit comments

Comments
 (0)