Command Line Interface
Last updated
Last updated
Zirkul Agent was initially designed as a command line tool for security automation, you can simply run zirkul from terminal for starting the interactive command line interface:
You can also get more information related to parameters with:
The command line interface support commands, options and plugins created for making a cross-platform terminal loaded with helpful cyber security functionalities available in OSX, Linux and Windows.
Commands are used for running built-in functionalities and configuring system options:
See all the commands available sending the question" ? " character:
Plugins are the main functionality of the Agent allowing the tool to integrate with almost any tool either from command line or trough REST APIs. Plugins are made as Python scripts making it very easy to create and extend.
Example, loading ZAP plugin:
There are different types of plugins for "functions", "exploits" or "integrations":
Functions: Processing and/or returning values without interacting with external tools. Example: ` echo date ` will return the current date in text format.
Exploits: Testing known vulnerabilities (CVEs) receiving parameters and returning if the execution was successful or not. Example: ` load ms15-034 `
Integrations: These plugins are used for interacting with external tools such as command line tools or remote services through Web APIs. Example: Running scans and returning results from tools such as ZAP, Burp Suite, nmap, sqlmap, Metasploit, etc.
Options are used for configuring parameters sent to plugins, usually separated by colon ' : '
Example:
Zirkul Agent can get external variables either from command line arguments or environment variables as follows.
With the argument ' --variables ' you can send as many as the terminal allows, example:
Every variable must be separated by spaces, any value including spaces must be enclosed with single quotes.
Environment variables are defined at system level in your computer, usually can be set with the command:
From Zirkul Agent, you can get the environment's variable value with the env function:
See more information in the command reference.