环境
OS: Debian GNU/Linux 10
安装msf和armitage
新建一个用户 issue
adduser d2x3
visudo
打开 /etc/sudoers
, 添加
d2x3 ALL=(ALL:ALL) ALL |
安装msf
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ |
切换到d2x3
用户
su d2x3 |
在服务器上下载并运行teamserver
sudo apt install openjdk-11-jre # 安装openjdk |
在终端电脑打开armitage
linux
wget https://github.com/dzxs/armitage/releases/download/v1.4.11/armitage.tgz # 下载armitage |
macos
wget https://github.com/dzxs/armitage/releases/download/v1.4.11/armitage.dmg |
windows
连接teamserver
参数填入刚刚在服务器端运行teamserver
成功时出现的提示内容
常见问题
假如有以下warning
perl: warning: Setting locale failed. |
执行
locale-gen en_US.UTF-8 |
在~/.zshrc
或 ~/.bashrc
添加
export LANGUAGE=en_US.UTF-8 |
假如出现
[*] Warning: Uncaught exception: java.lang.RuntimeException: I can not find a database.yml file. I *really* need it. |
执行
export MSF_DATABASE_CONFIG=/home/d2x3/.msf4/database.yml |