guelfoweb / knock

Knock Subdomain Scan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to solve this

sajeeshab opened this issue · comments

Traceback (most recent call last):
File "/home/sajeesh/tools/knock/knockpy.py", line 7, in
from knockpy import knockpy
File "/home/sajeesh/tools/knock/knockpy/knockpy.py", line 12, in
import requests
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/init.py", line 58, in
from . import utils
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/utils.py", line 26, in
from .compat import parse_http_list as _parse_list_header
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/compat.py", line 7, in
from .packages import chardet
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/packages/init.py", line 3, in
from . import urllib3
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/packages/urllib3/init.py", line 10, in
from .connectionpool import (
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/packages/urllib3/connectionpool.py", line 38, in
from .response import HTTPResponse
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/packages/urllib3/response.py", line 9, in
from ._collections import HTTPHeaderDict
File "/usr/local/lib/python3.10/dist-packages/requests-2.7.0-py3.10.egg/requests/packages/urllib3/_collections.py", line 1, in
from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

I have the same problem! I would be very grateful if anyone could help

You need python3, pip3, git.
git clone https://github.com/guelfoweb/knock.git
cd knock
pip3 install -r requirements.txt
python3 knockpy.py