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

use new censys api (v2) #929

Merged
merged 1 commit into from
Aug 9, 2023
Merged

use new censys api (v2) #929

merged 1 commit into from
Aug 9, 2023

Conversation

dogancanbakir
Copy link
Member

Closes #907.

Before:

$ go run . -d google.com -s censys

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/

                projectdiscovery.io

[INF] Current subfinder version v2.6.1 (latest)
[INF] Loading provider config from /home/vscode/.config/subfinder/provider-config.yaml
[INF] Enumerating subdomains for google.com
[INF] Found 0 subdomains for google.com in 13 seconds 183 milliseconds

After:

$ go run . -d google.com -s censys

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/

                projectdiscovery.io

[INF] Current subfinder version v2.6.1 (latest)
[INF] Loading provider config from /home/vscode/.config/subfinder/provider-config.yaml
[INF] Enumerating subdomains for google.com
sally.google.com
cloudrun.example.google.com
wordpress.google.com
cldstorage.google.com
nextcloud-lfbalv2.google.com
docker1.google.com
cn.google.com
lamp.google.com
lemp.google.com
wp.google.com
apacs.google.com
media.google.com
owncloud.google.com
findfresh-wordpress.google.com
debian-8-lamp.google.com
ct119.google.com
www-diysailor.google.com
www.google.com
google.com
nextcloud-lfbal.google.com
nextcloud.google.com
postgresql.google.com
next-cloud.google.com
www-nextcloud.google.com
srv-web.google.com
foo.google.com
db.google.com
test-wp.google.com
gitlab.google.com
bugzilla.google.com
drive.google.com
srv-wordpress.google.com
test-mediaserver.google.com
wp-conem.google.com
samba.google.com
openvpn01.google.com
ct100.google.com
[INF] Found 37 subdomains for google.com in 8 seconds 154 milliseconds

@dogancanbakir dogancanbakir self-assigned this Aug 8, 2023
@dogancanbakir dogancanbakir requested a review from Mzack9999 August 8, 2023 14:59
@dogancanbakir dogancanbakir linked an issue Aug 8, 2023 that may be closed by this pull request
@dogancanbakir dogancanbakir changed the title use new censys api use new censys api (v2) Aug 8, 2023
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

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

lgtm - I was thinking if we could reuse the url parsed, but as we are adding parameters, probably it's easier to just parse it each time and customize to avoid using previous data

@Mzack9999 Mzack9999 requested a review from ehsandeep August 9, 2023 13:09
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

./subfinder -d hackerone.com -s censys -v

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/

		projectdiscovery.io

[INF] Current subfinder version v2.6.1 (latest)
[INF] Loading provider config from /Users/geekboy/.config/subfinder/provider-config.yaml
[INF] Enumerating subdomains for hackerone.com
[censys] api.hackerone.com
[censys] www.hackerone.com
[censys] hackerone.com
[censys] invalid.hackerone.com
[censys] go.hackerone.com
[censys] info.hackerone.com
[censys] links.hackerone.com
[censys] support.hackerone.com
[censys] gslink.hackerone.com
[censys] events.hackerone.com
[censys] mta-sts.forwarding.hackerone.com
[censys] mta-sts.managed.hackerone.com
[censys] design.hackerone.com
[censys] docs.hackerone.com
[censys] mta-sts.hackerone.com
design.hackerone.com
api.hackerone.com
links.hackerone.com
events.hackerone.com
mta-sts.managed.hackerone.com
go.hackerone.com
mta-sts.hackerone.com
www.hackerone.com
hackerone.com
gslink.hackerone.com
docs.hackerone.com
invalid.hackerone.com
info.hackerone.com
support.hackerone.com
mta-sts.forwarding.hackerone.com
[INF] Found 15 subdomains for hackerone.com in 5 seconds 783 milliseconds

@ehsandeep ehsandeep merged commit 8c48cb3 into dev Aug 9, 2023
@ehsandeep ehsandeep deleted the use_new_censys_api branch August 9, 2023 19:18
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.

[Issue] censys API no longer working
3 participants