Skip to main content

Payloads

Main commands
/new Create a new payload
/list List payloads
/mod Modify existing payload
/del Delete payload
/clr Delete multiple payloads
  • Payloads are just unique domains with associated names. enable/disable some protocols for payload, add DNS records, etc.) and to distinguish alerts.
  • Payload name (<NAME>) is used to identify the payload in commands (when you enable/disable some protocols for the payload, add DNS records, etc.) and to distinguish alerts.
  • You can enable/disable alerts for specific protocols for the payload. information about all alerts for the payload using CLI tool or API.
  • You can enable event logging for the payload. In this case all events will be stored in the Sonar server database and you will be able to get full information about all alerts for the payload using the CLI tool or API.

Create payload

Create a new payload identified by NAME

Usage:
/new NAME [flags]

Flags:
-e, --events Store events in database
-h, --help help for new
-p, --protocols strings Protocols to notify (default [dns,http,smtp,ftp])

Create new payload

/new <NAME>
  • <NAME> — could be any string (use quotes if you want to have spaces in name). It is used to identify your payload in notifications and other commands.

Payload creationPayload creation

  • You will receive notifications about all DNS, HTTP(s), SMTP, FTP interactions containing your unique subdomain (d14a68e4 in example).

Create payload and enable alerts only for selected protocols

/new <NAME> -p http,dns

Payload creation with protocolsPayload creation with protocols

Create payload and enable event logging

/new <NAME> -e
  • By default events are not stored in the database. Event storage is usetul it you want to automate something and retrieve all events for your subdomain using API or CLI tool.

Payload creation with events loggingPayload creation with events logging

List payloads

List payloads whose NAME contain SUBSTR

Usage:
/list [SUBSTR] [flags]

Flags:
-h, --help help for list

List all payloads

/list

List payloadsList payloads

List payloads containing "SUBSTR" in name

/list <SUBSTR>

List payloadsList payloads

Modify payload

Modify existing payload identified by NAME

Usage:
/mod NAME [flags]

Flags:
-e, --events Store events in database
-h, --help help for mod
-n, --name string Payload name
-p, --protocols strings Protocols to notify

Change the protocols for the payload for which you want to be alerted

/mod <NAME> -p smtp

Modify payload&#39;s protocolsModify payload&#39;s protocols

Enable events logging for the payload

/mod <NAME> -e

Enable events logging for payloadEnable events logging for payload

Delete payload

Delete payload identified by NAME

Usage:
/del NAME [flags]

Flags:
-h, --help help for del

Delete single payload by name

/del <NAME>

Clear payloads

Delete payloads that have a SUBSTR in their NAME

Usage:
/clr [SUBSTR] [flags]

Flags:
-h, --help help for clr

Delete all payloads

/clr

Delete all payloadsDelete all payloads

Delete payloads containing "SUBSTR" in name

/clr <SUBSTR>

Delete payloads containing &quot;SUBSTR&quot;Delete payloads containing &quot;SUBSTR&quot;