metasploit的git更新
打开终端,顺次输入
1、apt-get update
2、apt-get install metasploit
3、(修改文件:) cd /opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux
见图
修改rbconfig.rb 文件 输入:vi rbconfig.rb
changed the line =>
CONFIG[“LIBRUBYARG_STATIC”]=”-Wl,-R-Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static”
by=>
CONFIG[“LIBRUBYARG_STATIC”]= “-Wl,-R -Wl,$(libdir) -L$(libdir) “
(其实就是去掉-l$(RUBY_SO_NAME)-static
ps:(vi用法: i 进入编辑模式,然后移动光标修改后。 ESC退出该模式。输入 “ :” ,再输入wq,存盘退出。)
4、切换至/opt/metasploit/msf3然后运行 /opt/metasploit/ruby/bin/bundle install
5、直接输msfupdate
6、输入msfconsole查看是最新的了
评论被关闭。