Skip to content

Commit

Permalink
Use a modified arsenic packaged under another name to pass pypi restr…
Browse files Browse the repository at this point in the history
…ictions
  • Loading branch information
devl00p committed Nov 30, 2024
1 parent eb8b21d commit f489f7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions wapitiCore/attack/mod_wapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion wapitiCore/net/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions wapitiCore/net/intercepting_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit f489f7c

Please sign in to comment.