Open offensive-droid opened 10 months ago
I think this is due to incompatibility between the urllib version installed and the python version because after a quick search it mentions that after python 3.10.X it was changed to from collections.abc import Mapping
so please check the python urllib version and if it is supported by Python 3.11 or not.
Error occurs when i run XSStrike.py └─$ python3 xsstrike.py
Traceback (most recent call last):
File "/home/kali/Bugbounty/tools/web_vuln/xss/XSStrike/xsstrike.py", line 117, in
from core.photon import photon
File "/home/kali/Bugbounty/tools/web_vuln/xss/XSStrike/core/photon.py", line 8, in
from core.requester import requester
File "/home/kali/Bugbounty/tools/web_vuln/xss/XSStrike/core/requester.py", line 2, in
import requests
File "/usr/local/lib/python3.11/dist-packages/requests/init.py", line 58, in
from . import utils
File "/usr/local/lib/python3.11/dist-packages/requests/utils.py", line 26, in
from .compat import parse_http_list as _parse_list_header
File "/usr/local/lib/python3.11/dist-packages/requests/compat.py", line 7, in
from .packages import chardet
File "/usr/local/lib/python3.11/dist-packages/requests/packages/init.py", line 3, in
from . import urllib3
File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/init.py", line 10, in
from .connectionpool import (
File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/connectionpool.py", line 38, in
from .response import HTTPResponse
File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/response.py", line 9, in
from ._collections import HTTPHeaderDict
File "/usr/local/lib/python3.11/dist-packages/requests/packages/urllib3/_collections.py", line 1, in
from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.11/collections/init.py)