MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / detect_capabilities

Method detect_capabilities

server_capabilities.py:106–123  ·  view source on GitHub ↗

Detect system hardware and software capabilities

(self)

Source from the content-addressed store, hash-verified

104 # pair costs more than a Zero has in total. They stay a big-board feature
105 # while the tcpdump core runs everywhere.
106 TRAFFIC_SIDECAR_MIN_RAM_GB = 3.5
107 # Include armv8l which is 32-bit userspace on 64-bit ARM (Pi 4/5 with 32-bit OS)
108 SUPPORTED_ARCHS = ['x86_64', 'amd64', 'aarch64', 'arm64', 'armv8l', 'armv7l']
109
110 # Tool definitions for advanced features
111 TRAFFIC_ANALYSIS_TOOLS = {
112 'tcpdump': {'package': 'tcpdump', 'critical': True},
113 'tshark': {'package': 'tshark', 'critical': False},
114 'ngrep': {'package': 'ngrep', 'critical': False},
115 'iftop': {'package': 'iftop', 'critical': False},
116 'nethogs': {'package': 'nethogs', 'critical': False},
117 'ss': {'package': 'iproute2', 'critical': True},
118 }
119
120 VULN_ASSESSMENT_TOOLS = {
121 'nmap': {'package': 'nmap', 'critical': True},
122 'nuclei': {'package': 'nuclei', 'critical': False, 'install_cmd': 'go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest'},
123 'nikto': {'package': 'nikto', 'critical': False},
124 'sqlmap': {'package': 'sqlmap', 'critical': False},
125 'hydra': {'package': 'hydra', 'critical': False},
126 'whatweb': {'package': 'whatweb', 'critical': False},

Callers 1

__init__Method · 0.95

Calls 6

_detect_hardwareMethod · 0.95
_detect_os_infoMethod · 0.95
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected