ubuntu安装wpscan

作者: 李小怪 2017-01-18 11:36:47

ubuntu没有用kali的源,所以上wpscan的官网去下最新版。https://wpscan.org/


 


首先要安装依赖。


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


ubuntu下的安装指令:


sudo apt-get install libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev


其他系统在官网也都给出了命令。


但是,问题就是我的ubuntu用apt-get安装的ruby只能到2.1.5,不能满足要求。所以要更新到更高版本。


 


用下面的方法


ubuntu12.04安装ruby2.3


为了搭建github-pages博客,而github-pages后端依赖于ruby,且对版本有严格要求,自己尝试了各种姿势升级ruby2.3无果,最终在查阅了各种资料之后找到一个可行方案。


icebug@localhost:~$ sudo apt-get -y install software-properties-common 


icebug@localhost:~$ sudo apt-add-repository ppa:brightbox/ruby-ng 


icebug@localhost:~$ sudo apt-get update


icebug@localhost:~$ sudo apt-get -y install ruby2.3


同时不要忘记了安装ruby2.3的开发库,不然还是会遇到各种坑.....


icebug@localhost:~$ sudo apt-get install ruby2.3-dev


鉴于这个方法可能会有一些错误,我安装的2.2版本。一样的步骤,只是把2.3改成了2.2。而且最后免得开发库也要装上,千万别忘了。


 


下面是安装gem,再用gem安装rubygems


$ gem update --system


$ gem install rubygems-update  # again, might need to be admin/root


$ update_rubygems              # ... here too


 


接下来就是安装wpscan了。解压安装包,到目录下


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


安装好bundler,之后就可以运行


ruby wpscan.rb +参数


来使用了。


 


本文永久更新地址:http://www.linuxdiyf.com/linux/27912.html

相关资讯