Skip to content

andreyglauzer/SearchSubdomains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearchSubdomains

Search for all available subdomains using the certificate used or even using virustotal.

Settings

This script relies on censys.io to work, so create a free account and get the API information. To create an account you can use a temporary email.

apid: 'APPID'
secret: 'SECRETID'

If you know your public IP CIDR and would like to know which subdomains are within your network, mark checkcidr as True, and provide your CIDR as the example below:

CIDR:
  - group:
      name: 'MyCIDR'
      id: '10.1.0.0/24,10.0.0.0/24'

For location, ANS, and ISP information I used the geoip2 offiline as it does not have to use any API and is not dependent on daily limits.

These files should be downloaded and placed in the utils\* folder, such as GeoLite2-ASN.mmdb, GeoLite2-City.mmdb and GeoLite2-Country.mmdb.

Usage

To use the script create a file with all the domains you want to discover, one below the other, like the following example:

google.com.br
terra.com.br

After creating your file, use the following command to get started.

python SplunkSubDomains.py --config utils\config\config.yml --target target.txt

Output

{  
   "domain":"petrobras.com.br",
   "type":"Public",
   "subdomain":"medusa.petrobras.com.br",
   "local":"Null",
   "status_code":"404",
   "ipv4":"164.85.66.15",
   "autonomous_system_number":"ASN23074",
   "autonomous_system_organization":"Petróleo Brasileiro S/A - Petrobras",
   "iso_code":"BR",
   "country_name":"Brazil",
   "most_specific":"Null",
   "city_name":"Null",
   "latitude":-22.8305,
   "longitude":-43.2192
}

About

Search for subdomains so you know your attack surface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages