Skip to content

Commit 02bbd53

Browse files
committed
Fix failure messages for check().
1 parent 6c90a50 commit 02bbd53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/ftp/wing_ftp_server_rce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def check
5656
})
5757

5858
if !res
59-
fail_with(Failure::Unreachable, "#{peer} - Vulnerable page was unreachable.")
59+
fail_with(Failure::Unreachable, "#{peer} - Admin login page was unreachable.")
6060
elsif res.code != 200
61-
fail_with(Failure::UnexpectedReply, "#{peer} - Unexpected HTTP Response Code.")
61+
fail_with(Failure::NotFound, "#{peer} - Admin login page was not found.")
6262
elsif res.body =~ /Wing FTP Server Administrator/ and res.body =~ /2003-2014 <b>wftpserver.com<\/b>/
6363
return Exploit::CheckCode::Appears
6464
end

0 commit comments

Comments
 (0)