Var

Defines temporary local variables.

Command:

var

Syntax:

var <var_name> = <value>

Example:

var myVar = 'Text here'
print myVar
Text here

You can use variables in several diverse ways, here are some examples:

In commands:

var url = "http://example.com"
server url

In options:

zirkul(plugin)# url: varname

Within formatted string values:

zirkul(scanner)# url "http://{{var_name}}"
zirkul(scan)# summary: "My Scan for {{var_name}}"

There are also reserved variables for dates, time, paths or objects.

Current date:

Current time:

Current time in UTC time zone:

Current day of the month in numeric format:

Current month in numeric format:

Current year in numeric format:

Current hour, minute and second:

Current working directory:

Path based on agent current location:

The scan object is created when a scan is loaded or created, you can use the object directly or it's attributes as follows:

The target object is created when a target is loaded, you can use the object directly or it's attributes as follows:

There's also an object called 'issues' created by the internal scanner or plugins containing the list of issues detected in the current session, you can get the summary of all issues as well as details for every specific issue as follows:

Last updated