Skip to content

Commit dcce23d

Browse files
committed
Merge branch 'bugs/tomcat_enum-double_check' of github.com:neinwechter/metasploit-framework into neinwechter-bugs/tomcat_enum-double_check
2 parents fdd06c9 + aad0eed commit dcce23d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/auxiliary/scanner/http/tomcat_enum.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def initialize
4646
File.join(Msf::Config.install_root, "data", "wordlists", "tomcat_mgr_default_users.txt") ]),
4747
], self.class)
4848

49-
deregister_options('PASSWORD','PASS_FILE','USERPASS_FILE','STOP_ON_SUCCESS','BLANK_PASSWORDS','USERNAME')
49+
deregister_options('PASSWORD','PASS_FILE','USERPASS_FILE','USER_AS_PASS','STOP_ON_SUCCESS','BLANK_PASSWORDS','USERNAME')
5050
end
5151

5252
def target_url
@@ -99,8 +99,9 @@ def do_login(user)
9999
return :abort
100100
end
101101

102-
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout
103-
rescue ::Timeout::Error, ::Errno::EPIPE
102+
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE
103+
print_error("#{target_url} - UNREACHABLE")
104+
return :abort
104105
end
105106
end
106107

0 commit comments

Comments
 (0)