参考:https://www.darkoperator.com/installing-metasploit-in-ubunt
也可以参考: https://www.linuxidc.com/Linux/2019-01/156378.htm
安装:
ubuntu下:
$ apt update
1. 安装jdk:
apt install openjdk-8-jdk
2. 安装第三方依赖:
sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev gawk bison libffi-dev libgdbm-dev libncurses5-dev libtool sqlite3 libgmp-dev gnupg2 dirmngr
安装ruby rbenv
略。参考官网。或者 http://siwei.me/blog/posts/rbenv-getting-popular
安装NMap
apt install nmap
安装Postgres
apt-get install postgresql postgresql-client
克隆最新代码