2014-09-28 00:12:02 +00:00
|
|
|
#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]" \
|
2015-01-30 00:54:07 +00:00
|
|
|
{-r,--resource}"[Execute the specified resource file (- for stdin)]:resource file:_files" \
|
2014-09-28 00:12:02 +00:00
|
|
|
{-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"
|