Sort msfvenom --help-platforms

Also sort --help-formats.
bug/bundler_fix
William Vu 2016-08-25 14:02:58 -05:00
parent 5c447a6b13
commit 954dee752b
2 changed files with 2 additions and 2 deletions

View File

@ -2264,9 +2264,9 @@ require 'msf/core/exe/segment_appender'
"msi-nouac",
"osx-app",
"psh",
"psh-cmd",
"psh-net",
"psh-reflection",
"psh-cmd",
"vba",
"vba-exe",
"vba-psh",

View File

@ -116,7 +116,7 @@ def parse_args(args)
supported_platforms = []
Msf::Module::Platform.subclasses.each {|c| supported_platforms << "#{c.realname.downcase}"}
msg = "Platforms\n" +
"\t" + supported_platforms * ", "
"\t" + supported_platforms.sort * ", "
raise HelpError, msg
end