前置安装
sudo apt -y install ruby
安装
sudo gem install one_gadget
安装失败可能原因
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
对gem进行换源更新后,再次安装one_gadget
#显示源
gem sources -l
#更新源
gem sources -u
sudo apt -y install ruby
sudo gem install one_gadget
gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/
对gem进行换源更新后,再次安装one_gadget
#显示源
gem sources -l
#更新源
gem sources -u