Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add google custom search api #439

Merged
merged 18 commits into from
May 24, 2024
Merged

Conversation

Co5mos
Copy link
Contributor

@Co5mos Co5mos commented Mar 14, 2024

add google custom search api with -gg

MetzinAround and others added 13 commits June 2, 2023 01:56
…overy#308)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.17.0.
- [Commits](golang/net@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…iscovery#367)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](golang/crypto@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ojectdiscovery#383)

Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](cloudflare/circl@v1.3.3...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rojectdiscovery#384)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.38.1 to 0.38.2.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](quic-go/quic-go@v0.38.1...v0.38.2)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@dogancanbakir
Copy link
Member

sources/agent/google/google.go Outdated Show resolved Hide resolved
sources/agent/google/google.go Outdated Show resolved Hide resolved
sources/agent/google/google.go Outdated Show resolved Hide resolved
sources/agent/google/request.go Show resolved Hide resolved
@dogancanbakir
Copy link
Member

go.mod Outdated Show resolved Hide resolved
@dogancanbakir
Copy link
Member

$ go run . -gg -q "site:*.hackerone.com" -v

  __  ______  _________ _   _____  _____
 / / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ /  __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/

		projectdiscovery.io

[INF] Current uncover version v1.0.7 (latest)

I've followed the link in the README. There is no result. However, I do get a result when I make a GET request with Postman, for example. Am I missing something?

@Co5mos
Copy link
Contributor Author

Co5mos commented Mar 22, 2024

I always use the uncover -gg "site:*.hackerone.com" -v command, and it seems that the -q parameter cannot be used in this way.
For example, when I use uncover -s -q "hackerone.com" -v, after debugging, I found the following result. I'm not sure if this is a bug or not.

image

@Co5mos
Copy link
Contributor Author

Co5mos commented Mar 22, 2024

Then you may need to use uncover -gg "site:*.hackerone.com" -v -f url to obtain different URLs.

@dogancanbakir
Copy link
Member

My bad, yes it should be uncover -gg "QUERY"

@dogancanbakir
Copy link
Member

Have you also experienced the duplicate output issue?"

$ go run . -gg "site:*.hackerone.com"

  __  ______  _________ _   _____  _____
 / / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ /  __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/

		projectdiscovery.io

[INF] Current uncover version v1.0.7 (latest)
docs.hackerone.com
docs.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
www.hackerone.com
...

Copy link
Member

@dogancanbakir dogancanbakir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - we should create a follow-up issue for duplicate output

@dogancanbakir
Copy link
Member

duplicate output solved in #475

@ehsandeep ehsandeep merged commit bb2c827 into projectdiscovery:dev May 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants