From 26bf4a44e126349fb381fe1cbebfc5173005c5d4 Mon Sep 17 00:00:00 2001 From: Gregory Boddin Date: Sun, 26 Jul 2020 19:20:04 +0200 Subject: [PATCH] Fixed README, fix options --- README.md | 8 ++++---- build-archs.sh | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 build-archs.sh diff --git a/README.md b/README.md index c8b9fd6..4ad8868 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Usage of leakix: ./leakix -q '*' -l 200 -l int - Limit results output, default to 100 (default 100) + Limit results output (default 100) -q string - Specify search query, default to * (default "*") + Specify search query (default "*") -s string - Specify scope, default to leak (default "leak") + Specify scope (default "leak") -t string - Specify output template, default to "{{ .Ip }}:{{ .Port }}" (default "{{ .Ip }}:{{ .Port }}") + Specify output template (default "{{ .Ip }}:{{ .Port }}") $ leakix -l 2 -q "protocol:web AND plugin:GitConfigPlugin" -t "{{ .Ip }}:{{ .Port }} : {{ .Data }}" 178.62.217.44:80 : Found git deployment configuration diff --git a/build-archs.sh b/build-archs.sh new file mode 100644 index 0000000..d5f65ca --- /dev/null +++ b/build-archs.sh @@ -0,0 +1,19 @@ +GOOS=linux GOARCH=386 go build -o leakix-linux-32 ./cmd/leakix +GOOS=linux GOARCH=amd64 go build -o leakix-linux-64 ./cmd/leakix +GOOS=freebsd GOARCH=amd64 go build -o leakix-freebsd-64 ./cmd/leakix +GOOS=freebsd GOARCH=386 go build -o leakix-freebsd-32 ./cmd/leakix + +GOOS=linux GOARCH=arm GOARM=7 go build -o leakix-linux-arm7 ./cmd/leakix +GOOS=linux GOARCH=arm GOARM=6 go build -o leakix-linux-arm6 ./cmd/leakix + +GOOS=darwin GOARCH=amd64 go build -o leakix-osx-64 ./cmd/leakix +GOOS=darwin GOARCH=386 go build -o leakix-osx-32 ./cmd/leakix + +GOOS=windows GOARCH=amd64 go build -o leakix-win64.exe ./cmd/leakix +GOOS=windows GOARCH=386 go build -o leakix-win32.exe ./cmd/leakix + +GOOS=netbsd GOARCH=amd64 go build -o leakix-netbsd-64 ./cmd/leakix +GOOS=netbsd GOARCH=386 go build -o leakix-netbsd-32 ./cmd/leakix + +GOOS=openbsd GOARCH=amd64 go build -o leakix-openbsd-64 ./cmd/leakix +GOOS=openbsd GOARCH=386 go build -o leakix-openbsd-32 ./cmd/leakix