Skip to content

dfirsec/sub_enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Subdomain Enumerator

Generic badge Twitter

sub_enum.py Retrieve subdomains from given domain

Installation

git clone https://github.com/dfirsec/sub_enum.git
cd sub_enum
pip install -r requirements.txt

Usage

python sub_enum.py example.com

      _____       __       ______
     / ___/__  __/ /_     / ____/___  __  ______ ___
     \__ \/ / / / __ \   / __/ / __ \/ / / / __ `__ \
    ___/ / /_/ / /_/ /  / /___/ / / / /_/ / / / / / /
   /____/\__,_/_.___/  /_____/_/ /_/\__,_/_/ /_/ /_/


Gathering subdomains...
[ Quick Results -- bufferover.run ]
www.example.com                              : 93.184.216.34

[ Trying Web Archive -- archive.org ]
⮩ Discovered: mumble.example.com
⮩ Discovered: user:[email protected]
⮩ Discovered: prd.example.com
⮩ Discovered: assets.example.com
⮩ Discovered: my_name:[email protected]
⮩ Discovered: another.example.com
⮩ Discovered: cal.example.com
⮩ Discovered: the.example.com
⮩ Discovered: api.example.com
⮩ Discovered: gitlab-ci-token:[email protected]
⮩ Discovered: old.example.com
⮩ Discovered: user:[email protected]
⮩ Discovered: migration.example.com
⮩ Discovered: username:[email protected]
⮩ Discovered: maps.example.com
⮩ Discovered: user%[email protected]
...

[ Performing Lookups -- takes a little longer ]
⮩  Discovered: nowhereatall.example.com
⮩  Discovered: konferencje.example.com
⮩  Discovered: dev.example.com
⮩  Discovered: api.example.com
⮩  Discovered: ftp.example.com
⮩  Discovered: www.example.com
⮩  Discovered: ns2.example.com
⮩  Discovered: m.testexample.com
⮩  Discovered: conference.example.com
⮩  Discovered: gate.example.com
⮩  Discovered: ns1.example.com
⮩  Discovered: sales.example.com
⮩  Discovered: support.example.com
⮩  Discovered: products.example.com

+---------------+-------------+-----------------+
|     Subdomain | Domain      | Resolved        |
+---------------+-------------+-----------------+
|          api. | example.com | None            |
|   conference. | example.com | None            |
|          dev. | example.com | None            |
|          ftp. | example.com | None            |
|         gate. | example.com | None            |
|  konferencje. | example.com | None            |
|        m.test | example.com | 69.172.201.153  |
| nowhereatall. | example.com | None            |
|          ns1. | example.com | None            |
|          ns2. | example.com | None            |
|     products. | example.com | None            |
|        sales. | example.com | None            |
|      support. | example.com | None            |
|          www. | example.com | 93.184.216.34   |
+---------------+-------------+-----------------+