一:git下载最新版& {, `, L9 a5 b- p9 D #cd /opt/metasploit/ root@bt:/opt/metasploit# #rm -rf msf3 root@bt:/opt/metasploit# git clone https://github.com/rapid7/metasploit-framework.git 二:问题(运行msfconsole 会出现以下错误 root@bt:# msfconsole Could not find rake-10.1.0 in any of the sources Run `bundle install` to install missing gems 解决方法/ l' c( c: m1 `' N4 x 1、修改这个文件:/opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux/rbconfig.rb (32bit) 或 /opt/metasploit/ruby/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb (64bit) 把这一行=> CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static" |* i; O. J9 [. a% @ 修改为=> CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "/ 2、进入目录:/opt/metasploit/msf3 and 运行: /opt/metasploit/ruby/bin/bundle install) 6 r9 p1 ^- c" U8 P$ V- H - l$ G! p. k3 R9 _" x 三:打开控制台即可 root@bt:/opt/metasploit# msfconsole =====[ metasploit v4.9.0-dev [core:4.9 api:1.0] ] + -- --=[ 1276 exploits - 698 auxiliary - 202 post ] =-------[www.metasploit.cn ]4 + -- --=[ 332 payloads - 33 encoders - 8 nops ] 0 W! u8 @2 x, b) z! v; ~ msf > $ b) L( P# }, ?, V* H( T) G 转载请注明出处:http://www.metasploit.cn/ |
Metasploits Git更新
最新推荐文章于 2023-05-05 20:33:48 发布