Skip to content

Commit f56c7f9

Browse files
David MaloneyDavid Maloney
authored andcommitted
cosmetic touchups
1 parent d85f988 commit f56c7f9

File tree

5 files changed

+59
-25
lines changed

5 files changed

+59
-25
lines changed

features/commands/help.feature

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,72 @@ Feature: Help command
1212
Command Description
1313
------- -----------
1414
? Help menu
15-
advanced Displays advanced options for one or more modules
16-
back Move back from the current context
1715
banner Display an awesome metasploit banner
1816
cd Change the current working directory
1917
color Toggle color
2018
connect Communicate with a host
21-
edit Edit the current module with $VISUAL or $EDITOR
2219
exit Exit the console
2320
get Gets the value of a context-specific variable
2421
getg Gets the value of a global variable
2522
grep Grep the output of another command
2623
help Help menu
27-
info Displays information about one or more modules
2824
irb Drop into irb scripting mode
29-
jobs Displays and manages jobs
30-
kill Kill a job
3125
load Load a framework plugin
32-
loadpath Searches for and loads modules from a path
33-
makerc Save commands entered since start to a file
34-
options Displays global options or for one or more modules
35-
popm Pops the latest module off the stack and makes it active
36-
previous Sets the previously loaded module as the current module
37-
pushm Pushes the active or list of modules onto the module stack
3826
quit Exit the console
39-
reload_all Reloads all modules from all defined module paths
40-
rename_job Rename a job
41-
resource Run the commands stored in a file
4227
route Route traffic through a session
4328
save Saves the active datastores
44-
search Searches module names and descriptions
4529
sess Interact with a given session
4630
sessions Dump session listings and display information about sessions
4731
set Sets a context-specific variable to a value
4832
setg Sets a global variable to a value
49-
show Displays modules of a given type, or all modules
5033
sleep Do nothing for the specified number of seconds
5134
spool Write console output into a file as well the screen
5235
threads View and manipulate background threads
5336
unload Unload a framework plugin
5437
unset Unsets one or more context-specific variables
5538
unsetg Unsets one or more global variables
56-
use Selects a module by name
5739
version Show the framework and console library version numbers
5840
5941
42+
Module Commands
43+
===============
44+
45+
Command Description
46+
------- -----------
47+
advanced Displays advanced options for one or more modules
48+
back Move back from the current context
49+
edit Edit the current module with $VISUAL or $EDITOR
50+
info Displays information about one or more modules
51+
loadpath Searches for and loads modules from a path
52+
options Displays global options or for one or more modules
53+
popm Pops the latest module off the stack and makes it active
54+
previous Sets the previously loaded module as the current module
55+
pushm Pushes the active or list of modules onto the module stack
56+
reload_all Reloads all modules from all defined module paths
57+
search Searches module names and descriptions
58+
show Displays modules of a given type, or all modules
59+
use Selects a module by name
60+
61+
62+
Job Commands
63+
============
64+
65+
Command Description
66+
------- -----------
67+
jobs Displays and manages jobs
68+
kill Kill a job
69+
rename_job Rename a job
70+
71+
72+
Resource Script Commands
73+
========================
74+
75+
Command Description
76+
------- -----------
77+
makerc Save commands entered since start to a file
78+
resource Run the commands stored in a file
79+
80+
6081
Database Backend Commands
6182
=========================
6283
@@ -76,5 +97,19 @@ Feature: Help command
7697
services List all services in the database
7798
vulns List all vulnerabilities in the database
7899
workspace Switch between database workspaces
100+
101+
102+
Auxiliary Commands
103+
==================
104+
105+
Command Description
106+
------- -----------
107+
check Check to see if a target is vulnerable
108+
exploit This is an alias for the run command
109+
pry Open a Pry session on the current module
110+
reload Reloads the auxiliary module
111+
rerun Reloads and launches the auxiliary module
112+
rexploit This is an alias for the rerun command
113+
run Launches the auxiliary module
79114
"""
80115

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ class Core
9191
"-e" => [ true, "Expression to evaluate." ])
9292

9393

94-
95-
# Constant for a retry timeout on using modules before they're loaded
96-
CMD_USE_TIMEOUT = 3
97-
9894
# Returns the list of commands supported by this command dispatcher
9995
def commands
10096
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def commands
3939
# Returns the name of the command dispatcher.
4040
#
4141
def name
42-
"Jobs"
42+
"Job"
4343
end
4444

4545
def cmd_rename_job_help

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ class Modules
1919

2020
include Msf::Ui::Console::CommandDispatcher
2121

22+
# Constant for a retry timeout on using modules before they're loaded
23+
CMD_USE_TIMEOUT = 3
24+
2225
# Constant for disclosure date formatting in search functions
2326
DISCLOSURE_DATE_FORMAT = "%Y-%m-%d"
2427

@@ -60,7 +63,7 @@ def initialize(driver)
6063
# Returns the name of the command dispatcher.
6164
#
6265
def name
63-
"Modules"
66+
"Module"
6467
end
6568

6669

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def commands
3131
# Returns the name of the command dispatcher.
3232
#
3333
def name
34-
"Resource Scripts"
34+
"Resource Script"
3535
end
3636

3737
def cmd_resource_help

0 commit comments

Comments
 (0)