diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cda75213f..a0642d664 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: pip install codespell flake8 -r requirements.txt - name: Test run: | - python3 dirsearch.py -w ./tests/static/wordlist.txt -u https://example.com -o tmp_report.json --output-formats json --force-recursive -R 3 --full-url -q + python3 dirsearch.py -w ./tests/static/wordlist.txt -u https://example.com -o "tmp_report.${extension}" -O json,xml,plain,csv,md,sqlite,html --force-recursive -R 3 --full-url -q python3 dirsearch.py -w ./tests/static/wordlist.txt -l ./tests/static/targets.txt --subdirs /,admin/ --exclude-extensions conf -q -L -f -i 200 --user-agent a --log tmp_log.log python3 dirsearch.py -w ./tests/static/wordlist.txt --nmap-report ./tests/static/nmap.xml --max-rate 2 -H K:V --random-agent --overwrite-extensions --no-color python3 dirsearch.py -w ./tests/static/wordlist.txt --raw ./tests/static/raw.txt --prefixes . --suffixes ~ --skip-on-status 404 -m POST -d test=1 --crawl --min-response-size 9 diff --git a/lib/parse/nmap.py b/lib/parse/nmap.py index 0cc1e9542..0c8a42e80 100644 --- a/lib/parse/nmap.py +++ b/lib/parse/nmap.py @@ -1,6 +1,6 @@ from __future__ import annotations -import xml.etree.ElementTree as ET +import defusedxml.ElementTree as ET def parse_nmap(file: str) -> list[str]: diff --git a/requirements.txt b/requirements.txt index 05ba119e4..01bd4e608 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,7 @@ PySocks>=1.7.1 Jinja2>=3.0.0 -certifi>=2017.4.17 defusedxml>=0.7.0 -markupsafe>=2.0.0 pyopenssl>=21.0.0 -charset_normalizer~=2.0.0 requests>=2.27.0 requests_ntlm>=1.1.0 colorama>=0.4.4