Local Exploit Suggester should not crash when it encounters malformed modules. Instead, a suitable error should be displayed.
Sometimes we overlook things during module development. msftidy does not always catch problems.
Local Exploit Suggester has frequently been the victim of gaps in quality control and often lags behind when it comes to changes to module design practices.
For example, modules with a malformed module arch can crash Local Exploit Suggester. See #20609.
A nil check prior to calling is_module_arch? may help:
|
def is_module_arch?(mod) |
|
mod_arch = mod.target.arch || mod.arch |
|
mod_arch.include?(session_arch) |
|
end |