Skip to content

Bug: VirusTotal subdomain API call uses wrong parameter #111

@atenreiro

Description

@atenreiro

Description

The --subdomains feature is broken due to an API mismatch.

Location

  • File: opensquat.py, line 87

Problem

subdomains = vt.VirusTotal().main(domain, "subdomains")

The main() method signature in vt.py is:

def main(self, domain, api_key_file="vt_key.txt"):

The string "subdomains" is being passed as the api_key_file parameter, not as a mode selector.

Suggested Fix

Refactor vt.py to support a mode parameter or create a separate method for subdomain lookups.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions