Katana : A Python Tool For Google Hacking

Katana ds (ds for dork_scanner) is a simple python tool that automates Google Hacking/Dorking and support Tor. It becomes a more powerfull in combination with GHDB.

Installation

Use the package manager pip to install requirements

cd Katana
python3 -m pip install -r requirements.txt
python3 kds.py

Usage

cd Katana
python3 kds.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 : (supported by python 3.7 and 3.8)

Google mode gives you 2 inputs the “Dork” and the “TLD” (Top Level Domain) that gives you 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.

Scada Mode : (supported by python 3.7 and 3.8)

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

-!> this is just an example actually it shows a lot of results

Example of Allen-Bradley PLC dashboard found using Scada Mode

Tor Mode : (supported by python 3.7 and 3.8)

Tor mode gives you 1 input wich 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)

-!> this is just an example actually it shows a lot of results

What if :

  • The script print ‘Error too many requests’ : change the TLD
  • Changing the TLD don’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 :(supported by python 3.7 only )

Proxy mode find proxy servers and print them it will print 25 Different Proxy server Each time

Bitly Mode : (In Development) (supported by python 3.7 and 3.8)

Find intersting shorted links that sometimes lead to intersting website pages the script 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)

Credit: LuongPhuHoa

R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

1 week ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

2 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago