diff --git a/lib/browser.rb b/lib/browser.rb index 31845e42..0b3e1f29 100644 --- a/lib/browser.rb +++ b/lib/browser.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,9 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ class Browser @@instance = nil diff --git a/lib/cache_file_store.rb b/lib/cache_file_store.rb index 149788e8..e154b186 100644 --- a/lib/cache_file_store.rb +++ b/lib/cache_file_store.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 : # -> create 2 files per key : one for the data storage (key.store ?) and the other for the cache timeout (key.expiration, key.timeout ?) diff --git a/lib/common_helper.rb b/lib/common_helper.rb index cf1ccd77..23e9048f 100644 --- a/lib/common_helper.rb +++ b/lib/common_helper.rb @@ -1,3 +1,20 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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.dirname(__FILE__) ROOT_DIR = File.expand_path(LIB_DIR + '/..') # expand_path is used to get "wpscan/" instead of "wpscan/lib/../" diff --git a/lib/environment.rb b/lib/environment.rb index f4e63b67..dacf2fc6 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 . +#++ + begin # Standard libs require 'rubygems' diff --git a/lib/updater/git_updater.rb b/lib/updater/git_updater.rb index ae7e3f01..7c8ce418 100644 --- a/lib/updater/git_updater.rb +++ b/lib/updater/git_updater.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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__) + '/updater') diff --git a/lib/updater/svn_updater.rb b/lib/updater/svn_updater.rb index 02d850c7..31678668 100644 --- a/lib/updater/svn_updater.rb +++ b/lib/updater/svn_updater.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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__) + '/updater') diff --git a/lib/updater/updater.rb b/lib/updater/updater.rb index d7d2fb57..683ff125 100644 --- a/lib/updater/updater.rb +++ b/lib/updater/updater.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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/updater/updater_factory.rb b/lib/updater/updater_factory.rb index da472feb..8ff0e5ab 100644 --- a/lib/updater/updater_factory.rb +++ b/lib/updater/updater_factory.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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/wpscan/exploit.rb b/lib/wpscan/exploit.rb index d91b2d6b..ef13560d 100644 --- a/lib/wpscan/exploit.rb +++ b/lib/wpscan/exploit.rb @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -16,9 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ # This library should contain all methods for exploitation. diff --git a/lib/wpscan/modules/brute_force.rb b/lib/wpscan/modules/brute_force.rb index 6fa3f4d7..bebb9464 100644 --- a/lib/wpscan/modules/brute_force.rb +++ b/lib/wpscan/modules/brute_force.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,9 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ module BruteForce diff --git a/lib/wpscan/modules/malwares.rb b/lib/wpscan/modules/malwares.rb index a44721c1..e57d51d2 100644 --- a/lib/wpscan/modules/malwares.rb +++ b/lib/wpscan/modules/malwares.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ module Malwares # Used as cache : nil => malwares not checked, [] => no malwares, otherwise array of malwares url found diff --git a/lib/wpscan/modules/web_site.rb b/lib/wpscan/modules/web_site.rb index 008ccb20..27d67e9c 100644 --- a/lib/wpscan/modules/web_site.rb +++ b/lib/wpscan/modules/web_site.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ module WebSite diff --git a/lib/wpscan/modules/wp_config_backup.rb b/lib/wpscan/modules/wp_config_backup.rb index 7bf09612..2846b8b3 100644 --- a/lib/wpscan/modules/wp_config_backup.rb +++ b/lib/wpscan/modules/wp_config_backup.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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 bf2e4a05..e1303245 100644 --- a/lib/wpscan/modules/wp_full_path_disclosure.rb +++ b/lib/wpscan/modules/wp_full_path_disclosure.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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 a779cf74..282c2617 100644 --- a/lib/wpscan/modules/wp_login_protection.rb +++ b/lib/wpscan/modules/wp_login_protection.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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_plugins.rb b/lib/wpscan/modules/wp_plugins.rb index f178cc2a..bd5000db 100644 --- a/lib/wpscan/modules/wp_plugins.rb +++ b/lib/wpscan/modules/wp_plugins.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ module WpPlugins diff --git a/lib/wpscan/modules/wp_readme.rb b/lib/wpscan/modules/wp_readme.rb index 2c3e2f9d..45389ee1 100644 --- a/lib/wpscan/modules/wp_readme.rb +++ b/lib/wpscan/modules/wp_readme.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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/modules/wp_timthumbs.rb b/lib/wpscan/modules/wp_timthumbs.rb index 63abf9b4..4e580894 100644 --- a/lib/wpscan/modules/wp_timthumbs.rb +++ b/lib/wpscan/modules/wp_timthumbs.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ module WpTimthumbs diff --git a/lib/wpscan/modules/wp_usernames.rb b/lib/wpscan/modules/wp_usernames.rb index 6ab4341d..d2924445 100644 --- a/lib/wpscan/modules/wp_usernames.rb +++ b/lib/wpscan/modules/wp_usernames.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ module WpUsernames diff --git a/lib/wpscan/msfrpc_client.rb b/lib/wpscan/msfrpc_client.rb index aecfbf2a..d9c73cf4 100644 --- a/lib/wpscan/msfrpc_client.rb +++ b/lib/wpscan/msfrpc_client.rb @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -16,9 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ # This library should contain all methods to communicate with msfrpc. # See framework/documentation/msfrpc.txt for further information. diff --git a/lib/wpscan/vulnerable.rb b/lib/wpscan/vulnerable.rb index dd26c912..b4bacfbc 100644 --- a/lib/wpscan/vulnerable.rb +++ b/lib/wpscan/vulnerable.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ class Vulnerable diff --git a/lib/wpscan/wp_plugin.rb b/lib/wpscan/wp_plugin.rb index 86b43e0b..dfdecd7c 100644 --- a/lib/wpscan/wp_plugin.rb +++ b/lib/wpscan/wp_plugin.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ require "#{WPSCAN_LIB_DIR}/vulnerable" diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb index 1988ce5d..9e8ba8c1 100644 --- a/lib/wpscan/wp_target.rb +++ b/lib/wpscan/wp_target.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ class WpTarget include WebSite diff --git a/lib/wpscan/wp_theme.rb b/lib/wpscan/wp_theme.rb index 125d495a..2755aba5 100644 --- a/lib/wpscan/wp_theme.rb +++ b/lib/wpscan/wp_theme.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ require "#{WPSCAN_LIB_DIR}/vulnerable" diff --git a/lib/wpscan/wp_version.rb b/lib/wpscan/wp_version.rb index 2cfb348c..2dadded3 100644 --- a/lib/wpscan/wp_version.rb +++ b/lib/wpscan/wp_version.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ require "#{WPSCAN_LIB_DIR}/vulnerable" diff --git a/lib/wpscan/wp_vulnerability.rb b/lib/wpscan/wp_vulnerability.rb index c3e9dd6c..df99d045 100644 --- a/lib/wpscan/wp_vulnerability.rb +++ b/lib/wpscan/wp_vulnerability.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# +#++ class WpVulnerability attr_accessor :title, :reference, :type diff --git a/lib/wpscan/wpscan_helper.rb b/lib/wpscan/wpscan_helper.rb index b1b92481..e3d29d8b 100644 --- a/lib/wpscan/wpscan_helper.rb +++ b/lib/wpscan/wpscan_helper.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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_helper') require_files_from_directory(WPSCAN_LIB_DIR, "**/*.rb") diff --git a/lib/wpscan/wpscan_options.rb b/lib/wpscan/wpscan_options.rb index 7aa24c51..15a344ff 100644 --- a/lib/wpscan/wpscan_options.rb +++ b/lib/wpscan/wpscan_options.rb @@ -1,6 +1,6 @@ -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -14,7 +14,7 @@ # # 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/generate_list.rb b/lib/wpstools/generate_list.rb index 05a086e7..e51705d0 100644 --- a/lib/wpstools/generate_list.rb +++ b/lib/wpstools/generate_list.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner # Copyright (C) 2012 # @@ -16,6 +16,7 @@ # # 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 Generate_List diff --git a/lib/wpstools/parse_svn.rb b/lib/wpstools/parse_svn.rb index 4c78cbf3..a205bb32 100644 --- a/lib/wpstools/parse_svn.rb +++ b/lib/wpstools/parse_svn.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner # Copyright (C) 2012 # @@ -16,6 +16,7 @@ # # 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 Svn_Parser @@ -39,6 +40,9 @@ class Svn_Parser return entries end + #Private methods start here + private + # Gets all directories in the SVN root def get_root_directories dirs = [] diff --git a/lib/wpstools/wpstools_helper.rb b/lib/wpstools/wpstools_helper.rb index 68823652..03fdb2de 100644 --- a/lib/wpstools/wpstools_helper.rb +++ b/lib/wpstools/wpstools_helper.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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_helper') require_files_from_directory(WPSTOOLS_LIB_DIR) diff --git a/spec/lib/browser_spec.rb b/spec/lib/browser_spec.rb index e93dec50..cc538c7a 100644 --- a/spec/lib/browser_spec.rb +++ b/spec/lib/browser_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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__) + '/../spec_helper') describe Browser do diff --git a/spec/lib/cache_file_store_spec.rb b/spec/lib/cache_file_store_spec.rb index 44defd43..c69064fa 100644 --- a/spec/lib/cache_file_store_spec.rb +++ b/spec/lib/cache_file_store_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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__) + '/../spec_helper') describe CacheFileStore do diff --git a/spec/lib/wpscan/modules/malwares_spec.rb b/spec/lib/wpscan/modules/malwares_spec.rb index af2e6878..16041694 100644 --- a/spec/lib/wpscan/modules/malwares_spec.rb +++ b/spec/lib/wpscan/modules/malwares_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 before :each do diff --git a/spec/lib/wpscan/modules/web_site_spec.rb b/spec/lib/wpscan/modules/web_site_spec.rb index 8926a571..e0167050 100644 --- a/spec/lib/wpscan/modules/web_site_spec.rb +++ b/spec/lib/wpscan/modules/web_site_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 "WebSite" do let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_MODULES_DIR + '/web_site' } diff --git a/spec/lib/wpscan/modules/wp_config_backup_spec.rb b/spec/lib/wpscan/modules/wp_config_backup_spec.rb index 35b2d340..99c60789 100644 --- a/spec/lib/wpscan/modules/wp_config_backup_spec.rb +++ b/spec/lib/wpscan/modules/wp_config_backup_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 before :all 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 ba682e71..1732bdb7 100644 --- a/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb +++ b/spec/lib/wpscan/modules/wp_full_path_disclosure_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 before :all do diff --git a/spec/lib/wpscan/modules/wp_login_protection_spec.rb b/spec/lib/wpscan/modules/wp_login_protection_spec.rb index 0be8636e..0ed6dd91 100644 --- a/spec/lib/wpscan/modules/wp_login_protection_spec.rb +++ b/spec/lib/wpscan/modules/wp_login_protection_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 before :each do diff --git a/spec/lib/wpscan/modules/wp_plugins_spec.rb b/spec/lib/wpscan/modules/wp_plugins_spec.rb index e319a9e8..fecdd111 100644 --- a/spec/lib/wpscan/modules/wp_plugins_spec.rb +++ b/spec/lib/wpscan/modules/wp_plugins_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 "WpPlugins" do before :all do diff --git a/spec/lib/wpscan/modules/wp_readme_spec.rb b/spec/lib/wpscan/modules/wp_readme_spec.rb index 4c1057c4..308f651c 100644 --- a/spec/lib/wpscan/modules/wp_readme_spec.rb +++ b/spec/lib/wpscan/modules/wp_readme_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 before :all do diff --git a/spec/lib/wpscan/modules/wp_timthumbs_spec.rb b/spec/lib/wpscan/modules/wp_timthumbs_spec.rb index d23209cd..7d3d689c 100644 --- a/spec/lib/wpscan/modules/wp_timthumbs_spec.rb +++ b/spec/lib/wpscan/modules/wp_timthumbs_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 "WpTimthumbs" do before :each do diff --git a/spec/lib/wpscan/modules/wp_usernames_spec.rb b/spec/lib/wpscan/modules/wp_usernames_spec.rb index 6c5794de..e8022f23 100644 --- a/spec/lib/wpscan/modules/wp_usernames_spec.rb +++ b/spec/lib/wpscan/modules/wp_usernames_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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 "WpUsernames" do before :each do diff --git a/spec/lib/wpscan/wp_plugin_spec.rb b/spec/lib/wpscan/wp_plugin_spec.rb index 853c8f06..e922cc7e 100644 --- a/spec/lib/wpscan/wp_plugin_spec.rb +++ b/spec/lib/wpscan/wp_plugin_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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') describe WpPlugin do diff --git a/spec/lib/wpscan/wp_target_spec.rb b/spec/lib/wpscan/wp_target_spec.rb index 5f978220..f4713b7d 100644 --- a/spec/lib/wpscan/wp_target_spec.rb +++ b/spec/lib/wpscan/wp_target_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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') describe WpTarget do diff --git a/spec/lib/wpscan/wp_theme_spec.rb b/spec/lib/wpscan/wp_theme_spec.rb index b033c795..2ea42b28 100644 --- a/spec/lib/wpscan/wp_theme_spec.rb +++ b/spec/lib/wpscan/wp_theme_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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") describe WpTheme do diff --git a/spec/lib/wpscan/wp_version_spec.rb b/spec/lib/wpscan/wp_version_spec.rb index fa59d9e2..86744960 100644 --- a/spec/lib/wpscan/wp_version_spec.rb +++ b/spec/lib/wpscan/wp_version_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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') describe WpVersion do diff --git a/spec/lib/wpscan/wpscan_helper.rb b/spec/lib/wpscan/wpscan_helper.rb index 42112f16..aab59309 100644 --- a/spec/lib/wpscan/wpscan_helper.rb +++ b/spec/lib/wpscan/wpscan_helper.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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__) + '/../../spec_helper') require WPSCAN_LIB_DIR + '/wpscan_helper' diff --git a/spec/lib/wpscan/wpscan_options_spec.rb b/spec/lib/wpscan/wpscan_options_spec.rb index 15cb6fdd..a8175a92 100644 --- a/spec/lib/wpscan/wpscan_options_spec.rb +++ b/spec/lib/wpscan/wpscan_options_spec.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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') describe "WpscanOptions" do diff --git a/spec/lib/wpstools/wpstools_helper.rb b/spec/lib/wpstools/wpstools_helper.rb index bef7f87d..5c1615a1 100644 --- a/spec/lib/wpstools/wpstools_helper.rb +++ b/spec/lib/wpstools/wpstools_helper.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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__) + '/../../spec_helper') require WPSTOOLS_LIB_DIR + '/wpstools_helper' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8ca23494..e79610e4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,21 @@ +#-- +# WPScan - WordPress Security Scanner +# Copyright (C) 2012 +# +# 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/wpscan.rb b/wpscan.rb index 672601cc..a2ea24e0 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -16,9 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ $: << '.' require File.dirname(__FILE__) +'/lib/wpscan/wpscan_helper' diff --git a/wpstools.rb b/wpstools.rb index 7f3d12c0..0f5701f8 100755 --- a/wpstools.rb +++ b/wpstools.rb @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# +#-- # WPScan - WordPress Security Scanner -# Copyright (C) 2011 Ryan Dewhurst AKA ethicalhack3r +# Copyright (C) 2012 # # 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 @@ -16,9 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# -# ryandewhurst at gmail -# +#++ $: << '.' require File.dirname(__FILE__) +'/lib/wpstools/wpstools_helper'