• Home »
  • Errors »
  • wpscan: [ERROR] Install missing ruby gem.LoadError: no such file to load — nokogiri

wpscan: [ERROR] Install missing ruby gem.LoadError: no such file to load — nokogiri

It is possible to receive an error after updating wpscan via “svn up” complaining about the nokogiri gem. This might be confusing because likely you already have the nokogiri gem installed on Backtrack Linux however it is likely a simple path issue. To resolve you can issue the below gem install –user-install command as shown in the below example.

wpscan Error After Updating To Revision 247:

bash

  1. root@bt:/pentest/web/wpscan# ./wpscan.rb -h
  2. [ERROR] Install missing ruby gem. Please see README file or http://code.google.com/p/wpscan/
  3. #<LoadError: no such file to load -- nokogiri>
  4. root@bt:/pentest/web/wpscan#

Fixing the issue is easy by issuing the below gem install command.

Install nokogiri Ruby Gem With –user-install Switch:

bash

  1. root@bt:/pentest/web/wpscan# gem install --user-install nokogiri
  2. WARNING:  You don't have /root/.gem/ruby/1.9.2/bin in your PATH,
  3.       gem executables will not run.
  4. Building native extensions.  This could take a while...
  5. Successfully installed nokogiri-1.5.2
  6. 1 gem installed
  7. Installing ri documentation for nokogiri-1.5.2...
  8. Installing RDoc documentation for nokogiri-1.5.2...
  9. root@bt:/pentest/web/wpscan#

As you can see below after issuing the above command you are now able to execute the wpscan.rb command without issue.

The wpscan.rb Help Output:

bash

  1. root@bt:/pentest/web/wpscan# ./wpscan.rb -h
  2. ____________________________________________________
  3.  __          _______   _____
  4.  \ \        / /  __ \ / ____|
  5.   \ \  /\  / /| |__) | (___   ___  __ _ _ __
  6.    \ \/  \/ / |  ___/ \___ \ / __|/ _` | '_ \
  7.    \  /\  /  | |     ____) | (__| (_| | | | |
  8.     \/  \/   |_|    |_____/ \___|\__,_|_| |_| v1.1
  9.  
  10.  WordPress Security Scanner by ethicalhack3r.co.uk
  11. Sponsored by the RandomStorm Open Source Initiative
  12. _____________________________________________________
  13.  
  14. Help:
  15.  
  16. --url       The WordPress URL/domain to scan.
  17. --enumerate     Enumeration.
  18. u       users
  19. v       version
  20. p       plugins
  21. t       timthumb
  22. --wordlist      Supply a wordlist for the password bruter and do the brute.
  23. --threads     The number of threads to use when multi-threading requests.
  24. --username      Only brute force the supplied username.
  25. --generate_plugin_list    Generate a new data/plugins.txt file. (supply number of *pages* to parse)
  26. --force       Forces WPScan to not check if the remote site is running WordPress.
  27. -h        This help screen.
  28. -v        Verbose output.
  29. --proxy       Supply a proxy in the format host:port
  30. --update      Update to the latest SVN revision.
  31.  
  32. root@bt:/pentest/web/wpscan#

Happy WordPress scanning…

WordPress 3 Ultimate Security (Paperback)


List Price: $49.99 USD
New From: $44.05 USD In Stock
Used from: $44.05 USD In Stock

WordPress Security: Protection from Hackers and Crackers (Kindle Edition)


List Price: Click For Price
Kindle Edition: Check Amazon for Pricing Digital Only

Share