-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_library_path.py
More file actions
41 lines (31 loc) · 921 Bytes
/
debug_library_path.py
File metadata and controls
41 lines (31 loc) · 921 Bytes
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
#!/usr/bin/env python3
"""
Debug script to test library scanning path specifically.
"""
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
from pgdn_scanner.scanner import Scanner
import json
def debug_library():
"""Debug library scanning."""
print("🔍 Debug Library Scanning Path")
print("=" * 50)
# Create scanner
scanner = Scanner()
# Test target
target = "sui-mainnet.interestlabs.io"
print(f"🎯 Target: {target}")
print()
# Run the scan using library interface
print("🚀 Running library scan...")
result = scanner.scan(
target=target,
run="port_scan" # Use the run parameter like CLI does
)
print("\n📊 Library Result:")
print("=" * 50)
print(json.dumps(result.to_dict(), indent=2, default=str))
print("\n✅ Debug complete!")
if __name__ == "__main__":
debug_library()