Skip to content

Commit c9ebc35

Browse files
authored
Merge pull request #165 from projectdiscovery/dev
chaos v0.5.1
2 parents 24dc2bf + 346dc49 commit c9ebc35

File tree

6 files changed

+241
-45
lines changed

6 files changed

+241
-45
lines changed

Dockerfile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
FROM golang:1.20.1-alpine as build-env
2-
RUN go install -v github.com/projectdiscovery/chaos-client/cmd/chaos@latest
1+
# Base
2+
FROM golang:1.20.1-alpine AS builder
3+
RUN apk add --no-cache build-base
4+
WORKDIR /app
5+
COPY . /app
6+
RUN go mod download
7+
RUN go build ./cmd/chaos
8+
9+
# Release
10+
FROM alpine:3.17.2
11+
RUN apk -U upgrade --no-cache \
12+
&& apk add --no-cache bind-tools ca-certificates
13+
COPY --from=builder /app/chaos /usr/local/bin/
314

4-
FROM alpine:latest
5-
RUN apk add --no-cache bind-tools ca-certificates
6-
COPY --from=build-env /go/bin/chaos /usr/local/bin/chaos
715
ENTRYPOINT ["chaos"]

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ This will display help for the tool. Here are all the switches it supports.
3737
| `-dL` | File with list of domains (optional) | `chaos -dL domains.txt` |
3838
| `-silent` | Make the output silent | `chaos -d uber.com -silent` |
3939
| `-version` | Print current version of chaos client | `chaos -version` |
40-
40+
| `-verbose` | Show verbose output | `chaos -verbose` |
41+
| `-update` | updates to latest version | `chaos -up` |
42+
| `-disable-update-check` | disables automatic update check | `chaos -duc` |
4143

4244
You can also set the API key as an environment variable in your bash profile.
4345

go.mod

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,69 @@ go 1.18
55
require (
66
github.com/json-iterator/go v1.1.12
77
github.com/pkg/errors v0.9.1
8+
github.com/projectdiscovery/goflags v0.1.8
89
github.com/projectdiscovery/gologger v1.1.8
9-
github.com/projectdiscovery/retryablehttp-go v1.0.12
10+
github.com/projectdiscovery/retryablehttp-go v1.0.13
1011
)
1112

1213
require (
14+
aead.dev/minisign v0.2.0 // indirect
15+
github.com/Masterminds/semver/v3 v3.2.0 // indirect
1316
github.com/Mzack9999/go-http-digest-auth-client v0.6.1-0.20220414142836-eb8883508809 // indirect
17+
github.com/VividCortex/ewma v1.2.0 // indirect
18+
github.com/alecthomas/chroma v0.10.0 // indirect
19+
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
20+
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
1421
github.com/aymerick/douceur v0.2.0 // indirect
22+
github.com/charmbracelet/glamour v0.6.0 // indirect
23+
github.com/cheggaaa/pb/v3 v3.1.2 // indirect
24+
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
25+
github.com/dlclark/regexp2 v1.8.1 // indirect
1526
github.com/dsnet/compress v0.0.1 // indirect
27+
github.com/fatih/color v1.14.1 // indirect
28+
github.com/golang/protobuf v1.5.2 // indirect
1629
github.com/golang/snappy v0.0.1 // indirect
30+
github.com/google/go-github/v30 v30.1.0 // indirect
31+
github.com/google/go-querystring v1.1.0 // indirect
1732
github.com/gorilla/css v1.0.0 // indirect
33+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
34+
github.com/mattn/go-colorable v0.1.13 // indirect
35+
github.com/mattn/go-isatty v0.0.17 // indirect
36+
github.com/mattn/go-runewidth v0.0.14 // indirect
1837
github.com/mholt/archiver v3.1.1+incompatible // indirect
19-
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
38+
github.com/microcosm-cc/bluemonday v1.0.23 // indirect
39+
github.com/miekg/dns v1.1.52 // indirect
40+
github.com/minio/selfupdate v0.6.0 // indirect
41+
github.com/muesli/reflow v0.3.0 // indirect
42+
github.com/muesli/termenv v0.15.1 // indirect
2043
github.com/nwaples/rardecode v1.1.0 // indirect
44+
github.com/olekukonko/tablewriter v0.0.5 // indirect
2145
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
22-
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
23-
github.com/ulikunitz/xz v0.5.7 // indirect
46+
github.com/rivo/uniseg v0.4.4 // indirect
47+
github.com/rogpeppe/go-internal v1.9.0 // indirect
48+
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
49+
github.com/ulikunitz/xz v0.5.8 // indirect
2450
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
51+
github.com/yuin/goldmark v1.5.4 // indirect
52+
github.com/yuin/goldmark-emoji v1.0.1 // indirect
53+
golang.org/x/crypto v0.7.0 // indirect
54+
golang.org/x/exp v0.0.0-20230314191032-db074128a8ec // indirect
55+
golang.org/x/mod v0.9.0 // indirect
56+
golang.org/x/oauth2 v0.5.0 // indirect
57+
golang.org/x/sys v0.6.0 // indirect
58+
golang.org/x/tools v0.7.0 // indirect
59+
google.golang.org/appengine v1.6.7 // indirect
60+
google.golang.org/protobuf v1.28.1 // indirect
2561
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
62+
gopkg.in/yaml.v3 v3.0.1 // indirect
2663
)
2764

2865
require (
2966
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
3067
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3168
github.com/modern-go/reflect2 v1.0.2 // indirect
3269
github.com/projectdiscovery/ratelimit v0.0.6
33-
github.com/projectdiscovery/utils v0.0.14
34-
golang.org/x/net v0.7.0 // indirect
35-
golang.org/x/text v0.7.0 // indirect
70+
github.com/projectdiscovery/utils v0.0.17
71+
golang.org/x/net v0.8.0 // indirect
72+
golang.org/x/text v0.8.0 // indirect
3673
)

0 commit comments

Comments
 (0)