diff --git a/data/local_vulnerable_files.xml b/data/local_vulnerable_files.xml index 03e2b241..ca07ae1b 100644 --- a/data/local_vulnerable_files.xml +++ b/data/local_vulnerable_files.xml @@ -1,23 +1,5 @@ - - - @@ -55,4 +37,4 @@ - \ No newline at end of file + diff --git a/data/plugin_vulns.xml b/data/plugin_vulns.xml index 7594af2d..afa3e139 100644 --- a/data/plugin_vulns.xml +++ b/data/plugin_vulns.xml @@ -1,23 +1,5 @@ - - diff --git a/data/theme_vulns.xml b/data/theme_vulns.xml index e3e99c83..79c449cc 100644 --- a/data/theme_vulns.xml +++ b/data/theme_vulns.xml @@ -1,23 +1,5 @@ - - diff --git a/data/vuln.xsd b/data/vuln.xsd index 0a46b9f7..a2c286bf 100644 --- a/data/vuln.xsd +++ b/data/vuln.xsd @@ -1,23 +1,5 @@ - - @@ -94,4 +76,4 @@ - \ No newline at end of file + diff --git a/data/wp_versions.xml b/data/wp_versions.xml index dbcfda3c..fd610d25 100644 --- a/data/wp_versions.xml +++ b/data/wp_versions.xml @@ -1,23 +1,5 @@ - - - @@ -54,4 +36,4 @@ - \ No newline at end of file + diff --git a/data/wp_vulns.xml b/data/wp_vulns.xml index e52b916d..cb9882ce 100644 --- a/data/wp_vulns.xml +++ b/data/wp_vulns.xml @@ -1,23 +1,5 @@ - - diff --git a/lib/common/browser.rb b/lib/common/browser.rb index e0468ec2..0251dabe 100644 --- a/lib/common/browser.rb +++ b/lib/common/browser.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'common/typhoeus_cache' diff --git a/lib/common/cache_file_store.rb b/lib/common/cache_file_store.rb index 665d5026..604e1257 100644 --- a/lib/common/cache_file_store.rb +++ b/lib/common/cache_file_store.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ # # => @todo take consideration of the cache_timeout : diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 3a92202b..2c5d2bed 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ LIB_DIR = File.expand_path(File.dirname(__FILE__) + '/..') ROOT_DIR = File.expand_path(LIB_DIR + '/..') # expand_path is used to get "wpscan/" instead of "wpscan/lib/../" diff --git a/lib/common/custom_option_parser.rb b/lib/common/custom_option_parser.rb index c2f91a65..e0490e96 100644 --- a/lib/common/custom_option_parser.rb +++ b/lib/common/custom_option_parser.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -# -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class CustomOptionParser < OptionParser diff --git a/lib/common/plugins/plugin.rb b/lib/common/plugins/plugin.rb index 71e42b1f..4ef96fda 100644 --- a/lib/common/plugins/plugin.rb +++ b/lib/common/plugins/plugin.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -# -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class Plugin diff --git a/lib/common/plugins/plugins.rb b/lib/common/plugins/plugins.rb index 614798f6..ebef960f 100644 --- a/lib/common/plugins/plugins.rb +++ b/lib/common/plugins/plugins.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -# -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class Plugins < Array diff --git a/lib/common/typhoeus_cache.rb b/lib/common/typhoeus_cache.rb index a3039c26..e745d0f8 100644 --- a/lib/common/typhoeus_cache.rb +++ b/lib/common/typhoeus_cache.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'common/cache_file_store' diff --git a/lib/common/updater/git_updater.rb b/lib/common/updater/git_updater.rb index c5f75710..ae56b016 100644 --- a/lib/common/updater/git_updater.rb +++ b/lib/common/updater/git_updater.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'common/updater/updater' diff --git a/lib/common/updater/svn_updater.rb b/lib/common/updater/svn_updater.rb index d0e6239b..26d0c850 100644 --- a/lib/common/updater/svn_updater.rb +++ b/lib/common/updater/svn_updater.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'common/updater/updater' diff --git a/lib/common/updater/updater.rb b/lib/common/updater/updater.rb index c838278d..5fee7e87 100644 --- a/lib/common/updater/updater.rb +++ b/lib/common/updater/updater.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ # This class act as an absract one class Updater diff --git a/lib/common/updater/updater_factory.rb b/lib/common/updater/updater_factory.rb index 8634784f..4bfb5276 100644 --- a/lib/common/updater/updater_factory.rb +++ b/lib/common/updater/updater_factory.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class UpdaterFactory diff --git a/lib/environment.rb b/lib/environment.rb index 93a6515f..bac79066 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'rubygems' diff --git a/lib/wpscan/modules/brute_force.rb b/lib/wpscan/modules/brute_force.rb index 9e5c6d13..01c85b0f 100644 --- a/lib/wpscan/modules/brute_force.rb +++ b/lib/wpscan/modules/brute_force.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module BruteForce diff --git a/lib/wpscan/modules/malwares.rb b/lib/wpscan/modules/malwares.rb index a379356a..e40a92c9 100644 --- a/lib/wpscan/modules/malwares.rb +++ b/lib/wpscan/modules/malwares.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module Malwares # Used as cache : diff --git a/lib/wpscan/modules/wp_config_backup.rb b/lib/wpscan/modules/wp_config_backup.rb index e5411370..c009f157 100644 --- a/lib/wpscan/modules/wp_config_backup.rb +++ b/lib/wpscan/modules/wp_config_backup.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module WpConfigBackup diff --git a/lib/wpscan/modules/wp_full_path_disclosure.rb b/lib/wpscan/modules/wp_full_path_disclosure.rb index d95827a7..75731455 100644 --- a/lib/wpscan/modules/wp_full_path_disclosure.rb +++ b/lib/wpscan/modules/wp_full_path_disclosure.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module WpFullPathDisclosure diff --git a/lib/wpscan/modules/wp_login_protection.rb b/lib/wpscan/modules/wp_login_protection.rb index 8808a6e0..da09958f 100644 --- a/lib/wpscan/modules/wp_login_protection.rb +++ b/lib/wpscan/modules/wp_login_protection.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module WpLoginProtection diff --git a/lib/wpscan/modules/wp_readme.rb b/lib/wpscan/modules/wp_readme.rb index 61b0c6b7..85a59d97 100644 --- a/lib/wpscan/modules/wp_readme.rb +++ b/lib/wpscan/modules/wp_readme.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ module WpReadme diff --git a/lib/wpscan/web_site.rb b/lib/wpscan/web_site.rb index 3dc45f98..bce5b41f 100644 --- a/lib/wpscan/web_site.rb +++ b/lib/wpscan/web_site.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class WebSite diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb index 396df1ce..31dda6d4 100644 --- a/lib/wpscan/wp_target.rb +++ b/lib/wpscan/wp_target.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'web_site' require 'modules/wp_readme' diff --git a/lib/wpscan/wpscan_helper.rb b/lib/wpscan/wpscan_helper.rb index 2f201c05..059a8984 100644 --- a/lib/wpscan/wpscan_helper.rb +++ b/lib/wpscan/wpscan_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require File.expand_path(File.dirname(__FILE__) + '/../common/common_helper') diff --git a/lib/wpscan/wpscan_options.rb b/lib/wpscan/wpscan_options.rb index b6f14dc9..0e7a38ca 100644 --- a/lib/wpscan/wpscan_options.rb +++ b/lib/wpscan/wpscan_options.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class WpscanOptions diff --git a/lib/wpstools/plugins/checker/checker_plugin.rb b/lib/wpstools/plugins/checker/checker_plugin.rb index 4c9c9361..58615fea 100644 --- a/lib/wpstools/plugins/checker/checker_plugin.rb +++ b/lib/wpstools/plugins/checker/checker_plugin.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -# -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class CheckerPlugin < Plugin diff --git a/lib/wpstools/plugins/list_generator/generate_list.rb b/lib/wpstools/plugins/list_generator/generate_list.rb index bb9f1395..3182fdad 100644 --- a/lib/wpstools/plugins/list_generator/generate_list.rb +++ b/lib/wpstools/plugins/list_generator/generate_list.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ # This tool generates a list to use for plugin and theme enumeration class GenerateList diff --git a/lib/wpstools/plugins/list_generator/list_generator_plugin.rb b/lib/wpstools/plugins/list_generator/list_generator_plugin.rb index 2408cf20..c520dd24 100644 --- a/lib/wpstools/plugins/list_generator/list_generator_plugin.rb +++ b/lib/wpstools/plugins/list_generator/list_generator_plugin.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -# -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class ListGeneratorPlugin < Plugin diff --git a/lib/wpstools/plugins/list_generator/svn_parser.rb b/lib/wpstools/plugins/list_generator/svn_parser.rb index 7f7193b6..932ebfde 100644 --- a/lib/wpstools/plugins/list_generator/svn_parser.rb +++ b/lib/wpstools/plugins/list_generator/svn_parser.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ # This Class Parses SVN Repositories via HTTP class SvnParser diff --git a/lib/wpstools/plugins/stats/stats_plugin.rb b/lib/wpstools/plugins/stats/stats_plugin.rb index 5d822f44..cde6570c 100644 --- a/lib/wpstools/plugins/stats/stats_plugin.rb +++ b/lib/wpstools/plugins/stats/stats_plugin.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ class StatsPlugin < Plugin diff --git a/lib/wpstools/wpstools_helper.rb b/lib/wpstools/wpstools_helper.rb index 332854ea..a478dca0 100644 --- a/lib/wpstools/wpstools_helper.rb +++ b/lib/wpstools/wpstools_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require File.expand_path(File.dirname(__FILE__) + '/../common/common_helper') diff --git a/main.rb b/main.rb index f5fff852..0629d082 100644 --- a/main.rb +++ b/main.rb @@ -1,24 +1,6 @@ #!/usr/bin/env ruby # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ - def main # delete old logfile, check if it is a symlink first. File.delete(LOG_FILE) if File.exist?(LOG_FILE) and !File.symlink?(LOG_FILE) diff --git a/spec/lib/common/browser_spec.rb b/spec/lib/common/browser_spec.rb index 24fd65b0..3715ec1f 100644 --- a/spec/lib/common/browser_spec.rb +++ b/spec/lib/common/browser_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/spec/lib/common/cache_file_store_spec.rb b/spec/lib/common/cache_file_store_spec.rb index 7a26f0b8..e7687237 100644 --- a/spec/lib/common/cache_file_store_spec.rb +++ b/spec/lib/common/cache_file_store_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/spec/lib/wpscan/modules/brute_force_spec.rb b/spec/lib/wpscan/modules/brute_force_spec.rb index 031fdd9d..6bccd8b5 100644 --- a/spec/lib/wpscan/modules/brute_force_spec.rb +++ b/spec/lib/wpscan/modules/brute_force_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'BruteForce' do before :each do diff --git a/spec/lib/wpscan/modules/malwares_spec.rb b/spec/lib/wpscan/modules/malwares_spec.rb index 44eaf148..8ac2e995 100644 --- a/spec/lib/wpscan/modules/malwares_spec.rb +++ b/spec/lib/wpscan/modules/malwares_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'Malwares' do diff --git a/spec/lib/wpscan/modules/wp_config_backup_spec.rb b/spec/lib/wpscan/modules/wp_config_backup_spec.rb index 00d53576..6e86e6ec 100644 --- a/spec/lib/wpscan/modules/wp_config_backup_spec.rb +++ b/spec/lib/wpscan/modules/wp_config_backup_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'WpConfigBackup' do diff --git a/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb b/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb index f99f27b8..425b5bc6 100644 --- a/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb +++ b/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'WpFullPathDisclosure' do diff --git a/spec/lib/wpscan/modules/wp_login_protection_spec.rb b/spec/lib/wpscan/modules/wp_login_protection_spec.rb index d0ed1659..f871a3eb 100644 --- a/spec/lib/wpscan/modules/wp_login_protection_spec.rb +++ b/spec/lib/wpscan/modules/wp_login_protection_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'WpLoginProtection' do diff --git a/spec/lib/wpscan/modules/wp_readme_spec.rb b/spec/lib/wpscan/modules/wp_readme_spec.rb index 0cec1fb1..5c2ff2c0 100644 --- a/spec/lib/wpscan/modules/wp_readme_spec.rb +++ b/spec/lib/wpscan/modules/wp_readme_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ shared_examples_for 'WpReadme' do diff --git a/spec/lib/wpscan/web_site_spec.rb b/spec/lib/wpscan/web_site_spec.rb index 627044f7..b689a512 100644 --- a/spec/lib/wpscan/web_site_spec.rb +++ b/spec/lib/wpscan/web_site_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ describe 'WebSite' do let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_WEB_SITE_DIR } diff --git a/spec/lib/wpscan/wp_target_spec.rb b/spec/lib/wpscan/wp_target_spec.rb index 1bc67178..c2a63b6e 100644 --- a/spec/lib/wpscan/wp_target_spec.rb +++ b/spec/lib/wpscan/wp_target_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper') diff --git a/spec/lib/wpscan/wpscan_helper.rb b/spec/lib/wpscan/wpscan_helper.rb index 57349a08..9576f1b4 100644 --- a/spec/lib/wpscan/wpscan_helper.rb +++ b/spec/lib/wpscan/wpscan_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/spec/lib/wpscan/wpscan_options_spec.rb b/spec/lib/wpscan/wpscan_options_spec.rb index 5c0e58f3..fb50350a 100644 --- a/spec/lib/wpscan/wpscan_options_spec.rb +++ b/spec/lib/wpscan/wpscan_options_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper') diff --git a/spec/lib/wpstools/plugins/stats/stats_plugin_spec.rb b/spec/lib/wpstools/plugins/stats/stats_plugin_spec.rb index 10aa1ebb..e08b8a73 100644 --- a/spec/lib/wpstools/plugins/stats/stats_plugin_spec.rb +++ b/spec/lib/wpstools/plugins/stats/stats_plugin_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require File.expand_path(File.dirname(__FILE__) + '/../../wpstools_helper') diff --git a/spec/lib/wpstools/wpstools_helper.rb b/spec/lib/wpstools/wpstools_helper.rb index a908b1fc..e8a05451 100644 --- a/spec/lib/wpstools/wpstools_helper.rb +++ b/spec/lib/wpstools/wpstools_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3a822bfc..535c39da 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ # https://github.com/bblimke/webmock # https://github.com/colszowka/simplecov diff --git a/spec/wpscan_spec.rb b/spec/wpscan_spec.rb index fcf8b997..e63dace8 100644 --- a/spec/wpscan_spec.rb +++ b/spec/wpscan_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/spec/xml_checks_spec.rb b/spec/xml_checks_spec.rb index a50503b4..ba158b37 100644 --- a/spec/xml_checks_spec.rb +++ b/spec/xml_checks_spec.rb @@ -1,21 +1,4 @@ # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ require 'spec_helper' diff --git a/wpscan.rb b/wpscan.rb index d21e5726..26eaa88a 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -1,25 +1,6 @@ #!/usr/bin/env ruby # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ - - $: << '.' require File.dirname(__FILE__) + '/lib/wpscan/wpscan_helper' require File.dirname(__FILE__) + '/main' diff --git a/wpstools.rb b/wpstools.rb index 594f14bd..a5596047 100755 --- a/wpstools.rb +++ b/wpstools.rb @@ -1,24 +1,6 @@ #!/usr/bin/env ruby # encoding: UTF-8 -#-- -# WPScan - WordPress Security Scanner -# Copyright (C) 2012-2013 -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -#++ - $: << '.' require File.dirname(__FILE__) + '/lib/wpstools/wpstools_helper'