The Simplest Method to Obtain Cacador
The simplest method to obtain Cacador is to download the latest release that corresponds to your platform.
Compiling Cacador:
1. Install Golang by executing: go get github.com/sroberts/cacador
2. Compile the program using: go build
Running:
To run the application, use: ./cacador
It accepts text from stdin and outputs JSON IOCs
It takes input text from stdin and generates a JSON blob containing Indicators of Compromise (IOCs), which it then writes to stdout.
Example Usage of Cacador
To use Cacador, run the following command: cat text.txt | ./cacador | import, where 'text' refers to some IOC-rich text. The 'import' command pushes your new IOCs into your threat management system.
Cacador supports two command line flags:
- comment="Foo" allows you to add a note as metadata.
- tags="Foo, bar, baz" helps in adding relevant tags.
To generate a new release:
1. Install Goreleaser by running: go get github.com/goreleaser/goreleaser.
2. Push your branch to GitHub.
3. Tag your release using: git tag -a v1.0.3 -m "Release 1.0.3 - Minor bugfix edition."
4. Push the tag to GitHub with: git push origin v1.0.3.
5. Make sure you have the GITHUB_TOKEN environment variable set.
6. Finally, run Goreleaser.