Resolve #5743, Add --help-platforms for msfvenom

Resolve #5743
This commit is contained in:
wchen-r7 2015-07-16 16:00:04 -05:00
parent 18ca617c23
commit ae1815a171
1 changed files with 9 additions and 0 deletions

View File

@ -110,6 +110,15 @@ require 'msf/core/payload_generator'
opts[:platform] = l
end
opt.on('--help-platforms', String, 'List available platforms') do
init_framework(:module_types => [])
supported_platforms = []
Msf::Module::Platform.subclasses.each {|c| supported_platforms << "#{c.realname.downcase}"}
msg = "Platforms\n" +
"\t" + supported_platforms * ", "
raise UsageError, msg
end
opt.on('-s', '--space <length>', Integer, 'The maximum size of the resulting payload') do |s|
opts[:space] = s
end