diff --git a/pyproject.toml b/pyproject.toml index 955393d00..133a1401b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "aiocache==0.12.2", "aiohttp==3.10.2", "aiosqlite==0.20.0", - "arsenic @ https://github.com/wapiti-scanner/arsenic/releases/download/28.1%2Bremove-distutils/arsenic-28.1+remove.distutils-py3-none-any.whl", + "wapiti-arsenic==28.2", "beautifulsoup4==4.12.3", "browser-cookie3==0.19.1", "dnspython==2.6.1", diff --git a/wapitiCore/attack/mod_wapp.py b/wapitiCore/attack/mod_wapp.py index 1acf49060..d1fc989cc 100644 --- a/wapitiCore/attack/mod_wapp.py +++ b/wapitiCore/attack/mod_wapp.py @@ -28,8 +28,8 @@ from aiocache import cached from httpx import RequestError -from arsenic import get_session, browsers, services -from arsenic.errors import JavascriptError, UnknownError, ArsenicError +from wapiti_arsenic import get_session, browsers, services +from wapiti_arsenic.errors import JavascriptError, UnknownError, ArsenicError from wapitiCore.attack.cve.checker import ( CVEChecker, cvss_score_to_wapiti_level, CVE_DIRECTORY, SUPPORTED_SOFTWARES, is_cve_supported_software diff --git a/wapitiCore/net/auth.py b/wapitiCore/net/auth.py index 8be48423c..231de9e2f 100644 --- a/wapitiCore/net/auth.py +++ b/wapitiCore/net/auth.py @@ -25,7 +25,7 @@ import importlib.util from httpx import RequestError -from arsenic import get_session, browsers, services, errors, constants +from wapiti_arsenic import get_session, browsers, services, errors, constants from wapitiCore.net import Request, Response from wapitiCore.parsers.html_parser import Html diff --git a/wapitiCore/net/intercepting_explorer.py b/wapitiCore/net/intercepting_explorer.py index 976c9dd59..581eb14f8 100644 --- a/wapitiCore/net/intercepting_explorer.py +++ b/wapitiCore/net/intercepting_explorer.py @@ -34,9 +34,9 @@ from mitmproxy.options import Options from mitmproxy.http import Request as MitmRequest import httpx -from arsenic import get_session, browsers, services -from arsenic.constants import SelectorType -from arsenic.errors import ArsenicError, ElementNotInteractable, UnknownArsenicError, NoSuchElement +from wapiti_arsenic import get_session, browsers, services +from wapiti_arsenic.constants import SelectorType +from wapiti_arsenic.errors import ArsenicError, ElementNotInteractable, UnknownArsenicError, NoSuchElement import structlog from wapitiCore.net import Request @@ -68,7 +68,7 @@ def is_interpreted_type(mime_type: str) -> bool: def set_arsenic_log_level(level: int = WARNING): # Create logger - logger = getLogger('arsenic') + logger = getLogger('wapiti_arsenic') # We need factory, to return application-wide logger def logger_factory():