Handles default user_agent_list via CLI option (in CMSScanner)
This commit is contained in:
@@ -5,11 +5,6 @@ module WPScan
|
|||||||
class Browser < CMSScanner::Browser
|
class Browser < CMSScanner::Browser
|
||||||
extend Actions
|
extend Actions
|
||||||
|
|
||||||
# @return [ String ] The path to the user agents list
|
|
||||||
def user_agents_list
|
|
||||||
@user_agents_list ||= DB_DIR.join('user-agents.txt').to_s
|
|
||||||
end
|
|
||||||
|
|
||||||
# @return [ String ]
|
# @return [ String ]
|
||||||
def default_user_agent
|
def default_user_agent
|
||||||
"WPScan v#{VERSION} (https://wpscan.org/)"
|
"WPScan v#{VERSION} (https://wpscan.org/)"
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ module WPScan
|
|||||||
# /!\ Might want to also update the Enumeration#cli_options when some filenames are changed here
|
# /!\ Might want to also update the Enumeration#cli_options when some filenames are changed here
|
||||||
FILES = %w[
|
FILES = %w[
|
||||||
plugins.json themes.json wordpresses.json
|
plugins.json themes.json wordpresses.json
|
||||||
timthumbs-v3.txt user-agents.txt config_backups.txt
|
timthumbs-v3.txt config_backups.txt db_exports.txt
|
||||||
db_exports.txt dynamic_finders.yml wp_fingerprints.json LICENSE
|
dynamic_finders.yml wp_fingerprints.json LICENSE
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
OLD_FILES = %w[wordpress.db dynamic_finders_01.yml].freeze
|
OLD_FILES = %w[wordpress.db user-agents.txt dynamic_finders_01.yml].freeze
|
||||||
|
|
||||||
attr_reader :repo_directory
|
attr_reader :repo_directory
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user