Ubuntu does not use Kali source, so on the Wpscan's official website to the latest version. https://wpscan.org/
The first step is to install dependencies.
Prerequisites
- Ruby >= 2.1.9-recommended:2.3.3
- Curl >= 7.21-recommended:latest-fyi The 7.29 has a segfault
- Rubygems-recommended:latest
- Git
Installation instructions under Ubuntu:
sudo apt-get install libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev
Other systems have also been given orders on the official website. However, the problem is that my Ubuntu installs Ruby with Apt-get only to 2.1.5, which does not meet the requirements. So to update to a later version. Use the following method
In order to build Github-pages blog, and github-pages back end relies on Ruby, and the version has strict requirements, I tried various posture upgrade ruby2.3 no fruit, and finally after looking at a variety of information to find a viable solution.
[email protected]:~$ sudo apt-get -y install software-properties-common [email protected]:~$ sudo apt-add-repository ppa:brightbox/ruby-ng [email protected]:~$ sudo apt-get update[email protected]:~$ sudo apt-get -y install ruby2.3
At the same time do not forget to install ruby2.3 Development Library, or you will encounter a variety of pits .....
[email protected]:~$ sudo apt-get install ruby2.3-dev
Given that this method may have some errors, I installed the 2.2 version. The same steps, just changed the 2.3 to 2.2. And finally, lest the development library should be installed, don't forget it. Here is the installation gem, then the GEM installation RubyGems
$ gem update --system
$ gem install rubygems-update # again, might need to be admin/root$ update_rubygems # ... here too
The next step is to install Wpscan. Unzip the installation package to the directory
sudo gem install bundler && Bundle install--without test
Install bundler, then you can run Ruby wpscan.rb + parameters
Ubuntu Installation Wpscan