Module: Msf::WebServices::WebServlet

Defined in:
lib/msf/core/web_services/servlet/web_servlet.rb

Class Method Summary collapse

Class Method Details

.api_pathObject



3
4
5
# File 'lib/msf/core/web_services/servlet/web_servlet.rb', line 3

def self.api_path
  '/api/v1/webs'
end

.registered(app) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/msf/core/web_services/servlet/web_servlet.rb', line 7

def self.registered(app)
  app.post self.api_path, &report_web
  app.post "#{self.api_path}/page", &report_web_page
  app.post "#{self.api_path}/form", &report_web_form
  app.post "#{self.api_path}/vuln", &report_web_vuln

end