Ubuntu 14.04 安装 WPScan

WPScan 官网:http://wpscan.org/

Ctrl + Alt + T 打开终端,输入:

1 sudo apt-get install libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential
2 git clone https://github.com/wpscanteam/wpscan.git
3 cd wpscan
4 sudo gem install bundler && bundle install --without test

其中第四条命令,由于gem默认源被墙,需要换源。而网上给出的方法都只是通过命令修改源,但是真正执行的时候还是会使用默认源。原因是没有修改Gemfile。

用gedit打开Gemfile:

gedit Gemfile

将第一行修改为:

source 'https://ruby.taobao.org'

保存退出后,回到终端继续执行:

gem sources --remove http://rubygems.org/
gem sources -a https://ruby.taobao.org
gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org
# 请确保只有 ruby.taobao.org
gem sources -c
gem sources -u

再执行 sudo gem install bundler && bundle install --without test 就没有问题了。

上述修改gem源的方法应该是通用的。

posted @ 2015-06-02 20:44  刚铎-赏金猎人  阅读(1281)  评论(0编辑  收藏  举报