Make retries configurable
parent
056fc149d5
commit
3a100e006e
|
@ -44,7 +44,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
OptBool.new('SSL', [true, "Negotiate SSL for outgoing connections", true]),
|
OptBool.new('SSL', [true, "Negotiate SSL for outgoing connections", true]),
|
||||||
OptString.new('USERNAME', [true, "A specific username to authenticate as", 'clientless']),
|
OptString.new('USERNAME', [true, "A specific username to authenticate as", 'clientless']),
|
||||||
OptString.new('PASSWORD', [true, "A specific password to authenticate with", 'clientless']),
|
OptString.new('PASSWORD', [true, "A specific password to authenticate with", 'clientless']),
|
||||||
OptString.new('GROUP', [true, "A specific VPN group to use", 'clientless'])
|
OptString.new('GROUP', [true, "A specific VPN group to use", 'clientless']),
|
||||||
|
OptInt.new('RETRIES', [true, 'The number of exploit attempts to make', 10])
|
||||||
], self.class
|
], self.class
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -248,9 +249,9 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
validate_cisco_ssl_vpn()
|
validate_cisco_ssl_vpn()
|
||||||
|
|
||||||
# This is crude, but I've found this to be somewhat
|
# This is crude, but I've found this to be somewhat
|
||||||
# interimittent based on session, so we'll just try
|
# interimittent based on session, so we'll just retry
|
||||||
# 10 times.
|
# 'X' times.
|
||||||
10.times do |i|
|
datastore['RETRIES'].times do |i|
|
||||||
print_good("#{peer} - Exploit Attempt ##{i}")
|
print_good("#{peer} - Exploit Attempt ##{i}")
|
||||||
|
|
||||||
# Authenticate to SSL VPN and get session cookie
|
# Authenticate to SSL VPN and get session cookie
|
||||||
|
|
Loading…
Reference in New Issue