tebbaax / katana Goto Github PK
View Code? Open in Web Editor NEWPython Tool that gives you the ability to run Advanced Google Queries (Known as Google Dorks - Google Dorking)
License: MIT License
Python Tool that gives you the ability to run Advanced Google Queries (Known as Google Dorks - Google Dorking)
License: MIT License
I am getting an error given below(any suggestion):
.
Traceback (most recent call last):
File "katana-ds.py", line 66, in
from Modes import Gmode
File "/root/tools/Katana/Modes/Gmode.py", line 69, in
for gamma in search(query, tld=beta, num=7,pause=2):
File "/usr/local/lib/python3.7/dist-packages/googlesearch/init.py", line 312, in search
html = get_page(url, user_agent)
File "/usr/local/lib/python3.7/dist-packages/googlesearch/init.py", line 176, in get_page
response = urlopen(request)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 563, in error
result = self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
Hello! Are you can change user-agent for requests to Google? If you set to Googlebot 2.1
the problem with urllib.error.HTTPError: HTTP Error 429: Too Many Requests
seems to be solved in Firefox but i don't know how to set it in Katana :D.
instead of using single dork can you make it use from file
The module Twisted seems deprecated and won't to install.
Please check it.
File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 429: Too Many Requests
proxybroker gagal
am getting this error
Traceback (most recent call last):
File "kds.py", line 67, in
from Modes import Scada
File "/home/###/Desktop/bee/Katana/Modes/Scada.py", line 94, in
for gamma in search(query, tld=beta,stop=50, num=10,pause=2):
TypeError: search() got an unexpected keyword argument 'tld'
When using the "-t :tor mode" flag, the program crashes for every query I make, this is because the Tor66 service is down and is no longer running.
http://tor77orrbgejplwp.onion/search?q=" + xquery + "&sorttype=rel&page=1" ==> Invalid Onionsite Address
I really never have written an issue before so sorry about this if it appears to be bad:
My understanding is the developers have not updated the onions from v2 to v3 which obviously would create a fatal error.
So can anyone please tell me if this maybe the issue and or if I can fix the issue myself and how I should go about it... Here's full output:
[+] Searching in "Phobos" http://phobosxilamwcg75xt22id7aywkzol6q6rfl2flipcqoc4e4ahima5id.onion...
[+] Done from Phobos
[+] Searching in "TOR66" http://tor77orrbgejplwp.onion...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/socks.py", line 809, in connect
negotiate(self, dest_addr, dest_port)
File "/usr/lib/python3/dist-packages/socks.py", line 443, in _negotiate_SOCKS5
self.proxy_peername, self.proxy_sockname = self._SOCKS5_request(
File "/usr/lib/python3/dist-packages/socks.py", line 533, in _SOCKS5_request
raise SOCKS5Error("{:#04x}: {}".format(status, error))
socks.SOCKS5Error: 0x01: General SOCKS server failure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/contrib/socks.py", line 90, in _new_conn
conn = socks.create_connection(
File "/usr/lib/python3/dist-packages/socks.py", line 209, in create_connection
raise err
File "/usr/lib/python3/dist-packages/socks.py", line 199, in create_connection
sock.connect((remote_host, remote_port))
File "/usr/lib/python3/dist-packages/socks.py", line 47, in wrapper
return function(*args, **kwargs)
File "/usr/lib/python3/dist-packages/socks.py", line 814, in connect
raise GeneralProxyError("Socket error", error)
socks.GeneralProxyError: Socket error: 0x01: General SOCKS server failure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/connection.py", line 184, in connect
conn = self._new_conn()
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/contrib/socks.py", line 121, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.contrib.socks.SOCKSConnection object at 0x7f2ed4b6ab30>: Failed to establish a new connection: 0x01: General SOCKS server failure
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.10/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/home/kali/.local/lib/python3.10/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: SOCKSHTTPConnectionPool(host='tor77orrbgejplwp.onion', port=80): Max retries exceeded with url: /search?q=index&sorttype=rel&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2ed4b6ab30>: Failed to establish a new connection: 0x01: General SOCKS server failure'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/Desktop/Katana/kds.py", line 71, in <module>
from Modes import Tor
File "/home/kali/Desktop/Katana/Modes/Tor.py", line 154, in <module>
session.get("http://tor77orrbgejplwp.onion/search?q=" + xquery + "&sorttype=rel&page=1" )
File "/home/kali/.local/lib/python3.10/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/kali/.local/lib/python3.10/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/kali/.local/lib/python3.10/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/kali/.local/lib/python3.10/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: SOCKSHTTPConnectionPool(host='tor77orrbgejplwp.onion', port=80): Max retries exceeded with url: /search?q=index&sorttype=rel&page=1 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7f2ed4b6ab30>: Failed to establish a new connection: 0x01: General SOCKS server failure'))
Anyway here's some new onions that should be added/updated:
http://3bbad7fauom4d6sgppalyqddsqbf5u5p56b5k5uk2zxsy3d6ey2jobad.onion/ - OnionLand
http://wapabp2pnqczbxq4dqdo7txexhkqjzazmvrljxijtd5s2cohvejf4nqd.onion/ - Tor Search
http://juhanurmihxlp77nkq76byazcldy2hlmovfu2epvl5ankdibsot4csyd.onion/ Ahima
http://tordexu73joywapk2txdr54jed4imqledpcvcuf75qsas2gwdgksvnyd.onion - Tor Dex
http://2fd6cemt4gmccflhm6imvdfvli3nf7zn6rfrwpsy7uhxrgbypvwf5fad.onion - Excavator
I'm hoping that an update will be pushed to fix the host names and if the host name is Invalid/not working it should be skipped and fatal errors sent to a log rather than crashing the program
Traceback (most recent call last):
File "Gmode.py", line 2, in
import proxybroker
ModuleNotFoundError: No module named 'proxybroker'
I would recommend to add proxies support and save result option
i can see that the main file kds has not been pushed maybe in the last commit .
thank you
I get the following error when starting in Tor mode
[!] Tor proxy must be on port 9050
[+] Checking TOR...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/socks.py", line 787, in connect
super(socksocket, self).connect(proxy_addr)
ConnectionRefusedError: [Errno 111] Connection refused
Hello is it possible to make the program use a proxyfile?
It's also better to make the program saves the output from proxy scraping
Hello, i like to try ur tool but it comes error.
Can u plz help me to solve it? i installed required.
Traceback (most recent call last): File "/home/Katana-master/kds.py", line 63, in <module> from Modes import Gmode File "/home/Katana-master/Modes/Gmode.py", line 73, in <module> for gamma in search(query, tld=beta, num=10 , stop=95 , pause=2): TypeError: search() got an unexpected keyword argument 'tld'
i see its line with gmode module but if i try to install
python3 -m pip install gmode
ERROR: Could not find a version that satisfies the requirement gmode
ERROR: No matching distribution found for gmode
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.