sting8k / gowc

GoWC - Wildcard cleaner for MassDNS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoWC

A fast & accurate tool to clean wildcards from Massdns output file.
This is not a wrapper. A wrapper will have massdns's parameters fixed inside, what is not my style. Massdns should be used in flexible way.
Generally, algorithm is based on puredns, but there are few changes to make the algorithm more accurate and faster.

GoWC, first it will ask for NS of target domain (Ex. ns1..com, ns2..com). Then, belong with Google & CloudFlare DNS, these NS will be used to clean wildcards faster and more accurate. Why? Because sometimes, ns1 (of target) could accept wildcard subdomains, but ns2 doesn't that lead to False Positive. This tool will solve all these problems.

What's new

  • With GoWC v1.3.5, wildcard subdomains will be cleared faster, and more accurate. You now can set some more options:
  -s, --timeout= Timeout in seconds (default: 5)
  -q, --qps=     Queries per second (default: 10000)
  -r, --retries= Max retries each failed query (default: 1)
  • All progress info just be printed to stderr. Only valid subdomains will be printed to stdout.

Build

git clone https://github.com/sting8k/gowc
cd ./gowc/
go build ./cmd/

Or use the pre-built binary

Usage

./gowc -h

 ██████╗  ██████╗ ██╗    ██╗ ██████╗
██╔════╝ ██╔═══██╗██║    ██║██╔════╝
██║  ███╗██║   ██║██║ █╗ ██║██║     
██║   ██║██║   ██║██║███╗██║██║     
╚██████╔╝╚██████╔╝╚███╔███╔╝╚██████╗
 ╚═════╝  ╚═════╝  ╚══╝╚══╝  ╚═════╝
                         GoWC v1.3.5
Usage:
  cmd [OPTIONS]

Application Options:
  -m=            Massdns output file
  -d, --domain=  Domain of target
  -t, --threads= Threads (default: 20)
  -s, --timeout= Timeout in seconds (default: 5)
  -q, --qps=     Queries per second (default: 10000)
  -r, --retries= Max retries each failed query (default: 1)
  -o, --output=  Output file
  -i, --ip       Output with ips from massdns

Help Options:
  -h, --help     Show this help message

For normal output:

./gowc -d <target.com> -m <massdnsOutput> -o <output>

For output with ips of domains:

./gowc -d <target.com> -m <massdnsOutput> -o <output> -i

Example

Cleaned ~190k subdomains in just ~1.72s

./gowc -d vk.com -m vk.com_massdns.txt -o output.txt -i

 ██████╗  ██████╗ ██╗    ██╗ ██████╗
██╔════╝ ██╔═══██╗██║    ██║██╔════╝
██║  ███╗██║   ██║██║ █╗ ██║██║     
██║   ██║██║   ██║██║███╗██║██║     
╚██████╔╝╚██████╔╝╚███╔███╔╝╚██████╗
 ╚═════╝  ╚═════╝  ╚══╝╚══╝  ╚═════╝
                         GoWC v1.3.5
[+] Nameserver list: 
        + ns3.vkontakte.ru
        + ns4.vkontakte.ru
        + ns1.vkontakte.ru
        + ns2.vkontakte.ru
        + 8.8.8.8
        + 8.8.4.4
        + 1.1.1.1
        + 1.0.0.1
[+] Loaded 190468 subdomains in MassDns cache file.
[i] Sent 1856 queries. 190450 subdomains remaining ...
[!] Sent 2625 queries. All subdomains resolved.

[+] Wildcard domains:
        + 93.186.225.208
        + 87.240.137.158
        + 87.240.190.67
        + 87.240.190.72
        + 95.213.1.137
        + 87.240.139.194
        + 87.240.190.78
        + 217.69.139.17
        + 87.240.139.153
[i] Crafting output ...
[i] Saving output to file: output.txt

[!] Found 1053 valid subdomains in 1.720892373s

Output:

...
papi.vk.com [87.240.139.156]
post.vk.com [87.240.182.130]
ps.vk.com [pu.vk.com]
pu.vk.com [87.240.129.180, 87.240.137.139, 87.240.190.85, 87.240.190.74, 87.240.129.188]
queue.vk.com [87.240.129.131, 87.240.129.186, 93.186.225.201, 93.186.225.198, 87.240.129.129]
queuev4.vk.com [87.240.129.186, 93.186.225.201, 93.186.225.198, 87.240.129.129, 87.240.129.131]
reply.vk.com [95.142.194.149]
rim.vk.com [87.240.129.186]
security.vk.com [95.142.199.216]
smtp.vk.com [87.240.169.121]
storage2.vk.com [87.240.139.151]
streaming.vk.com [87.240.129.187, 87.240.190.64]
team.vk.com [185.29.130.131]
...

About

GoWC - Wildcard cleaner for MassDNS


Languages

Language:Go 100.0%