Created
October 4, 2022 18:21
-
-
Save LeoVerto/6c7b6819ec6a70b592128747aa14581a to your computer and use it in GitHub Desktop.
CrowdSec alert to signal-cli-rest-api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: http | |
name: signal-rest | |
log_level: info | |
group_wait: 30s | |
format: | | |
{ | |
"number": "SENDER_NUMMER", | |
"recipients": [ "RECIPIENT_NUMMER" ], | |
"message": "CrowdSec Notification:\n{{range . -}}{{$alert := . -}}{{range .Decisions -}}{{.Value}} will get {{.Type}} for next {{.Duration}} for triggering {{.Scenario}}. https://www.shodan.io/host/{{.Value}}\n{{end -}}{{end -}}" | |
} | |
url: http://signal-rest:8080/v2/send | |
method: POST | |
headers: | |
Content-Type: application/json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment