Fix #37 Needed packages for nokogiri added to readme, and while the missing gem detected is nokogiri
This commit is contained in:
4
README
4
README
@@ -34,13 +34,13 @@ WPScan comes pre-installed on BackTrack5 R1 in the /pentest/web/wpscan directory
|
||||
|
||||
-> Installing on Backtrack5 Gnome/KDE 32bit :
|
||||
|
||||
sudo apt-get install libcurl4-gnutls-dev
|
||||
sudo apt-get install libcurl4-gnutls-dev libxml2 libxml2-dev libxslt1-dev
|
||||
sudo gem install --user-install mime-types typhoeus nokogiri json
|
||||
|
||||
|
||||
-> Installing on Debian/Ubuntu :
|
||||
|
||||
sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby
|
||||
sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev
|
||||
sudo gem install typhoeus nokogiri json
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ WPScan only supports Ruby => 1.9.
|
||||
|
||||
*Installing on Debian/Ubuntu:*
|
||||
|
||||
```sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby```
|
||||
```sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev```
|
||||
|
||||
``` sudo gem install typhoeus nokogiri json```
|
||||
|
||||
|
||||
@@ -42,6 +42,11 @@ rescue LoadError => e
|
||||
|
||||
missing_gem = e.to_s[%r{ -- ([^\s]+)}, 1]
|
||||
if missing_gem
|
||||
if missing_gem =~ /nokogiri/i
|
||||
puts
|
||||
puts "Nokogiri needs some packets, please run 'sudo apt-get install libxml2 libxml2-dev libxslt1-dev' to install them. Then run the command below"
|
||||
puts
|
||||
end
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user