40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
#compdef msfconsole
|
|
# ------------------------------------------------------------------------------
|
|
# License
|
|
# -------
|
|
# This file is part of the Metasploit Framework and is released under the MSF
|
|
# License, please see the COPYING file for more details.
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
# Description
|
|
# -----------
|
|
#
|
|
# Completion script for the Metasploit Framework's msfconsole command
|
|
# (http://www.metasploit.com/).
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
# Authors
|
|
# -------
|
|
#
|
|
# * Spencer McIntyre
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
|
|
_arguments \
|
|
{-a,--ask}"[Ask before exiting Metasploit or accept 'exit -y']" \
|
|
"-c[Load the specified configuration file]:configuration file:_files" \
|
|
{-d,--defanged}"[Execute the console as defanged]" \
|
|
{-E,--environment}"[Specify the database environment to load from the configuration]:environment:(production development)" \
|
|
{-h,--help}"[Show help text]" \
|
|
{-L,--real-readline}"[Use the system Readline library instead of RbReadline]" \
|
|
{-M,--migration-path}"[Specify a directory containing additional DB migrations]:directory:_files -/" \
|
|
{-m,--module-path}"[Specifies an additional module search path]:search path:_files -/" \
|
|
{-n,--no-database}"[Disable database support]" \
|
|
{-o,--output}"[Output to the specified file]:output file" \
|
|
{-p,--plugin}"[Load a plugin on startup]:plugin file:_files" \
|
|
{-q,--quiet}"[Do not print the banner on start up]" \
|
|
{-r,--resource}"[Execute the specified resource file (- for stdin)]:resource file:_files" \
|
|
{-v,--version}"[Show version]" \
|
|
{-x,--execute-command}"[Execute the specified string as console commands]:commands" \
|
|
{-y,--yaml}"[Specify a YAML file containing database settings]:yaml file:_files"
|