-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_scanner.py
More file actions
46 lines (34 loc) · 1.29 KB
/
Copy pathtest_scanner.py
File metadata and controls
46 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python3
"""
Test script for Bounty Hunter Pro security modules
"""
from security_modules import VulnerabilityScanner
import json
def test_scanner():
"""Test the vulnerability scanner"""
print("🎯 Testing Bounty Hunter Pro Security Scanner")
print("="*50)
scanner = VulnerabilityScanner()
# Test with a safe target
test_url = "https://httpbin.org"
print(f"Testing URL: {test_url}")
print("Starting scan...")
def progress_callback(message):
print(f"[PROGRESS] {message}")
try:
results = scanner.full_scan(test_url, progress_callback)
print("\n✅ Scan completed successfully!")
print(f"Status: {results['scan_status']}")
print(f"Vulnerabilities found: {len(results['vulnerabilities'])}")
print(f"Directories found: {len(results['directories'])}")
print(f"Information gathered: {len(results['information'])} items")
return True
except Exception as e:
print(f"\n❌ Scan failed: {e}")
return False
if __name__ == "__main__":
success = test_scanner()
if success:
print("\n🎉 All tests passed! The scanner is ready to use.")
else:
print("\n💥 Tests failed! Please check the error messages above.")