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

[Issue] Problem with two APIs #1418

Closed
Bundy01 opened this issue Oct 23, 2024 · 8 comments · Fixed by #1421
Closed

[Issue] Problem with two APIs #1418

Bundy01 opened this issue Oct 23, 2024 · 8 comments · Fixed by #1421
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Bundy01
Copy link

Bundy01 commented Oct 23, 2024

Describe the bug

[WRN] Could not run source hunter: 令牌过期 (trad: expired token)

I recreated the tokens, without success.

I've contacted GitHub and Hunter and it looks like it's from SubFinder.

Are you observing the same thing?

Subfinder version
Current Version: v2.6.6

Complete command you used to reproduce this
subfinder -nW -dL FILE -s github_or_hunter -v

Config file
The uncommented lines:

sources: [alienvault,anubis,binaryedge,chaos,crtsh,digitorus,dnsdumpster,github,hackertarget,netlas,rapiddns,securitytrails,virustotal,waybackarchive]
rate-limits: ["github=83/m", "hackertarget=2/s", "netlas=1/s", "securitytrails=1/s", "sitedossier=8/m", "virustotal=4/m", "waybackarchive=15/m"]
t: 15
ip: false
config: /home/***/.config/subfinder/config.yaml
provider-config: /home/***/.config/subfinder/provider-config.yaml
r: [149.112.112.10,1.0.0.1,77.88.8.8]
exclude-ip: true
stats: true
timeout: 30
max-time: 30
@GeorginaReeder GeorginaReeder added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 24, 2024
@dogancanbakir dogancanbakir self-assigned this Oct 24, 2024
@dogancanbakir
Copy link
Member

I replied to the discussion for GitHub. Looking for hunter API key, we can speed up the debugging process by you reaching out over Discord - @dogancanbakir is my handle.

@Bundy01
Copy link
Author

Bundy01 commented Oct 25, 2024

@dogancanbakir for GitHub API, it's possible that it's due to the limitation of the latter. I've put the token's limitations in the discussion.

@dogancanbakir
Copy link
Member

I’ve sent a fix for GitHub. Could you test it and let me know the results? #1421

@Bundy01
Copy link
Author

Bundy01 commented Oct 26, 2024

@dogancanbakir

I'm seeing the same time savings as in the PR example.

However, Chaos API for example, is faster for this domain. Perhaps there's still some progress to be made, or is it due to Github API?
Tomorrow or Monday at the latest, I need to run a scan with 122 domains, which took me about 12 hours with Github API included.

I'll tell you the time difference then.
Thanks.

@Bundy01
Copy link
Author

Bundy01 commented Oct 27, 2024

I'm back to say that the scan took me 4h35 instead of about 12h.
Despite adding the commoncrawl,leakix and subdomaincenter sources. I also set goroutines back from 15 to 10.

I'd like to take this opportunity to ask a question about this option. Should the value be equal to the number of sources or could it create errors in sources that are limited in requests if the value is too high?

The commit is really good, but I've noticed that three times, the github stats had negative values.

@dogancanbakir dogancanbakir linked a pull request Oct 28, 2024 that will close this issue
@dogancanbakir
Copy link
Member

The -t flag is used for subdomain resolution rather than controlling the go routines in sources. And for the negative values, could you create another issue for me to investigate? Thanks.

@Bundy01
Copy link
Author

Bundy01 commented Nov 4, 2024

I noticed that when playing with the -t option, the result with the -nW option changed enormously.
Is this normal?

@dogancanbakir
Copy link
Member

Yes, as I said before the -t flag is used for subdomain resolution (active) rather than controlling the go routines in sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants