-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
52 lines (46 loc) · 2.25 KB
/
Copy pathconfig.py
File metadata and controls
52 lines (46 loc) · 2.25 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
46
47
48
49
50
51
52
"""
Configuration and Constants for NetLens
"""
# ============================================================================
# SERVICE PORT MAPPING
# ============================================================================
SERVICE_PORTS = {
20: 'FTP-DATA', 21: 'FTP', 22: 'SSH', 23: 'Telnet',
25: 'SMTP', 53: 'DNS', 67: 'DHCP', 68: 'DHCP',
80: 'HTTP', 110: 'POP3', 143: 'IMAP', 161: 'SNMP',
389: 'LDAP', 443: 'HTTPS', 465: 'SMTP-SSL', 587: 'SMTP-TLS',
993: 'IMAP-SSL', 995: 'POP3-SSL', 1433: 'MSSQL', 3306: 'MySQL',
3389: 'RDP', 5432: 'PostgreSQL', 5984: 'CouchDB', 6379: 'Redis',
8080: 'HTTP-Alt', 8443: 'HTTPS-Alt', 27017: 'MongoDB', 9042: 'Cassandra'
}
# ============================================================================
# NETWORK SCANNER SETTINGS
# ============================================================================
NETWORK_SCAN_INTERVAL = 30 # Scan every 30 seconds
DEFAULT_NETWORK_RANGE = ""
NMAP_ARGUMENTS = "-sn -T4" # Ping scan with fast timing
# ============================================================================
# PACKET CAPTURE SETTINGS
# ============================================================================
MAX_PACKETS_STORED = 10000 # Keep only last N packets to prevent memory issues
PACKET_CAPTURE_INTERFACE = None # None = auto-detect
# ============================================================================
# STREAMLIT CONFIGURATION
# ============================================================================
STREAMLIT_PAGE_CONFIG = {
"page_title": "NetLens",
"page_icon": "📡",
"layout": "wide",
"initial_sidebar_state": "collapsed",
}
# ============================================================================
# UI STRINGS
# ============================================================================
APP_TITLE = "📡 NetLens"
APP_SUBTITLE = "Real-time Network Traffic Analysis Dashboard"
APP_DESCRIPTION = "DNS Tracking • Port Detection • Bandwidth Analytics • Device Discovery"
# ============================================================================
# LOGGING CONFIGURATION
# ============================================================================
LOGGING_LEVEL = "INFO"
LOGGING_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"