metasploit-framework/lib/msf/ui
Luke Imhoff df9db42c32 Fix module reloading
[#36737359]

The merging of reload_module and the various load_module methods
resulted in the module loading from disk, but because the Hash entry in
the module manager was not deleted before on_module_load was called, the
newly reloaded module was logged as an ambiguous module name instead of
a reload.  In order to report the reload errors correctly, I determined
that module_load_error_by_reference_name should really be
module_load_error_by_path.  I eliminated faild in favor of this new name
since failed was just calling the attribute and the attribute's name is
clearer about the format of the data.

Tested by run rexploit and then exiting over and over with
ms08_067_netapi.  When I messed up the file so it couldn't load, by
adding `inclde Exploit` (note mispelling of `include`), it reported the
error to msfconsole.  When I removed the bad line and added a puts
"RELOADING <n>", where I kept incrementing n and saving the file, the
new number appeared during each rexploit.
2012-10-04 16:32:12 -05:00
..
console Fix module reloading 2012-10-04 16:32:12 -05:00
web Move the db skip into the "web" console driver. FIXRM #7031 2012-06-29 10:46:15 -05:00
banner.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
common.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
console.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
driver.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00
web.rb Mark all libraries as defaulting to 8-bit strings 2012-06-29 00:18:28 -05:00