Question Installing WPScan on Kali Linux WSL

Jun 4, 2019
1
0
10
0
I'm trying to install WPScan on Kali Linux WSL.

After installing Kali I followed the instructions from the following post:

How to Install WordPress Vulnerability Scanner WPScan on Kali Linux

In step 6 it says:
Now in order to use WPscan tool we will require bundler. As we know WPScan is an ruby application which uses ‘Gems’ as part of programming language. Bundler will help keep WPScan and all of its “gems” or dependencies updated effectively.

We can install bundler by running below command in WPScan directory :

sudo gem install bundler && bundle install --without test



I ran the command, and this is the result:

Code:
REDACTED:~$ cd wpscan
REDACTED:~/wpscan$ sudo gem install bundler && bundle install --without test
[sudo] password for REDACTED:
Fetching: bundler-2.0.1.gem (100%)
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Installing ri documentation for bundler-2.0.1
Done installing documentation for bundler after 12 seconds
1 gem installed
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Following files may not be writable, so sudo is needed:
  /usr/local/bin
  /var/lib/gems/2.5.0
  /var/lib/gems/2.5.0/build_info
  /var/lib/gems/2.5.0/cache
  /var/lib/gems/2.5.0/doc
  /var/lib/gems/2.5.0/extensions
  /var/lib/gems/2.5.0/gems
  /var/lib/gems/2.5.0/specifications
Fetching rake 12.3.2


Your user account isn't allowed to install to the system RubyGems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.

  Password:

Why isn't my user account allowed to install to the system RubyGems? If I use either of the alternative suggestions provided in the code, what difference would it make?

Please bear in mind that I'm completely new to Linux in any shape or form. The process I've just outlined is the sum total of my experience with Linux.


Cheers

Mark
 
Please bear in mind that I'm completely new to Linux in any shape or form. The process I've just outlined is the sum total of my experience with Linux.
For complete beginners, neither Kali nor WSL are good starting point. Learn Linux by installing popular distro like Ubuntu, Mint on real or virtual computer. Once you get confidence and knowledge, download Kali on a USB stick, and use it as live CD.
 

ASK THE COMMUNITY

TRENDING THREADS