File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
modules/exploits/windows/ftp Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ def check
55
55
'method' => 'GET'
56
56
} )
57
57
58
- if res and res . body =~ /Wing FTP Server Administrator/ and res . body =~ /2003-2014 <b>wftpserver.com<\/ b>/
58
+ if !res
59
+ fail_with ( Failure ::Unreachable , "#{ peer } - Vulnerable page was unreachable." )
60
+ elsif res . code != 200
61
+ fail_with ( Failure ::UnexpectedReply , "#{ peer } - Unexpected HTTP Response Code." )
62
+ elsif res . body =~ /Wing FTP Server Administrator/ and res . body =~ /2003-2014 <b>wftpserver.com<\/ b>/
59
63
return Exploit ::CheckCode ::Appears
60
64
end
61
65
@@ -82,10 +86,8 @@ def execute_command(cmd, opts = {})
82
86
'vars_post' => { 'command' => command }
83
87
} )
84
88
85
- if !res
86
- fail_with ( Failure ::Unreachable , "#{ peer } - Vulnerable page was unreachable." )
87
- elsif res . code != 200
88
- fail_with ( Failure ::UnexpectedReply , "#{ peer } - Unexpected HTTP Response Code." )
89
+ if res and res . code != 200
90
+ fail_with ( Failure ::Unkown , "#{ peer } - Something went wrong." )
89
91
end
90
92
end
91
93
You can’t perform that action at this time.
0 commit comments