Categories: Kali Linux

Knock – Tool Designed To Enumerate Subdomains

Knock 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.

$ knockpy domain.com

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

$ knockpy domain.com –json

Also Read:DjangoHunter : Tool To Identify Incorrectly Configured Django Applications

Knock Install

  • Dnspython

$ sudo apt-get install python-dnspython

  • Installing

$ git clone https://github.com/guelfoweb/knock.git
$ cd knock
$ nano knockpy/config.json <- set your virustotal API_KEY
$ sudo python setup.py install

Note : It’s recommended to use Google DNS: 8.8.8.8 and 8.8.4.4

  • Knockpy arguments

$ knockpy -h
usage: knockpy [-h] [-v] [-w WORDLIST] [-r] [-c] [-j] domain
knock subdomain scan
knockpy v.4.1
Author: Gianni ‘guelfoweb’ Amato
Github: https://github.com/guelfoweb/knock
positional arguments:
domain target to scan, like domain.com
optional arguments:
-h, –help show this help message and exit
-v, –version show program’s version number and exit
-w WORDLIST specific path to wordlist file
-r, –resolve resolve ip or domain name
-c, –csv save output in csv
-f, –csvfields add fields name to the first row of csv output file
-j, –json export full report in JSON
example:
knockpy domain.com
knockpy domain.com -w wordlist.txt
knockpy -r domain.com or IP
knockpy -c domain.com

Note : For virustotal subdomains support you can setting your API_KEY in the config.json file.

Credit: Gianni ‘guelfoweb’ Amato

R K

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

2 days ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

2 days ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

4 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

7 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago