Support post modules

I kinda hate this code.

TODO: Get rid of and/or and the extra parens.
bug/bundler_fix
William Vu 2014-10-08 11:54:59 -05:00
parent a8b5bf4625
commit c0ef2c7938
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 2 additions and 2 deletions

View File

@ -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