Skip to content

Commit 15a3d73

Browse files
author
h00die
committed
fix per wchen
1 parent 6fe7698 commit 15a3d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/tiki_calendar_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def authenticate
8585
# double check auth worked and we got a Log out on the page.
8686
# at times I got it to auth, but then it would give permission errors
8787
# so we want to try to double check everything is good
88-
unless res.body =~ /Log out/
88+
if res && !res.body =~ /Log out/
8989
fail_with(Failure::UnexpectedReply, "#{peer} Login Failed with #{datastore['USERNAME']}:#{datastore['PASSWORD']}")
9090
end
9191
vprint_good("Login Successful!")

0 commit comments

Comments
 (0)