Land #5744, msfvenom --help-platforms

bug/bundler_fix
William Vu 2015-07-22 13:47:02 -05:00
commit 1130bbb2f9
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
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