This Python script uses the VirusTotal API to recursively fetch subdomains of a given domain. It is designed to help security researchers discover subdomains.
- Python -
3.x - Python library -
requests - VirusTotal API Key
-
Clone this repository:
git clone https://github.com/yourusername/argveta.git cd argveta -
Install the required dependencies:
pip install requests
-
Obtain an API key from VirusTotal.
-
Set the API key as an environment variable:
export VT_API_KEY='api_key1'
| Option | Description | Default |
|---|---|---|
domain |
The target domain to find subdomains for | Required |
-o, --output |
Output file to save results | subdomains.json |
-f, --format |
Output format (json, csv, txt) |
csv |
-s, --sleep |
Time delay (in seconds) between API requests | 15 |
Run the script with the target domain:
python3 argveta.py <domain>To discover subdomains for example.com, run:
python3 argveta.py example.com
The script will output the discovered subdomains directly in the terminal and saves them in subdomains.csv (default)
Starting subdomain discovery for: example.com
sub1.example.com
sub2.example.com
sub3.sub2.example.com
...
**Free users** have a limited request quota (**4 lookups per minute, 500 per day**).
**Premium users** have higher rate limits but still need to avoid excessive requests.
** VirusTotal suggests avoiding the use of multiple API keys. 🤷♂️