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

Optionally test empty group in cisco_ssl_vpn #9999

Merged
merged 2 commits into from
May 18, 2018
Merged
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
9 changes: 7 additions & 2 deletions modules/auxiliary/scanner/http/cisco_ssl_vpn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def initialize(info={})
Opt::RPORT(443),
OptString.new('GROUP', [false, "A specific VPN group to use", ''])
])
register_advanced_options(
[
OptBool.new('EmptyGroup', [true, "Use an empty group with authentication requests", false])
])
end

def run_host(ip)
Expand All @@ -52,7 +56,9 @@ def run_host(ip)
vprint_good("Application appears to be Cisco SSL VPN. Module will continue.")

groups = Set.new
if datastore['GROUP'].empty?
if datastore['EmptyGroup'] == true
groups << ""
elsif datastore['GROUP'].empty?
vprint_status("Attempt to Enumerate VPN Groups...")
groups = enumerate_vpn_groups

Expand All @@ -67,7 +73,6 @@ def run_host(ip)
else
groups << datastore['GROUP']
end
groups << ""

vprint_status("Starting login brute force...")
groups.each do |group|
Expand Down