Metasploit windows 调试环境搭建
安装ruby
首先确定 metasploit的ruby版本
metasploit-framework/.ruby-version 3.0.5
在 https://rubyinstaller.org/downloads/archives/ 下载对应版本的 Ruby+Devkit Installers(x64),默认配置安装即可。
输入 ruby -v
查看是否安装成功
安装gem
在 msys64\etc\pacman.d 目录下,将 mirrorlist.msys、mirrorlist.mingw64、mirrorlist.mingw32 中修改配置:
(1)mirrorlist.msys
##
## MSYS2 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/
Server = http://repo.msys2.org/msys/$arch
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch
Server = http://www2.futureware.at/~nickoe/msys2-mirror/msys/$arch/
(2)mirrorlist.mingw64
##
## 64-bit Mingw-w64 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/
Server = http://repo.msys2.org/mingw/x86_64
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/x86_64
Server = http://www2.futureware.at/~nickoe/msys2-mirror/x86_64/
Server = http://mirror.bit.edu.cn/msys2/REPOS/
(3)mirrorlist.mingw32:
##
## 32-bit Mingw-w64 repository mirrorlist
##
## Primary
## msys2.org
Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/
Server = http://repo.msys2.org/mingw/i686
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/i686
Server = http://www2.futureware.at/~nickoe/msys2-mirror/i686/
在cmd命令行输入ridk install
,输入3,安装gem
输入 gem -v
查看是否安装成功
安装rails
gem install rails
安装
输入 rails -v
查看是否安装成功
rubymine环境搭建
导入源码,bundle install
,搭建metasploit 调试环境,建议将文件目录放在windows defender 排除项。