Skip to content

Commit 3ad5bf0

Browse files
committed
Merge branch 'dev'
2 parents dc98f26 + 88a2b29 commit 3ad5bf0

File tree

23 files changed

+843
-102
lines changed

23 files changed

+843
-102
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macOS-13]
17-
go-version: [1.20.x]
17+
go-version: [1.21.x]
1818
steps:
1919
- name: Set up Go
2020
uses: actions/setup-go@v4

.github/workflows/lint-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.20.x
18+
go-version: 1.21.x
1919

2020
- name: Checkout code
2121
uses: actions/checkout@v3

.github/workflows/provider-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v4
1515
with:
16-
go-version: 1.20.x
16+
go-version: 1.21.x
1717

1818
- name: Check out code
1919
uses: actions/checkout@v3

.github/workflows/release-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: "Set up Go"
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.20.x
21+
go-version: 1.21.x
2222

2323
- name: "Create release on GitHub"
2424
uses: goreleaser/goreleaser-action@v4

.github/workflows/release-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v4
2222
with:
23-
go-version: 1.20.x
23+
go-version: 1.21.x
2424

2525
- name: release test
2626
uses: goreleaser/goreleaser-action@v4

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base
2-
FROM golang:1.20.5-alpine AS builder
2+
FROM golang:1.21.4-alpine AS builder
33
RUN apk add --no-cache git build-base
44
WORKDIR /app
55
COPY . /app

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@
4747
- **[CriminalIP](https://www.criminalip.io)**
4848
- **[PublicWWW](https://publicwww.com)**
4949
- **[HunterHow](https://hunter.how)**
50+
- **[Google](https://www.google.com)**
5051
- Multiple API key input support
5152
- Automatic API key randomization
5253
- **stdin** / **stdout** support for input
5354

5455
## Installation Instructions
5556

56-
uncover requires **go1.20** to install successfully. Run the following command to get the repo -
57+
uncover requires **go1.21** to install successfully. Run the following command to get the repo -
5758

5859
```sh
5960
go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest
@@ -74,7 +75,7 @@ Usage:
7475
Flags:
7576
INPUT:
7677
-q, -query string[] search query, supports: stdin,file,config input (example: -q 'example query', -q 'query.txt')
77-
-e, -engine string[] search engine to query (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,criminalip,publicwww,hunterhow) (default shodan)
78+
-e, -engine string[] search engine to query (shodan,shodan-idb,fofa,censys,quake,hunter,zoomeye,netlas,criminalip,publicwww,hunterhow,google) (default shodan)
7879

7980
SEARCH-ENGINE:
8081
-s, -shodan string[] search query for shodan (example: -shodan 'query.txt')
@@ -88,6 +89,7 @@ SEARCH-ENGINE:
8889
-cl, -criminalip string[] search query for criminalip (example: -criminalip 'query.txt')
8990
-pw, -publicwww string[] search query for publicwww (example: -publicwww 'query.txt')
9091
-hh, -hunterhow string[] search query for hunterhow (example: -hunterhow 'query.txt')
92+
-gg, -google string[] search query for google (example: -google 'query.txt')
9193

9294
CONFIG:
9395
-pc, -provider string provider configuration file (default "$CONFIG/uncover/provider-config.yaml")
@@ -153,6 +155,9 @@ publicwww:
153155
hunterhow:
154156
- HUNTERHOW_API_KEY_1
155157
- HUNTERHOW_API_KEY_2
158+
google:
159+
- GOOGLE_API_KEY_1:Google_API_CX_1
160+
- GOOGLE_API_KEY_2:Google_API_CX_2
156161
```
157162
158163
When multiple keys/credentials are specified for same provider in the config file, random key will be used for each execution.
@@ -172,9 +177,11 @@ export NETLAS_API_KEY=xxx
172177
export CRIMINALIP_API_KEY=xxx
173178
export PUBLICWWW_API_KEY=xxx
174179
export HUNTERHOW_API_KEY=xxx
180+
export GOOGLE_API_KEY=xxx
181+
export GOOGLE_API_CX=xxx
175182
```
176183

177-
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).
184+
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), [Publicwww](https://publicwww.com/profile/signup.html) and Google [[1]](https://developers.google.com/custom-search/v1/introduction#identify_your_application_to_google_with_api_key),[[2]](https://programmablesearchengine.google.com/controlpanel/create).
178185

179186
## Running Uncover
180187

go.mod

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/projectdiscovery/uncover
22

3-
go 1.20
3+
go 1.21
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
99
github.com/projectdiscovery/fdmax v0.0.4
10-
github.com/projectdiscovery/goflags v0.1.23
11-
github.com/projectdiscovery/gologger v1.1.11
12-
github.com/projectdiscovery/mapcidr v1.1.2
13-
github.com/projectdiscovery/ratelimit v0.0.12
14-
github.com/projectdiscovery/retryablehttp-go v1.0.31
15-
github.com/stretchr/testify v1.8.4
10+
github.com/projectdiscovery/goflags v0.1.53
11+
github.com/projectdiscovery/gologger v1.1.12
12+
github.com/projectdiscovery/mapcidr v1.1.34
13+
github.com/projectdiscovery/ratelimit v0.0.41
14+
github.com/projectdiscovery/retryablehttp-go v1.0.60
15+
github.com/stretchr/testify v1.9.0
1616
)
1717

1818
require (
@@ -34,58 +34,69 @@ require (
3434
github.com/modern-go/reflect2 v1.0.2 // indirect
3535
github.com/pmezard/go-difflib v1.0.0 // indirect
3636
github.com/projectdiscovery/blackrock v0.0.1 // indirect
37-
github.com/projectdiscovery/utils v0.0.58
37+
github.com/projectdiscovery/utils v0.0.94
3838
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
3939
go.uber.org/multierr v1.11.0 // indirect
40-
golang.org/x/net v0.17.0 // indirect
41-
golang.org/x/sys v0.15.0 // indirect
40+
golang.org/x/net v0.23.0 // indirect
41+
golang.org/x/sys v0.18.0 // indirect
4242
golang.org/x/text v0.14.0 // indirect
4343
gopkg.in/yaml.v3 v3.0.1 // indirect
4444
)
4545

4646
require (
4747
aead.dev/minisign v0.2.0 // indirect
4848
github.com/Masterminds/semver/v3 v3.2.1 // indirect
49+
github.com/Mzack9999/gcache v0.0.0-20230410081825-519e28eab057 // indirect
4950
github.com/Mzack9999/go-http-digest-auth-client v0.6.1-0.20220414142836-eb8883508809 // indirect
5051
github.com/VividCortex/ewma v1.2.0 // indirect
5152
github.com/akrylysov/pogreb v0.10.1 // indirect
5253
github.com/alecthomas/chroma v0.10.0 // indirect
53-
github.com/andybalholm/brotli v1.0.5 // indirect
54+
github.com/andybalholm/brotli v1.0.6 // indirect
5455
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
5556
github.com/charmbracelet/glamour v0.6.0 // indirect
5657
github.com/cheggaaa/pb/v3 v3.1.4 // indirect
5758
github.com/cloudflare/circl v1.3.7 // indirect
58-
github.com/denisbrodbeck/machineid v1.0.1 // indirect
5959
github.com/dimchansky/utfbom v1.1.1 // indirect
6060
github.com/dlclark/regexp2 v1.8.1 // indirect
61-
github.com/dsnet/compress v0.0.1 // indirect
61+
github.com/docker/go-units v0.5.0 // indirect
62+
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
6263
github.com/fatih/color v1.15.0 // indirect
6364
github.com/gaukas/godicttls v0.0.4 // indirect
64-
github.com/golang/protobuf v1.5.3 // indirect
65+
github.com/go-logr/logr v1.4.1 // indirect
66+
github.com/go-ole/go-ole v1.2.6 // indirect
67+
github.com/golang/protobuf v1.5.4 // indirect
6568
github.com/golang/snappy v0.0.4 // indirect
69+
github.com/google/go-cmp v0.6.0 // indirect
6670
github.com/google/go-github/v30 v30.1.0 // indirect
6771
github.com/google/go-querystring v1.1.0 // indirect
72+
github.com/google/uuid v1.3.1 // indirect
6873
github.com/klauspost/compress v1.16.7 // indirect
74+
github.com/klauspost/pgzip v1.2.5 // indirect
6975
github.com/kr/pretty v0.3.1 // indirect
7076
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
77+
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
7178
github.com/mattn/go-colorable v0.1.13 // indirect
7279
github.com/mattn/go-isatty v0.0.19 // indirect
7380
github.com/mattn/go-runewidth v0.0.14 // indirect
74-
github.com/mholt/archiver v3.1.1+incompatible // indirect
75-
github.com/minio/selfupdate v0.6.0 // indirect
81+
github.com/mholt/archiver/v3 v3.5.1 // indirect
82+
github.com/minio/selfupdate v0.6.1-0.20230907112617-f11e74f84ca7 // indirect
7683
github.com/muesli/reflow v0.3.0 // indirect
7784
github.com/muesli/termenv v0.15.1 // indirect
7885
github.com/nwaples/rardecode v1.1.3 // indirect
7986
github.com/olekukonko/tablewriter v0.0.5 // indirect
80-
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
87+
github.com/pierrec/lz4/v4 v4.1.2 // indirect
8188
github.com/pkg/errors v0.9.1 // indirect
82-
github.com/projectdiscovery/fastdialer v0.0.40 // indirect
83-
github.com/projectdiscovery/hmap v0.0.22 // indirect
84-
github.com/projectdiscovery/networkpolicy v0.0.6 // indirect
85-
github.com/projectdiscovery/retryabledns v1.0.38 // indirect
89+
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
90+
github.com/projectdiscovery/fastdialer v0.0.72 // indirect
91+
github.com/projectdiscovery/hmap v0.0.43 // indirect
92+
github.com/projectdiscovery/machineid v0.0.0-20240226150047-2e2c51e35983 // indirect
93+
github.com/projectdiscovery/networkpolicy v0.0.8 // indirect
94+
github.com/projectdiscovery/retryabledns v1.0.59 // indirect
8695
github.com/quic-go/quic-go v0.42.0 // indirect
8796
github.com/refraction-networking/utls v1.5.4 // indirect
8897
github.com/rivo/uniseg v0.4.4 // indirect
98+
github.com/shirou/gopsutil/v3 v3.23.7 // indirect
99+
github.com/shoenig/go-m1cpu v0.1.6 // indirect
89100
github.com/syndtr/goleveldb v1.0.0 // indirect
90101
github.com/tidwall/btree v1.6.0 // indirect
91102
github.com/tidwall/buntdb v1.3.0 // indirect
@@ -95,19 +106,22 @@ require (
95106
github.com/tidwall/pretty v1.2.1 // indirect
96107
github.com/tidwall/rtred v0.1.2 // indirect
97108
github.com/tidwall/tinyqueue v0.1.1 // indirect
109+
github.com/tklauser/go-sysconf v0.3.12 // indirect
110+
github.com/tklauser/numcpus v0.6.1 // indirect
98111
github.com/ulikunitz/xz v0.5.11 // indirect
99-
github.com/ulule/deepcopier v0.0.0-20200430083143-45decc6639b6 // indirect
100112
github.com/weppos/publicsuffix-go v0.30.2-0.20230730094716-a20f9abcc222 // indirect
101113
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
102114
github.com/yl2chen/cidranger v1.0.2 // indirect
103115
github.com/yuin/goldmark v1.5.4 // indirect
104116
github.com/yuin/goldmark-emoji v1.0.1 // indirect
117+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
118+
github.com/zcalusic/sysinfo v1.0.2 // indirect
105119
github.com/zmap/rc2 v0.0.0-20190804163417-abaa70531248 // indirect
106120
github.com/zmap/zcrypto v0.0.0-20230814193918-dbe676986518 // indirect
107121
go.etcd.io/bbolt v1.3.7 // indirect
108-
golang.org/x/crypto v0.17.0 // indirect
109-
golang.org/x/oauth2 v0.11.0 // indirect
110-
google.golang.org/appengine v1.6.7 // indirect
122+
golang.org/x/crypto v0.21.0 // indirect
123+
golang.org/x/oauth2 v0.18.0 // indirect
124+
google.golang.org/appengine v1.6.8 // indirect
111125
google.golang.org/protobuf v1.33.0 // indirect
112126
gopkg.in/djherbis/times.v1 v1.3.0 // indirect
113127
)

0 commit comments

Comments
 (0)