WPScanをGCP上に新規でビルドしたCentOS7で実行してみました。
環境作成
以下、root権限で作業します。
sudo su - cd ~ yum -y update yum -y install gcc openssl-devel readline-devel libxml2 libxml2-devel libxslt libxslt-devel libcurl-devel patch git bzip2 yum remove ruby mkdir -p ~/tools cd ~/tools git clone https://github.com/wpscanteam/wpscan.git cd ~ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv echo 'export PATH=$HOME/.rbenv/bin:$PATH' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile source ~/.bash_profile git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build cd ~/.rbenv/plugins/ruby-build ./install.sh cd ~ RUBYVER=`cat /root/tools/wpscan/.ruby-version` rbenv install $RUBYVER rbenv rehash rbenv global $RUBYVER rbenv local $RUBYVER cd ~/tools/wpscan gem install bundler && bundle install --without test gem install wpscan wpscan --update
実行
cd ~/tools/wpscan wpscan --url ご自分のサイトのURL