Fix a crash on load

git-svn-id: file:///home/svn/incoming/trunk@3074 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2005-11-24 03:53:45 +00:00
parent 69ed2be27e
commit f6649e54c5
2 changed files with 3 additions and 2 deletions

View File

@ -158,7 +158,8 @@ class Driver < Msf::Ui::Driver
def on_variable_set(glob, var, val)
case var.downcase
when "payload"
if (framework.modules.valid?(val) == false)
if (framework and framework.modules.valid?(val) == false)
return false
end
when "sessionlogging"

View File

@ -15,7 +15,7 @@ class Exploits::Windows::Ftp::FreeFTPDUserOverflow < Msf::Exploit::Remote
exploited when logging has been enabled (non-default).
},
'Author' => [ 'y0 [at] w00t-shell.net' ],
'Author' => [ 'y0@w00t-shell.net' ],
'Version' => '$Revision$',
'References' =>
[