SMB OS Discovery
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""SMB OS / domain discovery (NSE smb-os-discovery)."""
from kittysploit import *
from lib.protocols.smb.smb_scanner_client import Smb_scanner_client
class Module(Scanner, Smb_scanner_client):
__info__ = {
"name": "SMB OS Discovery",
"description": (
"Discovers OS / LAN Manager / domain hints from SMB negotiate and anonymous "
"session setup (NSE smb-os-discovery)."
),
"author": ["KittySploit Team"],
"severity": "info",
"references": ["https://nmap.org/nsedoc/scripts/smb-os-discovery.html"],
"tags": ["smb", "os", "domain", "scanner", "discovery"],
"agent": {
"risk": "active",
"effects": ["network_probe"],
"expected_requests": 2,
"reversible": True,
"approval_required": False,
"produces": ["tech_hints", "risk_signals"],
},
}
def run(self):
if not self._host():
return False
info = self.os_discovery()
if not info.get("detected"):
return False
os_name = str(info.get("os") or "")
domain = str(info.get("domain") or "")
lm = str(info.get("lan_manager") or "")
server = str(info.get("server") or "")
if not any((os_name, domain, lm, server)):
return False
self.set_info(
severity="info",
reason="SMB host identity discovered",
os=os_name,
lan_manager=lm,
domain=domain,
server=server,
smb1=bool(info.get("smb1")),
signing=str(info.get("signing") or ""),
)
return True
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
31 Jul 2026 18:12Current
5.8Medium risk
Vulners AI Score5.8