项目作者: timoguin

项目描述 :
CLI interface for the Signal Sciences API using the go-sigsci SDK
高级语言: Go
项目地址: git://github.com/timoguin/sigcli.git
创建时间: 2019-10-22T20:41:49Z
项目社区:https://github.com/timoguin/sigcli

开源协议:GNU General Public License v3.0

下载


Signal Sciences CLI

CLI tool that interacts with the Signal Sciences API using the go-sigsci
library. Build with a simple go build or make build.

Usage

  1. $ ./sigcli
  2. Interact with the Signal Sciences API
  3. Usage:
  4. sigcli [command]
  5. Available Commands:
  6. bash-completion Generates bash completion scripts
  7. get-corp Get info about a corp
  8. help Help about any command
  9. list-agents List sigsci agents
  10. list-corps List sigsci corps
  11. list-suspicious-ips List suspicious IPS for a specific site
  12. list-top-attacks List top attacks for a specific site
  13. Flags:
  14. --config string config file (default is $HOME/.sigcli.yaml)
  15. -d, --debug enable debug mode for verbose output
  16. --email string SigSci email/username
  17. -h, --help help for sigcli
  18. --token string SigSci API token
  19. Use "sigcli [command] --help" for more information about a command.

Config

The following order of precedence is used for obtaining config values:

  • CLI flags
  • Env vars
  • Config file

All CLI commands have built-in help. Use the -h flag on any part of the CLI to
view usage docs.

You can set the following env vars:

  • SIGSCI_EMAIL
  • SIGSCI_TOKEN
  • SIGSCI_CORP
  • SIGSCI_SITE

You can also use a YAML or JSON config file:

  1. $ cat ~/.sigsci.yaml
  2. email: "YOUR_SIGSCI_EMAIL"
  3. token: "YOUR_SIGSCI_API_TOKEN"
  4. corp: "YOUR_CORP"
  5. site: "YOUR_SITE"