Skip to content

Commit 18fc1ca

Browse files
authored
Merge pull request #176 from projectdiscovery/dev
uncover v1.0.3
2 parents c7e480c + d0f473e commit 18fc1ca

35 files changed

+808
-401
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 🔨 Build Test
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.go'
7+
- '**.mod'
58
workflow_dispatch:
69

710
jobs:

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: 🚨 CodeQL Analysis
22

33
on:
4-
workflow_dispatch:
54
pull_request:
6-
branches:
7-
- dev
5+
paths:
6+
- '**.go'
7+
- '**.mod'
8+
workflow_dispatch:
89

910
jobs:
1011
analyze:

.github/workflows/dockerhub-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
docker:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest-16-cores
1313
steps:
1414
- name: Git Checkout
1515
uses: actions/checkout@v3
@@ -32,7 +32,7 @@ jobs:
3232
password: ${{ secrets.DOCKER_TOKEN }}
3333

3434
- name: Build and push
35-
uses: docker/build-push-action@v3
35+
uses: docker/build-push-action@v4
3636
with:
3737
context: .
3838
platforms: linux/amd64,linux/arm64,linux/arm

.github/workflows/lint-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: 🙏🏻 Lint Test
22

33
on:
44
pull_request:
5+
paths:
6+
- '**.go'
7+
- '**.mod'
58
workflow_dispatch:
69

710
jobs:
@@ -18,7 +21,7 @@ jobs:
1821
uses: actions/checkout@v3
1922

2023
- name: Run golangci-lint
21-
uses: golangci/golangci-lint-action@v3.3.1
24+
uses: golangci/golangci-lint-action@v3.4.0
2225
with:
2326
version: latest
2427
args: --timeout 5m

.github/workflows/release-binary.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
release:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-latest-16-cores
1212
steps:
1313
- name: "Check out code"
1414
uses: actions/checkout@v3
@@ -28,4 +28,6 @@ jobs:
2828
workdir: .
2929
env:
3030
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
31-
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
31+
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
32+
DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}"
33+
DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}"

.goreleaser.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- darwin
1212
goarch:
1313
- amd64
14-
- 386
14+
- '386'
1515
- arm
1616
- arm64
1717

@@ -39,4 +39,8 @@ announce:
3939
enabled: true
4040
channel: '#release'
4141
username: GoReleaser
42-
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
42+
message_template: 'New Release: {{ .ProjectName }} {{.Tag}} is published! Check it out at {{ .ReleaseURL }}'
43+
44+
discord:
45+
enabled: true
46+
message_template: '**New Release: {{ .ProjectName }} {{.Tag}}** is published! Check it out at {{ .ReleaseURL }}'

Dockerfile

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
FROM golang:1.18.2-alpine3.14 AS build-env
2-
RUN go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest
1+
# Base
2+
FROM golang:1.20.2-alpine AS builder
3+
RUN apk add --no-cache git build-base
4+
WORKDIR /app
5+
COPY . /app
6+
RUN go mod download
7+
RUN go build -o ./cmd/uncover ./cmd/uncover
38

