Skip to content

Commit 1d766ba

Browse files
committed
Rename dump_auxiliary_action{,s}
To dump_module_action{,s} to accommodate post modules, etc.
1 parent f6a9cfc commit 1d766ba

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/msf/base/serializer/readable_text.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ def self.dump_exploit_target(mod, indent = '', h = nil)
8484
tbl.to_s + "\n"
8585
end
8686

87-
# Dumps an auxiliary's actions
87+
# Dumps a module's actions
8888
#
89-
# @param mod [Msf::Auxiliary] the auxiliary module.
89+
# @param mod [Msf::Module] the module.
9090
# @param indent [String] the indentation to use (only the length
9191
# matters)
9292
# @param h [String] the string to display as the table heading.
9393
# @return [String] the string form of the table.
94-
def self.dump_auxiliary_actions(mod, indent = '', h = nil)
94+
def self.dump_module_actions(mod, indent = '', h = nil)
9595
tbl = Rex::Ui::Text::Table.new(
9696
'Indent' => indent.length,
9797
'Header' => h,
@@ -108,14 +108,14 @@ def self.dump_auxiliary_actions(mod, indent = '', h = nil)
108108
tbl.to_s + "\n"
109109
end
110110

111-
# Dumps the auxiliary's selected action
111+
# Dumps the module's selected action
112112
#
113-
# @param mod [Msf::Auxiliary] the auxiliary module.
113+
# @param mod [Msf::Module] the module.
114114
# @param indent [String] the indentation to use (only the length
115115
# matters)
116116
# @param h [String] the string to display as the table heading.
117117
# @return [String] the string form of the table.
118-
def self.dump_auxiliary_action(mod, indent = '', h = nil)
118+
def self.dump_module_action(mod, indent = '', h = nil)
119119
tbl = Rex::Ui::Text::Table.new(
120120
'Indent' => indent.length,
121121
'Header' => h,

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ def show_options(mod) # :nodoc:
31483148

31493149
# Print the selected action
31503150
if mod.kind_of?(Msf::Module::HasActions)
3151-
mod_action = Serializer::ReadableText.dump_auxiliary_action(mod, ' ')
3151+
mod_action = Serializer::ReadableText.dump_module_action(mod, ' ')
31523152
print("\n#{mod.type.capitalize} action:\n\n#{mod_action}\n") if (mod_action and mod_action.length > 0)
31533153
end
31543154

@@ -3208,8 +3208,8 @@ def show_targets(mod) # :nodoc:
32083208
end
32093209

32103210
def show_actions(mod) # :nodoc:
3211-
mod_actions = Serializer::ReadableText.dump_auxiliary_actions(mod, ' ')
3212-
print("\nAuxiliary actions:\n\n#{mod_actions}\n") if (mod_actions and mod_actions.length > 0)
3211+
mod_actions = Serializer::ReadableText.dump_module_actions(mod, ' ')
3212+
print("\n#{mod.type.capitalize} actions:\n\n#{mod_actions}\n") if (mod_actions and mod_actions.length > 0)
32133213
end
32143214

32153215
def show_advanced_options(mod) # :nodoc:

msfcli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class Msfcli
428428

429429
def show_actions(m)
430430
readable = Msf::Serializer::ReadableText
431-
$stdout.puts("\n" + readable.dump_auxiliary_actions(m[:module], @indent))
431+
$stdout.puts("\n" + readable.dump_module_actions(m[:module], @indent))
432432
end
433433

434434

0 commit comments

Comments
 (0)