A helper tool for DownunderCTF challenge creation and management.
$ npm install -g @downunderctf/ducky
$ ducky COMMAND
running command...
$ ducky (--version)
@downunderctf/ducky/0.2.0 linux-x64 node-v17.3.0
$ ducky --help [COMMAND]
USAGE
$ ducky COMMAND
...
ducky challenge init
ducky challenge lint
ducky help [COMMAND]
ducky plugins
ducky plugins:inspect PLUGIN...
ducky plugins:install PLUGIN...
ducky plugins:link PLUGIN
ducky plugins:uninstall PLUGIN...
ducky plugins update
Bootstrap and initialize a challenge
USAGE
$ ducky challenge init [-c cloud|crypto|forensics|misc|osint|pwn|rev|web] [-n <value>] [-a <value>] [-d
easy|medium|hard] [-t none|tcp|http] [-D <value>] [-T <value>]
FLAGS
-D, --dir=<value> [default: /home/ubuntu/contrib/ducky-cli/] Root
challenge repository directory
-T, --template=<value> [default: /home/ubuntu/contrib/ducky-cli/.template]
Directory to use as a template
-a, --author=<value> [default: anonymous] Handle or name of challenge
author
-c, --category=(cloud|crypto|forensics|misc|osint|pwn|rev|web) Challenge category
-d, --difficulty=(easy|medium|hard) Challenge difficulty
-n, --name=<value> Challenge name
-t, --type=(none|tcp|http) [default: http] Type of hosting required (none -
description only, tcp, http)
DESCRIPTION
Bootstrap and initialize a challenge
Lint a challenge for misconfigurations
USAGE
$ ducky challenge lint [-I <value>] [-D <value>] [--verbose] [--format text|json]
FLAGS
-D, --directory=<value> [default: ./] Challenge directory to lint
-I, --ignore=<value> Comma separated list of rule ids to ignore
--format=(text|json) [default: text] Output Format
--verbose Verbose mode
DESCRIPTION
Lint a challenge for misconfigurations
Display help for ducky.
USAGE
$ ducky help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for ducky.
See code: @oclif/plugin-help
List installed plugins.
USAGE
$ ducky plugins [--core]
FLAGS
--core Show core plugins.
DESCRIPTION
List installed plugins.
EXAMPLES
$ ducky plugins
See code: @oclif/plugin-plugins
Displays installation properties of a plugin.
USAGE
$ ducky plugins:inspect PLUGIN...
ARGUMENTS
PLUGIN [default: .] Plugin to inspect.
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Displays installation properties of a plugin.
EXAMPLES
$ ducky plugins:inspect myplugin
Installs a plugin into the CLI.
USAGE
$ ducky plugins:install PLUGIN...
ARGUMENTS
PLUGIN Plugin to install.
FLAGS
-f, --force Run yarn install with force flag.
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Installs a plugin into the CLI.
Can be installed from npm or a git url.
Installation of a user-installed plugin will override a core plugin.
e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
the CLI without the need to patch and update the whole CLI.
ALIASES
$ ducky plugins add
EXAMPLES
$ ducky plugins:install myplugin
$ ducky plugins:install https://github.com/someuser/someplugin
$ ducky plugins:install someuser/someplugin
Links a plugin into the CLI for development.
USAGE
$ ducky plugins:link PLUGIN
ARGUMENTS
PATH [default: .] path to plugin
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Links a plugin into the CLI for development.
Installation of a linked plugin will override a user-installed or core plugin.
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
command will override the user-installed or core plugin implementation. This is useful for development work.
EXAMPLES
$ ducky plugins:link myplugin
Removes a plugin from the CLI.
USAGE
$ ducky plugins:uninstall PLUGIN...
ARGUMENTS
PLUGIN plugin to uninstall
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Removes a plugin from the CLI.
ALIASES
$ ducky plugins unlink
$ ducky plugins remove
Update installed plugins.
USAGE
$ ducky plugins update [-h] [-v]
FLAGS
-h, --help Show CLI help.
-v, --verbose
DESCRIPTION
Update installed plugins.