4-
FROM alpine:3.17.0
5-
RUN apk add --no-cache bind-tools ca-certificates
6-
COPY --from=build-env /go/bin/uncover /usr/local/bin/uncover
7-
ENTRYPOINT ["uncover"]
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/cmd/uncover/uncover /usr/local/bin/
14+
15+
ENTRYPOINT ["uncover"]
File renamed without changes.

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
- **[Zoomeye](https://www.zoomeye.org)**
4646
- **[Netlas](https://netlas.io/)**
4747
- **[CriminalIP](https://www.criminalip.io)**
48+
- **[PublicWWW](https://publicwww.com)**
49+
- **[HunterHow](https://hunter.how)**
4850
- Multiple API key input support
4951
- Automatic API key randomization
5052
- **stdin** / **stdout** support for input
@@ -72,7 +74,7 @@ Usage:
7274
Flags:
7375
INPUT:
7476
-q, -query string[] search query, supports: stdin,file,config input (example: -q 'example query', -q 'query.txt')
75-
-e, -engine string[] search engine to query (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,criminalip) (default shodan)
77+
-e, -engine string[] search engine to query (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,criminalip,publicwww,hunterhow) (default shodan)
7678

7779
SEARCH-ENGINE:
7880
-s, -shodan string[] search query for shodan (example: -shodan 'query.txt')
@@ -84,13 +86,16 @@ SEARCH-ENGINE:
8486
-ze, -zoomeye string[] search query for zoomeye (example: -zoomeye 'query.txt')
8587
-ne, -netlas string[] search query for netlas (example: -netlas 'query.txt')
8688
-cl, -criminalip string[] search query for criminalip (example: -criminalip 'query.txt')
89+
-pw, -publicwww string[] search query for publicwww (example: -publicwww 'query.txt')
90+
-hh, -hunterhow string[] search query for hunterhow (example: -hunterhow 'query.txt')
8791

8892
CONFIG:
89-
-pc, -provider string provider configuration file (default "$HOME/.config/uncover/provider-config.yaml")
90-
-config string flag configuration file (default "$HOME/.config/uncover/config.yaml")
91-
-timeout int timeout in seconds (default 30)
92-
-delay int delay between requests in seconds (0 to disable) (default 1)
93-
-retry int number of times to retry a failed request (default 2)
93+
-pc, -provider string provider configuration file (default "$HOME/.config/uncover/provider-config.yaml")
94+
-config string flag configuration file (default "$HOME/.config/uncover/config.yaml")
95+
-timeout int timeout in seconds (default 30)
96+
-rl, -rate-limit int maximum number of http requests to send per second
97+
-rlm, -rate-limit-minute int maximum number of requests to send per minute
98+
-retry int number of times to retry a failed request (default 2)
9499

95100
OUTPUT:
96101
-o, -output string output file to write found results
@@ -138,6 +143,9 @@ netlas:
138143
criminalip:
139144
- CRIMINALIP_API_KEY_1
140145
- CRIMINALIP_API_KEY_2
146+
publicwww:
147+
- PUBLICWWW_API_KEY_1
148+
- PUBLICWWW_API_KEY_2
141149
```
142150
143151
When multiple keys/credentials are specified for same provider in the config file, random key will be used for each execution.
@@ -155,9 +163,10 @@ export HUNTER_API_KEY=xxx
155163
export ZOOMEYE_API_KEY=xxx
156164
export NETLAS_API_KEY=xxx
157165
export CRIMINALIP_API_KEY=xxx
166+
export PUBLICWWW_API_KEY=xxx
158167
```
159168

160-
Required API keys can be obtained by signing up on following platform [Shodan](https://account.shodan.io/register), [Censys](https://censys.io/register), [Fofa](https://fofa.info/toLogin), [Quake](https://quake.360.net/quake/#/index), [Hunter](https://user.skyeye.qianxin.com/user/register?next=https%3A//hunter.qianxin.com/api/uLogin&fromLogin=1), [ZoomEye](https://www.zoomeye.org/login), [Netlas](https://app.netlas.io/registration/) and [CriminalIP](https://www.criminalip.io/register).
169+
Required API keys can be obtained by signing up on following platform [Shodan](https://account.shodan.io/register), [Censys](https://censys.io/register), [Fofa](https://fofa.info/toLogin), [Quake](https://quake.360.net/quake/#/index), [Hunter](https://user.skyeye.qianxin.com/user/register?next=https%3A//hunter.qianxin.com/api/uLogin&fromLogin=1), [ZoomEye](https://www.zoomeye.org/login), [Netlas](https://app.netlas.io/registration/), [CriminalIP](https://www.criminalip.io/register) and [Publicwww](https://publicwww.com/profile/signup.html).
161170

162171
## Running Uncover
163172

go.mod

Lines changed: 48 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,85 @@
11
module github.com/projectdiscovery/uncover
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/hashicorp/golang-lru v0.5.4
77
github.com/julienschmidt/httprouter v1.3.0
88
github.com/logrusorgru/aurora v2.0.3+incompatible
9-
github.com/pkg/errors v0.9.1
109
github.com/projectdiscovery/fdmax v0.0.4
11-
github.com/projectdiscovery/goflags v0.1.6
12-
github.com/projectdiscovery/gologger v1.1.5
13-
github.com/projectdiscovery/mapcidr v1.0.3
14-
github.com/projectdiscovery/ratelimit v0.0.4
15-
github.com/projectdiscovery/retryablehttp-go v1.0.7
16-
github.com/projectdiscovery/stringsutil v0.0.2
17-
github.com/stretchr/testify v1.8.1
10+
github.com/projectdiscovery/goflags v0.1.8
11+
github.com/projectdiscovery/gologger v1.1.8
12+
github.com/projectdiscovery/mapcidr v1.1.0
13+
github.com/projectdiscovery/ratelimit v0.0.6
14+
github.com/projectdiscovery/retryablehttp-go v1.0.13
15+
github.com/stretchr/testify v1.8.2
1816
)
1917

2018
require (
21-
github.com/miekg/dns v1.1.50 // indirect
22-
github.com/rogpeppe/go-internal v1.9.0 // indirect
23-
golang.org/x/exp v0.0.0-20221217163422-3c43f8badb15 // indirect
24-
golang.org/x/mod v0.6.0 // indirect
25-
golang.org/x/tools v0.2.0 // indirect
19+
github.com/miekg/dns v1.1.52 // indirect
20+
golang.org/x/exp v0.0.0-20230314191032-db074128a8ec // indirect
21+
golang.org/x/mod v0.9.0 // indirect
22+
golang.org/x/tools v0.7.0 // indirect
2623
)
2724

2825
require (
29-
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
26+
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
3027
github.com/aymerick/douceur v0.2.0 // indirect
3128
github.com/cnf/structhash v0.0.0-20201127153200-e1b16c1ebc08 // indirect
3229
github.com/davecgh/go-spew v1.1.1 // indirect
3330
github.com/gorilla/css v1.0.0 // indirect
3431
github.com/json-iterator/go v1.1.12 // indirect
35-
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
32+
github.com/microcosm-cc/bluemonday v1.0.23 // indirect
3633
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3734
github.com/modern-go/reflect2 v1.0.2 // indirect
3835
github.com/pmezard/go-difflib v1.0.0 // indirect
39-
github.com/projectdiscovery/blackrock v0.0.0-20220628111055-35616c71b2dc // indirect
40-
github.com/projectdiscovery/utils v0.0.4-0.20221214110533-9f95ee986a54
41-
github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca // indirect
36+
github.com/projectdiscovery/blackrock v0.0.0-20221025011524-9e4efe804fb4 // indirect
37+
github.com/projectdiscovery/utils v0.0.16
38+
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
4239
go.uber.org/atomic v1.10.0 // indirect
4340
go.uber.org/multierr v1.8.0 // indirect
44-
golang.org/x/net v0.7.0 // indirect
45-
golang.org/x/sys v0.5.0 // indirect
46-
golang.org/x/text v0.7.0 // indirect
41+
golang.org/x/net v0.8.0 // indirect
42+
golang.org/x/sys v0.6.0 // indirect
43+
golang.org/x/text v0.8.0 // indirect
4744
gopkg.in/yaml.v3 v3.0.1 // indirect
4845
)
4946

5047
require (
48+
aead.dev/minisign v0.2.0 // indirect
49+
github.com/Masterminds/semver/v3 v3.2.0 // indirect
5150
github.com/Mzack9999/go-http-digest-auth-client v0.6.1-0.20220414142836-eb8883508809 // indirect
51+
github.com/VividCortex/ewma v1.2.0 // indirect
52+
github.com/alecthomas/chroma v0.10.0 // indirect
53+
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
54+
github.com/charmbracelet/glamour v0.6.0 // indirect
55+
github.com/cheggaaa/pb/v3 v3.1.2 // indirect
56+
github.com/dlclark/regexp2 v1.8.1 // indirect
5257
github.com/dsnet/compress v0.0.1 // indirect
53-
github.com/golang/snappy v0.0.3 // indirect
58+
github.com/fatih/color v1.14.1 // indirect
59+
github.com/golang/protobuf v1.5.2 // indirect
60+
github.com/golang/snappy v0.0.4 // indirect
61+
github.com/google/go-github/v30 v30.1.0 // indirect
62+
github.com/google/go-querystring v1.1.0 // indirect
63+
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
64+
github.com/mattn/go-colorable v0.1.13 // indirect
65+
github.com/mattn/go-isatty v0.0.17 // indirect
66+
github.com/mattn/go-runewidth v0.0.14 // indirect
5467
github.com/mholt/archiver v3.1.1+incompatible // indirect
68+
github.com/minio/selfupdate v0.6.0 // indirect
69+
github.com/muesli/reflow v0.3.0 // indirect
70+
github.com/muesli/termenv v0.15.1 // indirect
5571
github.com/nwaples/rardecode v1.1.0 // indirect
72+
github.com/olekukonko/tablewriter v0.0.5 // indirect
5673
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
74+
github.com/pkg/errors v0.9.1 // indirect
75+
github.com/rivo/uniseg v0.4.4 // indirect
5776
github.com/ulikunitz/xz v0.5.10 // indirect
5877
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
78+
github.com/yuin/goldmark v1.5.4 // indirect
79+
github.com/yuin/goldmark-emoji v1.0.1 // indirect
80+
golang.org/x/crypto v0.7.0 // indirect
81+
golang.org/x/oauth2 v0.5.0 // indirect
82+
google.golang.org/appengine v1.6.7 // indirect
83+
google.golang.org/protobuf v1.28.1 // indirect
5984
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
6085
)

0 commit comments

Comments
 (0)