Skip to content

Commit 53f209f

Browse files
committed
Land rapid7#7244, Sort msfvenom --help-platforms and --help-formats
2 parents 52b81f3 + 954dee7 commit 53f209f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/msf/util/exe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2264,9 +2264,9 @@ def self.to_executable_fmt_formats
22642264
"msi-nouac",
22652265
"osx-app",
22662266
"psh",
2267+
"psh-cmd",
22672268
"psh-net",
22682269
"psh-reflection",
2269-
"psh-cmd",
22702270
"vba",
22712271
"vba-exe",
22722272
"vba-psh",

msfvenom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def parse_args(args)
116116
supported_platforms = []
117117
Msf::Module::Platform.subclasses.each {|c| supported_platforms << "#{c.realname.downcase}"}
118118
msg = "Platforms\n" +
119-
"\t" + supported_platforms * ", "
119+
"\t" + supported_platforms.sort * ", "
120120
raise HelpError, msg
121121
end
122122

0 commit comments

Comments
 (0)