Katana- Python Tool For Google Hacking

superior_hosting_service

katana

Katana- A Python Tool For Google Hacking


Katana-ds (ds for dork_scanner) is a simple python tool that automates Google Hacking/Dorking and supports TOR. It becomes a more powerful in combination with GHDB 

Installation:

Use the package manager pip to install requirements.

cd Katana
python3 pip install -r requirments
python3 katana-ds.py

Usage:

cd Katana
python3 katana-ds.py -h (for help)
Options :
-g :for google mode
-s :for scada mode
-t :for tor mode
-p :for proxy mode
-b :for bitly mode

Google Mode:

Google mode gives you 2 inputs the “Dork” and the “TLD” (Top Level Domain) that gives you the ability to search in specific countries.

e.g : com for Usa / co.ma for Morocoo / be for Belgium

For more please see the included TLDs.txt file.

google-m

Scada Mode:

Scada mode search in google for online PLCs this actually uses multiple requests so your IP will be blocked by Google so changing the TLD will solve the problem and the script provides inputs for that.

Note: this is just an example actually it shows a lot of results:

scada-m

Example of Allen-Bradley PLC dashboard found using Scada Mode:

Tor Mode:

Tor mode gives you one input which is the search query, but before you should have tor proxy running on port 9050 this time there is no IP blocking the script search in 3 tor search engines Phobos, Tor66 and Tordex (more will be added).

Note: this is just an example actually it shows a lot of results:

tor_mode

What if:

  • The script print ‘Error too many requests’: change the TLD
  • Changing the TLD doesn’t work: change your IP by disconnecting and reconnecting again
  • Tor mode show ‘Failed to establish a new connection’: make sure that tor proxy up and running on port 9050

Proxy Mode:

Proxy mode finds proxy servers and print them. It will print 25 different Proxy server each time:

proxy_mode

Bitly Mode: (In Development)

Find interesting shorted links that sometimes lead to interesting website pages. The scripts print currently 10 bitly links with their responses (script still in development if you got connection error or so many 404,403 just run it again).

bitly_mode