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 support for VirusTotal using APIv3 #373

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0x0M03II
Copy link

@0x0M03II 0x0M03II commented May 30, 2024

Running the master branch of Sublist3r returns the error displayed below. The Virustotal URL is no longer valid and can be replaced to use the API (version 3).

[!] Error: Virustotal probably now is blocking our requests."

These changes allow users to pass their Virustoal API key via the command-line flag. The API key will be passed to the Virustotal enumerator object. The flag is not required; rather, it defaults to None, and a value check is included in the Virustotal class, leaving the remaining objects untouched.

Alternatively, Virustotal can be completely removed from the list of supported engines, or you can mark this repo as archived to indicate that it is no longer supported. Ideally, this PR can be merged to support the continued use of Virtustotal.

Should you no longer support Virustotal, supported_engines and chosenEnums in the main() function should be modified to exclude Virustotal; it will not work without modifying the URL.

def main():
    supported_engines = { ..., 'virustotal': Virustotal, ...  } # remove VT
    
    if engines is None:
        chosenEnums = [ ..., Virustotal, ... ] # remove VT

I have tested changes using Python 3.11.2 (Linux). If there is interest in merging this PR, I can test other Python versions and the Windows OS.

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