1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-30 22:19:17 +02:00

Fix a typo in how suffixes is spelled

This commit is contained in:
Spencer McIntyre 2021-04-28 10:33:48 -04:00
parent 79588b0b8c
commit b2f5335573

@ -79,14 +79,14 @@ module MetasploitPayloads
end end
# #
# List all the available suffixs, optionally filtered by the given extension name. This is mostly useful for # List all the available suffixes, optionally filtered by the given extension name. This is mostly useful for
# determining support for a specific extension. # determining support for a specific extension.
# #
# @param [String] extension_name An optional extension name to use for filtering results. If omitted, all suffixs will # @param [String] extension_name An optional extension name to use for filtering results. If omitted, all suffixes
# be returned. # will be returned.
# @return [Array<String>] Returns an array of binary suffixs. # @return [Array<String>] Returns an array of binary suffixes.
def self.list_meterpreter_extension_suffixs(extension_name=nil) def self.list_meterpreter_extension_suffixes(extension_name=nil)
list_meterpreter_things { |dir| meterpreter_enum_ext_suffixs(dir, extension_name) } list_meterpreter_things { |dir| meterpreter_enum_ext_suffixes(dir, extension_name) }
end end
# #
@ -137,13 +137,13 @@ module MetasploitPayloads
end end
# #
# Enumerate binary suffixs in the given root folder based on an optional extension name. # Enumerate binary suffixes in the given root folder based on an optional extension name.
# #
# @param [String] root_dir The path to the directory from which to enumerate extension suffixs. # @param [String] root_dir The path to the directory from which to enumerate extension suffixes.
# @param [String] extension_name An optional extension name to use for filtering results. If omitted, all suffixs will # @param [String] extension_name An optional extension name to use for filtering results. If omitted, all suffixes will
# be returned. # be returned.
# @return [Array<String>] Returns an array of binary suffixs. # @return [Array<String>] Returns an array of binary suffixes.
def self.meterpreter_enum_ext_suffixs(root_dir, extension_name=nil) def self.meterpreter_enum_ext_suffixes(root_dir, extension_name=nil)
suffixes = [] suffixes = []
extension_name ||= '\w+' extension_name ||= '\w+'
::Dir.entries(root_dir).each do |f| ::Dir.entries(root_dir).each do |f|