Method: WPScan::Controller::Core#load_server_module
- Defined in:
- app/controllers/core.rb
#load_server_module ⇒ Symbol
Loads the related server module in the target and includes it in the WpItem class which will be needed to check if directory listing is enabled etc
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'app/controllers/core.rb', line 87 def load_server_module server = target.server || :Apache # Tries to auto detect the server # Force a specific server module to be loaded if supplied case ParsedCli.server when :apache server = :Apache when :iis server = :IIS when :nginx server = :Nginx end mod = CMSScanner::Target::Server.const_get(server) target.extend mod Model::WpItem.include mod server end |