Skip to content

Respect --limit for VirusTotal results#2404

Open
ShivammVishwakarma wants to merge 1 commit into
laramies:masterfrom
ShivammVishwakarma:improve-virustotal
Open

Respect --limit for VirusTotal results#2404
ShivammVishwakarma wants to merge 1 commit into
laramies:masterfrom
ShivammVishwakarma:improve-virustotal

Conversation

@ShivammVishwakarma

Copy link
Copy Markdown

Summary

This pull request fixes the VirusTotal backend so that it respects the user-supplied --limit (-l) option.

Changes

  • Pass the limit value from __main__.py to SearchVirustotal.
  • Stop requesting additional VirusTotal pages once the requested number of unique hosts has been collected.
  • Trim the final hostname list to the requested limit before returning it.

Testing

Verified with:

theHarvester -d openai.com -b virustotal -l 5

The output now returns exactly 5 hosts, matching the requested limit.

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.

1 participant