From 954dee752b5154c64001a6285e4440a6e1e42137 Mon Sep 17 00:00:00 2001 From: William Vu Date: Thu, 25 Aug 2016 14:02:58 -0500 Subject: [PATCH] Sort msfvenom --help-platforms Also sort --help-formats. --- lib/msf/util/exe.rb | 2 +- msfvenom | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/util/exe.rb b/lib/msf/util/exe.rb index 510cabe315..4f9f4073ce 100644 --- a/lib/msf/util/exe.rb +++ b/lib/msf/util/exe.rb @@ -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", diff --git a/msfvenom b/msfvenom index 0d7dd834f6..038b8e5fa3 100755 --- a/msfvenom +++ b/msfvenom @@ -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