Skip to content

Commit afcc2fa

Browse files
authored
Merge pull request #172 from projectdiscovery/dev
Bugfix release
2 parents e1c2f01 + 17c76cc commit afcc2fa

File tree

15 files changed

+237
-115
lines changed

15 files changed

+237
-115
lines changed

.github/workflows/release-binary.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: 🎉 Release Binary
2+
23
on:
3-
push:
4+
create:
45
tags:
5-
- '*'
6+
- v*
67
workflow_dispatch:
78

89
jobs:
@@ -25,5 +26,6 @@ jobs:
2526
args: "release --rm-dist"
2627
version: latest
2728
workdir: .
28-
env:
29-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
29+
env:
30+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
31+
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"

.github/workflows/sonarcloud.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
go test -coverprofile=./cov.out ./...
2828
2929
- name: Run Gosec Security Scanner
30-
run: |
31-
go install github.com/securego/gosec/cmd/gosec@latest
32-
gosec -no-fail -fmt=sonarqube -out report.json ./...
30+
uses: securego/gosec@master
31+
with:
32+
args: '-no-fail -fmt=sonarqube -out report.json ./...'
3333

3434
- name: SonarCloud Scan
3535
uses: SonarSource/sonarcloud-github-action@master

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ cmd/proxify/logs/*
44
.DS_Store
55
cmd/replay/replay
66
cmd/mitmrelay/mitmrelay
7+
*.exe

.goreleaser.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ builds:
1414
- 386
1515
- arm
1616
- arm64
17+
ignore:
18+
- goos: windows
19+
goarch: 'arm'
20+
- goos: windows
21+
goarch: 'arm64'
1722
id: proxify
1823

1924
- binary: replay
@@ -27,6 +32,11 @@ builds:
2732
- 386
2833
- arm
2934
- arm64
35+
ignore:
36+
- goos: windows
37+
goarch: 'arm'
38+
- goos: windows
39+
goarch: 'arm64'
3040
id: replay
3141

3242
- binary: mitmrelay
@@ -40,6 +50,11 @@ builds:
4050
- 386
4151
- arm
4252
- arm64
53+
ignore:
54+
- goos: windows
55+
goarch: 'arm'
56+
- goos: windows
57+
goarch: 'arm64'
4358
id: mitmrelay
4459

4560
archives:
@@ -49,3 +64,10 @@ archives:
4964

5065
checksum:
5166
algorithm: sha256
67+
68+
announce:
69+
slack:
70+
enabled: true
71+
channel: '#release'
72+
username: GoReleaser
73+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Base
2-
FROM golang:1.18.3-alpine AS builder
2+
FROM golang:1.19.2-alpine AS builder
33

44
RUN apk add --no-cache git
55
RUN go install -v github.com/projectdiscovery/proxify/cmd/proxify@latest
66

7-
FROM alpine:3.16.0
7+
FROM alpine:3.16.2
88
RUN apk -U upgrade --no-cache \
99
&& apk add --no-cache bind-tools ca-certificates
1010
COPY --from=builder /go/bin/proxify /usr/local/bin/

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ CONFIGURATION:
106106
-deny string Denied list of IP/CIDR's to be proxied
107107

108108
DEBUG:
109-
-silent Silent
110-
-nc, -no-color No Color (default true)
111-
-version Version
112-
-v, -verbose Verbose
109+
-nc, -no-color No Color (default true)
110+
-version Version
111+
-silent Silent
112+
-v, -verbose Verbose
113+
-vv, -very-verbose Very Verbose
113114
```
114115
115116
### Running Proxify

go.mod

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,53 @@ module github.com/projectdiscovery/proxify
33
go 1.17
44

55
require (
6+
github.com/Knetic/govaluate v3.0.0+incompatible
67
github.com/Mzack9999/roundrobin v0.0.0-20211108110706-e876335f5ad4
7-
github.com/Shopify/sarama v1.34.1
8+
github.com/Shopify/sarama v1.37.2
89
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
910
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
1011
github.com/elastic/go-elasticsearch/v7 v7.17.1
1112
github.com/elazarl/goproxy v0.0.0-20210110162100-a92cc753f88e
1213
github.com/hashicorp/golang-lru v0.5.4
1314
github.com/haxii/fastproxy v0.5.37
1415
github.com/pkg/errors v0.9.1
15-
github.com/projectdiscovery/dsl v0.0.2
16+
github.com/projectdiscovery/dsl v0.0.3
1617
github.com/projectdiscovery/fastdialer v0.0.15
1718
github.com/projectdiscovery/goflags v0.0.8-0.20220304165250-2530b305a4a9
1819
github.com/projectdiscovery/gologger v1.1.4
1920
github.com/projectdiscovery/mapsutil v0.0.2-0.20220531112119-e205a582729c
2021
github.com/projectdiscovery/stringsutil v0.0.0-20220208075244-7c05502ca8e9
2122
github.com/projectdiscovery/tinydns v0.0.1
2223
github.com/rs/xid v1.4.0
23-
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2
24+
golang.org/x/net v0.0.0-20220927171203-f486391704dc
2425
)
2526

2627
require (
27-
github.com/Knetic/govaluate v3.0.0+incompatible // indirect
2828
github.com/akrylysov/pogreb v0.10.1 // indirect
2929
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
3030
github.com/davecgh/go-spew v1.1.1 // indirect
3131
github.com/dimchansky/utfbom v1.1.1 // indirect
32-
github.com/eapache/go-resiliency v1.2.0 // indirect
32+
github.com/eapache/go-resiliency v1.3.0 // indirect
3333
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
3434
github.com/eapache/queue v1.1.0 // indirect
3535
github.com/elazarl/goproxy/ext v0.0.0-20210110162100-a92cc753f88e // indirect
3636
github.com/golang/snappy v0.0.4 // indirect
3737
github.com/hashicorp/errwrap v1.0.0 // indirect
3838
github.com/hashicorp/go-multierror v1.1.1 // indirect
39-
github.com/hashicorp/go-uuid v1.0.2 // indirect
39+
github.com/hashicorp/go-uuid v1.0.3 // indirect
4040
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
4141
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
42-
github.com/jcmturner/gofork v1.0.0 // indirect
43-
github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect
42+
github.com/jcmturner/gofork v1.7.6 // indirect
43+
github.com/jcmturner/gokrb5/v8 v8.4.3 // indirect
4444
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
4545
github.com/json-iterator/go v1.1.12 // indirect
4646
github.com/karrick/godirwalk v1.16.1 // indirect
47-
github.com/klauspost/compress v1.15.6 // indirect
47+
github.com/klauspost/compress v1.15.11 // indirect
4848
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
4949
github.com/miekg/dns v1.1.49 // indirect
5050
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5151
github.com/modern-go/reflect2 v1.0.2 // indirect
52-
github.com/pierrec/lz4/v4 v4.1.14 // indirect
52+
github.com/pierrec/lz4/v4 v4.1.17 // indirect
5353
github.com/projectdiscovery/blackrock v0.0.0-20210415162320-b38689ae3a2e // indirect
5454
github.com/projectdiscovery/cryptoutil v0.0.0-20210805184155-b5d2512f9345 // indirect
5555
github.com/projectdiscovery/fileutil v0.0.0-20220215113056-ba188a0c8abc // indirect
@@ -68,12 +68,12 @@ require (
6868
github.com/zmap/rc2 v0.0.0-20131011165748-24b9757f5521 // indirect
6969
github.com/zmap/zcrypto v0.0.0-20211005224000-2d0ffdec8a9b // indirect
7070
go.etcd.io/bbolt v1.3.6 // indirect
71-
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
71+
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
7272
golang.org/x/mod v0.4.2 // indirect
73-
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
73+
golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect
7474
golang.org/x/text v0.3.7 // indirect
7575
golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2 // indirect
7676
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
7777
gopkg.in/yaml.v2 v2.4.0 // indirect
78-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
78+
gopkg.in/yaml.v3 v3.0.1 // indirect
7979
)

0 commit comments

Comments
 (0)