CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/metasploit/framework/login_scanner/tomcat.rb
Views: 1904
1
2
require 'metasploit/framework/login_scanner/http'
3
4
module Metasploit
5
module Framework
6
module LoginScanner
7
8
# Tomcat Manager login scanner
9
class Tomcat < HTTP
10
11
# Inherit LIKELY_PORTS,LIKELY_SERVICE_NAMES, and REALM_KEY from HTTP
12
CAN_GET_SESSION = true
13
DEFAULT_PORT = 8180
14
PRIVATE_TYPES = [ :password ]
15
16
# (see Base#set_sane_defaults)
17
def set_sane_defaults
18
self.uri = "/manager/html" if self.uri.nil?
19
self.method = "GET" if self.method.nil?
20
21
super
22
end
23
24
end
25
end
26
end
27
end
28
29
30