Support post modules
I kinda hate this code. TODO: Get rid of and/or and the extra parens.bug/bundler_fix
parent
a8b5bf4625
commit
c0ef2c7938
|
@ -3144,9 +3144,9 @@ class Core
|
|||
if (mod.exploit? and mod.target)
|
||||
mod_targ = Serializer::ReadableText.dump_exploit_target(mod, ' ')
|
||||
print("\nExploit target:\n\n#{mod_targ}\n") if (mod_targ and mod_targ.length > 0)
|
||||
elsif (mod.auxiliary? and mod.action)
|
||||
elsif ((mod.auxiliary? or mod.post?) and mod.action)
|
||||
mod_action = Serializer::ReadableText.dump_auxiliary_action(mod, ' ')
|
||||
print("\nAuxiliary action:\n\n#{mod_action}\n") if (mod_action and mod_action.length > 0)
|
||||
print("\n#{mod.auxiliary? ? 'Auxiliary' : 'Post'} action:\n\n#{mod_action}\n") if (mod_action and mod_action.length > 0)
|
||||
end
|
||||
|
||||
# Uncomment this line if u want target like msf2 format
|
||||
|
|
Loading…
Reference in New Issue