Knockpy OSINT Reconnaissance

Miguel Sampaio da Veiga
Hacker Toolbelt
Published in
2 min readApr 22, 2019

Knockpy is a python tool designed to enumerate subdomains on a target domain through a wordlist. It is designed to scan for DNS zone transfer and to try to bypass the wildcard DNS record automatically if it is enabled. Now knockpy supports queries to VirusTotal subdomains, you can setting the API_KEY within the config.json file.

Kudos to Gianni Amato for sharing this tool.

Dependencies

$ sudo apt-get install python-dnspython

Install

$ git clone https://github.com/guelfoweb/knock.git

$ cd knock

$ nano knockpy/config.json <- set your virustotal API_KEY

$ sudo python setup.py install

Simple usage

$ knockpy domain.com

Export to json

If you want to save full log like this one just type:

$ knockpy domain.com — json

Knock with wordlist and resolve

Get favorite wordlist

$ curl https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/shubs-subdomains.txt

$ knockpy domain.com -r -w shubdomains.txt

Knockpy is another OSINT tool to have in our toolbelt for reconnaissance.

Other Reconnaissance Tools

You can view more articles about other reconnaissance tools here.

--

--