Skip to content

Commit

Permalink
Remove some unnecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
devl00p committed Jul 19, 2024
1 parent e3823f8 commit ef55154
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion tests/attack/test_mod_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import respx
import pytest

from wapitiCore.definitions.sql import SqlInjectionFinding
from wapitiCore.net.classes import CrawlerConfiguration
from wapitiCore.net import Request
from wapitiCore.net.crawler import AsyncCrawler
Expand Down
18 changes: 9 additions & 9 deletions tests/attack/test_mod_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from wapitiCore.language.vulnerability import CRITICAL_LEVEL, HIGH_LEVEL, INFO_LEVEL, MEDIUM_LEVEL
from wapitiCore.net.crawler import AsyncCrawler
from wapitiCore.attack.mod_ssl import (
ModuleSsl, SslInformationFinding, SslVulnerabilityFinding, extract_altnames,
ModuleSsl, extract_altnames,
match_address, check_ocsp_must_staple, check_ev_certificate, process_vulnerabilities, process_bad_protocols
)

Expand Down Expand Up @@ -68,11 +68,11 @@ async def test_ssl_scanner():
request_id=-1,
payload_type="additional",
module="ssl",
category=SslInformationFinding.name(),
category="TLS/SSL misconfigurations",
level=INFO_LEVEL,
request=request,
parameter='',
wstg=SslInformationFinding.wstg_code(),
wstg=["WSTG-CRYP-01"],
info="Certificate subject: yolo.com",
response=None
)
Expand All @@ -81,11 +81,11 @@ async def test_ssl_scanner():
request_id=-1,
payload_type="vulnerability",
module="ssl",
category=SslInformationFinding.name(),
category="TLS/SSL misconfigurations",
level=CRITICAL_LEVEL,
request=request,
parameter='',
wstg=SslInformationFinding.wstg_code(),
wstg=["WSTG-CRYP-01"],
info="Requested hostname doesn't match those in the certificate",
response=None
)
Expand All @@ -94,11 +94,11 @@ async def test_ssl_scanner():
request_id=-1,
payload_type="vulnerability",
module="ssl",
category=SslInformationFinding.name(),
category="TLS/SSL misconfigurations",
level=HIGH_LEVEL,
request=request,
parameter='',
wstg=SslInformationFinding.wstg_code(),
wstg=["WSTG-CRYP-01"],
info="Strict Transport Security (HSTS) is not set",
response=None
)
Expand All @@ -107,11 +107,11 @@ async def test_ssl_scanner():
request_id=-1,
payload_type="vulnerability",
module="ssl",
category=SslInformationFinding.name(),
category="TLS/SSL misconfigurations",
level=MEDIUM_LEVEL,
request=request,
parameter='',
wstg=SslInformationFinding.wstg_code(),
wstg=["WSTG-CRYP-01"],
info="Self-signed certificate detected: The certificate is not signed by a trusted Certificate Authority",
response=None
)
Expand Down
2 changes: 0 additions & 2 deletions tests/attack/test_mod_xss_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

import pytest

from wapitiCore.definitions.html_injection import HtmlInjectionFinding
from wapitiCore.definitions.reflected_xss import XssFinding
from wapitiCore.net.classes import CrawlerConfiguration
from wapitiCore.net import Request
from wapitiCore.net.crawler import AsyncCrawler
Expand Down

0 comments on commit ef55154

Please sign in to comment.