#-- # 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' require 'getoptlong' require 'uri' require 'time' require 'resolv' require 'xmlrpc/client' require 'digest/md5' require 'readline' require 'base64' require 'cgi' require 'rbconfig' require 'pp' # Third party libs require 'typhoeus' require 'json' require 'nokogiri' # Custom libs require "#{LIB_DIR}/browser" require "#{LIB_DIR}/cache_file_store" rescue LoadError => e puts "[ERROR] #{e}" missing_gem = e.to_s[%r{ -- ([^\s]+)}, 1] if missing_gem puts "[TIP] Try to run 'gem install #{missing_gem}' or 'gem install --user-install #{missing_gem}'. If you still get an error, Please see README file or https://github.com/wpscanteam/wpscan" end exit(1) end if Typhoeus::VERSION == "0.4.0" puts "Typhoeus 0.4.0 detected, please update the gem otherwise wpscan will not work correctly" exit(1) end