I'm a Hacker and Programmer. I enjoy developing tools for ethical hacking.
gotr00t0day / gsec Goto Github PK
View Code? Open in Web Editor NEWWeb Security Scanner
Web Security Scanner
python3 gsec.py
Traceback (most recent call last):
File "/home/kali/Tools/gotr00t0day/Gsec/gsec.py", line 2, in
from modules import fetch_requests, scan, urltoip, sub_output
File "/home/kali/Tools/gotr00t0day/Gsec/modules/fetch_requests.py", line 4, in
from utils import webserver_scanner
ImportError: cannot import name 'webserver_scanner' from 'utils' (/home/kali/.local/lib/python3.11/site-packages/utils/init.py)
Please help me with this error:
python3 gsec.py
Traceback (most recent call last):
File "/home/karan/tools/Gsec/gsec.py", line 3, in
from utils import path_traversal, portscanner, loginscanner, techscanner, cmsscanner, passive_recon, crawler
File "/home/karan/tools/Gsec/utils/passive_recon.py", line 2, in
import whois
File "/home/karan/.local/lib/python3.11/site-packages/whois/init.py", line 15, in
from .parser import WhoisEntry
File "/home/karan/.local/lib/python3.11/site-packages/whois/parser.py", line 18, in
from past.builtins import basestring
File "/usr/local/lib/python3.11/dist-packages/future-0.16.0-py3.11.egg/past/builtins/init.py", line 43, in
from past.builtins.noniterators import (filter, map, range, reduce, zip)
File "/usr/local/lib/python3.11/dist-packages/future-0.16.0-py3.11.egg/past/builtins/noniterators.py", line 24, in
from past.types import basestring
File "/usr/local/lib/python3.11/dist-packages/future-0.16.0-py3.11.egg/past/types/init.py", line 25, in
from .oldstr import oldstr
File "/usr/local/lib/python3.11/dist-packages/future-0.16.0-py3.11.egg/past/types/oldstr.py", line 5, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.11/collections/init.py)
Traceback (most recent call last):
File "/Users/host/tools/Gsec/gsec.py", line 2, in
from modules import fetch_requests, scan, urltoip
ImportError: cannot import name 'scan' from 'modules' (/Users/host/tools/Gsec/modules/init.py)
hi
──(kali㉿kali)-[~/Gsec]
└─$ python3 gsec.py -t http://testphp.vulnweb.com/
/home/kali/Gsec/gsec.py:42: SyntaxWarning: invalid escape sequence '\ '
"""
/home/kali/Gsec/utils/wafscanner.py:42: SyntaxWarning: invalid escape sequence '\s'
if waf_list in r.text or "Let\s Encrypt" in r.text:
Traceback (most recent call last):
File "/home/kali/Gsec/gsec.py", line 7, in
from vuln_db import hostheader_injection, nuclei_vulns, corsmisconfig, crossdomain, head_vuln, cache_poisoning, webservers_vulns, nmap_vuln, xss, broken_links
File "/home/kali/Gsec/vuln_db/xss.py", line 3, in
from fake_useragent import UserAgent
ModuleNotFoundError: No module named 'fake_useragent'
how fix it
[+] - /bin/sh: 1: nuclei: not found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 704, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 450, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 786, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 704, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 450, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File "/usr/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/Gsec/gsec.py", line 97, in
shellshock.shellshock_scan(args.target)
File "/home/kali/Gsec/plugins/shellshock.py", line 9, in shellshock_scan
res = requests.get(domain, verify=False, headers=header)
File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
I have problem when using gsec on kali linux vm, how to resolve it.
┌──(kali㉿kali)-[~/tools/Gsec]
└─$ python3 -V
Python 3.10.5
┌──(kali㉿kali)-[~/tools/Gsec]
└─$ python3 gsec.py
Traceback (most recent call last):
File "/home/kali/tools/Gsec/gsec.py", line 5, in
from vuln_db import hostheader_injection, nuclei_vulns, corsmisconfig, crossdomain, head_vuln
File "/home/kali/tools/Gsec/vuln_db/nuclei_vulns.py", line 2, in
from modules import scan, sub_output
ImportError: cannot import name 'sub_output' from 'modules' (/home/kali/tools/Gsec/modules/init.py)
hi
what's the problema?
┌──(kali㉿kali)-[~/Gsec] └─$ python3 gsec.py -t http://testphp.vulnweb.com/ Traceback (most recent call last): File "/home/kali/Gsec/gsec.py", line 4, in <module> from utils import param_finder, javascript_scanner, headers ImportError: cannot import name 'headers' from 'utils' (/home/kali/Gsec/utils/__init__.py)
thx
Got these two errors.
I did input Shodan API Key correctly and even regenerated it, still shows as invalid when running the tool.
As for the certsh.sh there is no such file.
hi
I open the folder core in terminal, then vim .shodan, insert my api :wq and - Invalid shodan api key
how do you insert the api?
thx.
Hi.
I placed nuclei-templates directory inside where I run the scan, in the / directory (through link), in the home directory (through link) but still having this error.
[FTL] Could not run nuclei: no templates provided for scan
How can I solve this issue?
Gsec version 1.5.
Regards
RS
Whenever trying to run "sudo python3 gsec.py -t https://domain.com i get an error as below:
Traceback (most recent call last):
File "/home/kali/Gsec/gsec.py", line 3, in
from utils import portscanner, loginscanner, techscanner, cmsscanner, passive_recon, path_traversal, crawler, osdetect
File "/home/kali/Gsec/utils/techscanner.py", line 1, in
from builtwith import builtwith
ModuleNotFoundError: No module named 'builtwith'
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.