Buckets:

download
raw
8.34 kB
"""
Neue Tools Execution Tests
FFuF, WhatWeb, WAFW00F, Subfinder, HTTPX, Nikto, Sherlock, Ignorant, TShark, Amass, Masscan
"""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent.parent))
class TestFFuFEnhancedExecution:
"""FFuF Enhanced Tool Tests"""
def test_ffuf_import(self):
from tools import ffuf_integration_enhanced
assert ffuf_integration_enhanced is not None
def test_ffuf_finding_dataclass(self):
from tools.ffuf_integration_enhanced import FFuFFinding
f = FFuFFinding(url="http://test.com", status_code=200, length=100, words=10)
assert f.url == "http://test.com"
assert f.status_code == 200
def test_ffuf_config_dataclass(self):
from tools.ffuf_integration_enhanced import FFuFConfig
config = FFuFConfig(target="http://test.com", wordlist="common.txt")
assert config.target == "http://test.com"
def test_ffuf_result_dataclass(self):
from tools.ffuf_integration_enhanced import FFuFResult
result = FFuFResult(findings=[])
assert result.findings == []
def test_ffuf_integration_creation(self):
from tools.ffuf_integration_enhanced import FFuFIntegration
ffuf = FFuFIntegration()
assert ffuf is not None
def test_ffuf_integration_name(self):
from tools.ffuf_integration_enhanced import FFuFIntegration
ffuf = FFuFIntegration()
assert ffuf.name == "ffuf"
class TestWhatWebExecution:
"""WhatWeb Tool Tests"""
def test_whatweb_import(self):
from tools import whatweb_integration
assert whatweb_integration is not None
def test_whatweb_technology_dataclass(self):
from tools.whatweb_integration import WhatWebTechnology
tech = WhatWebTechnology(name="WordPress", version="5.8", confidence=100)
assert tech.name == "WordPress"
assert tech.confidence == 100
def test_whatweb_integration_creation(self):
from tools.whatweb_integration import WhatWebIntegration
whatweb = WhatWebIntegration()
assert whatweb is not None
class TestWAFW00FExecution:
"""WAFW00F Tool Tests"""
def test_wafw00f_import(self):
from tools import wafw00f_integration
assert wafw00f_integration is not None
def test_waf_finding_dataclass(self):
from tools.wafw00f_integration import WAFFinding
waf = WAFFinding(waf_name="Cloudflare", detected=True)
assert waf.waf_name == "Cloudflare"
assert waf.detected is True
def test_wafw00f_integration_creation(self):
from tools.wafw00f_integration import WAFW00FIntegration
wafw00f = WAFW00FIntegration()
assert wafw00f is not None
class TestSubfinderExecution:
"""Subfinder Tool Tests"""
def test_subfinder_import(self):
from tools import subfinder_integration
assert subfinder_integration is not None
def test_subfinder_result_dataclass(self):
from tools.subfinder_integration import SubfinderResult
result = SubfinderResult(subdomain="test.example.com", sources=["crtsh"])
assert result.subdomain == "test.example.com"
def test_subfinder_integration_creation(self):
from tools.subfinder_integration import SubfinderIntegration
subfinder = SubfinderIntegration()
assert subfinder is not None
class TestHTTPXExecution:
"""HTTPX Tool Tests"""
def test_httpx_import(self):
from tools import httpx_integration
assert httpx_integration is not None
def test_httpx_result_dataclass(self):
from tools.httpx_integration import HTTPXResult
result = HTTPXResult(url="http://test.com", status_code=200, title="Test")
assert result.url == "http://test.com"
assert result.status_code == 200
def test_httpx_integration_creation(self):
from tools.httpx_integration import HTTPXIntegration
httpx = HTTPXIntegration()
assert httpx is not None
class TestNiktoExecution:
"""Nikto Tool Tests"""
def test_nikto_import(self):
from tools import nikto_integration
assert nikto_integration is not None
def test_nikto_vulnerability_dataclass(self):
from tools.nikto_integration import NiktoVulnerability
vuln = NiktoVulnerability(id="001", method="GET", description="Test")
assert vuln.id == "001"
def test_nikto_integration_creation(self):
from tools.nikto_integration import NiktoIntegration
nikto = NiktoIntegration()
assert nikto is not None
class TestSherlockExecution:
"""Sherlock Tool Tests"""
def test_sherlock_import(self):
from tools import sherlock_integration
assert sherlock_integration is not None
def test_sherlock_result_dataclass(self):
from tools.sherlock_integration import SherlockResult
result = SherlockResult(
username="testuser",
site="GitHub",
url="https://github.com/testuser",
)
assert result.username == "testuser"
def test_sherlock_integration_creation(self):
from tools.sherlock_integration import SherlockIntegration
sherlock = SherlockIntegration()
assert sherlock is not None
class TestIgnorantExecution:
"""Ignorant Tool Tests"""
def test_ignorant_import(self):
from tools import ignorant_integration
assert ignorant_integration is not None
def test_ignorant_result_dataclass(self):
from tools.ignorant_integration import IgnorantResult
result = IgnorantResult(email="test@gmail.com", service="Gmail", exists=True)
assert result.email == "test@gmail.com"
def test_ignorant_integration_creation(self):
from tools.ignorant_integration import IgnorantIntegration
ignorant = IgnorantIntegration()
assert ignorant is not None
class TestTSharkExecution:
"""TShark Tool Tests"""
def test_tshark_import(self):
from tools import tshark_integration
assert tshark_integration is not None
def test_tshark_capture_dataclass(self):
from tools.tshark_integration import TSharkCapture
capture = TSharkCapture(interface="eth0")
assert capture.interface == "eth0"
def test_tshark_integration_creation(self):
from tools.tshark_integration import TSharkIntegration
tshark = TSharkIntegration()
assert tshark is not None
class TestAmassExecution:
"""Amass Tool Tests"""
def test_amass_import(self):
from tools import amass_integration
assert amass_integration is not None
def test_amass_result_dataclass(self):
from tools.amass_integration import AmassResult
result = AmassResult(subdomain="test.example.com")
assert result.subdomain == "test.example.com"
def test_amass_integration_creation(self):
from tools.amass_integration import AmassIntegration
amass = AmassIntegration()
assert amass is not None
class TestMasscanExecution:
"""Masscan Tool Tests"""
def test_masscan_import(self):
from tools import masscan_integration
assert masscan_integration is not None
def test_masscan_result_dataclass(self):
from tools.masscan_integration import MasscanResult
result = MasscanResult(ip="192.168.1.1", port=80)
assert result.ip == "192.168.1.1"
assert result.port == 80
def test_masscan_integration_creation(self):
from tools.masscan_integration import MasscanIntegration
masscan = MasscanIntegration()
assert masscan is not None
class TestGobusterExecution:
"""Gobuster Tool Tests"""
def test_gobuster_import(self):
from tools import gobuster_integration
assert gobuster_integration is not None
def test_gobuster_result_dataclass(self):
from tools.gobuster_integration import GobusterResult
result = GobusterResult(url="http://test.com/admin", status_code=200)
assert result.url == "http://test.com/admin"
def test_gobuster_integration_creation(self):
from tools.gobuster_integration import GobusterIntegration
gobuster = GobusterIntegration()
assert gobuster is not None

Xet Storage Details

Size:
8.34 kB
·
Xet hash:
105ea74b56c432465be26e345ef6b7b011c239260ef8ef0106b3edb649ea51b7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.