Init all payloads if not set when module is an exploit

bug/bundler_fix
sinn3r 2013-07-29 11:25:41 -05:00
parent 312c7f0564
commit 701cde010b
1 changed files with 5 additions and 0 deletions

5
msfcli
View File

@ -241,6 +241,11 @@ class Msfcli
# Cleanup empty args
junk_args.each { |args| @args[:params].delete(args) }
# If it's an exploit and no payload set, load them all.
if @args[:module_name] !~ /auxiliary\// and payload_param.empty?
whitelist << /payloads\/.+/
end
# Add post modules list if not set
if post_val.nil?
whitelist << /post\/.+/