Sha256: ba691736cbe42329612e37efaf6663b07ea9beb43d16e120beacee9965621725
Contents?: true
Size: 873 Bytes
Versions: 6
Compression:
Stored size: 873 Bytes
Contents
# frozen_string_literal: true module WPScan module Controller # Controller to ensure that the wp-content and wp-plugins # directories are found class CustomDirectories < CMSScanner::Controller::Base def cli_options [ OptString.new(['--wp-content-dir DIR', 'The wp-content directory if custom or not detected, such as "wp-content"']), OptString.new(['--wp-plugins-dir DIR', 'The plugins directory if custom or not detected, such as "wp-content/plugins"']) ] end def before_scan target.content_dir = ParsedCli.wp_content_dir if ParsedCli.wp_content_dir target.plugins_dir = ParsedCli.wp_plugins_dir if ParsedCli.wp_plugins_dir return if target.content_dir raise Error::WpContentDirNotDetected end end end end
Version data entries
6 entries across 6 versions & 1 rubygems