add ipabusedb-docker-ssh: report sshd brute-force attempts from docker logs to AbuseIPDB
This commit is contained in:
1 parent
fcb956124b
commit
21bda80f88
8 files changed
+658
No files matched your search
@@ -0,0 +1,23 @@
|
||||
BIN := ipabusedb-docker-ssh
|
||||
|
||||
.PHONY: build test lint fmt fmt-check check clean
|
||||
|
||||
build:
|
||||
go build -o $(BIN) .
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
fmt:
|
||||
gofmt -w *.go
|
||||
|
||||
fmt-check:
|
||||
@test -z "$$(gofmt -l .)" || { gofmt -l .; echo "gofmt: files need formatting"; exit 1; }
|
||||
|
||||
lint: fmt-check
|
||||
go vet ./...
|
||||
|
||||
check: lint test build
|
||||
|
||||
clean:
|
||||
rm -f $(BIN)
|
||||
Reference in new issue
Block a user