Skip to content

Commit e7d3819

Browse files
author
Jonathan Claudius
committed
Add logout page verification
1 parent 9b1222d commit e7d3819

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/exploits/multi/http/cisco_ssl_vpn_priv_esc.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ def do_logout(cookie)
107107
'cookie' => cookie
108108
)
109109

110-
print_good("#{peer} - Logged out")
110+
if res &&
111+
res.code == 200
112+
print_good("#{peer} - Logged out")
113+
else
114+
fail_with(Failure::NoAccess, "#{peer} - Attempted to logout, but failed")
115+
end
111116
end
112117

113118
def run_command(cmd, cookie)

0 commit comments

Comments
 (0)