Land #5744, msfvenom --help-platforms
commit
1130bbb2f9
9
msfvenom
9
msfvenom
|
@ -110,6 +110,15 @@ require 'msf/core/payload_generator'
|
||||||
opts[:platform] = l
|
opts[:platform] = l
|
||||||
end
|
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|
|
opt.on('-s', '--space <length>', Integer, 'The maximum size of the resulting payload') do |s|
|
||||||
opts[:space] = s
|
opts[:space] = s
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue