-
-
[注意]关于MSF3.2开发exploit模块
-
2009-2-13 11:06
7455
-
不少朋友直接下载了MSF最新的3.2版本。若将书中poc.rb复制到模块目录--
(3.2的目录已变为
C:\Documents and Settings\Administrator\Application Data\msf32\modules\exploits)
打开web界面 点击Console将出现
WARNING! The following modules could not be loaded!
C:/Documents and Settings/Administrator/Application Data/msf32/modules/exploits/failwest/poc.rb: NameError C:/Documents and Settings/Administrator/Application Data/msf32/data/msfweb/vendor/rails/activesupport/lib/active_support/dependencies.rb:116:in `qualified_const_defined?': "#<Module:0x523314c>::Msf" is not a valid constant name!
会因产生NameError而无法载入该模块。
出错了。
随便打开另一个正常模块。一看开头
没有了
module Msf类定义也变成了
class Metasploit3 < Msf::Exploit::xxxx
于是将poc.rb第二句module Msf以及末尾的END去掉。并改类定义为class Metasploit3 < Msf::Exploit::Remote
再次打开MSF web界面.单击Console可爱的小牛出现,问题没有了。
Welcome to the Metasploit Web Console!
____________
< metasploit >
------------
\ ,__,
\ (oo)____
(__) )\
||--|| *
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课