scapy.modules.nmap
Clone of Nmap’s first generation OS fingerprinting.
This code works with the first-generation OS detection and nmap-os-fingerprints, which has been removed from Nmap on November 3, 2007 (https://github.com/nmap/nmap/commit/50c49819), which means it is outdated.
To get the last published version of this outdated fingerprint database, you can fetch it from <https://raw.githubusercontent.com/nmap/nmap/9efe1892/nmap-os-fingerprints>.
- class scapy.modules.nmap.NmapKnowledgeBase(filename: Any | None)[source]
Bases:
KnowledgeBaseA KnowledgeBase specialized in Nmap first-generation OS fingerprints database. Loads from conf.nmap_base when self.filename is None.
- scapy.modules.nmap.nmap_fp(target: str, oport: int = 80, cport: int = 81) Tuple[int | float, List][source]
nmap fingerprinting nmap_fp(target, [oport=80,] [cport=81,]) -> list of best guesses with accuracy
- scapy.modules.nmap.nmap_sig(target: str, oport: int = 80, cport: int = 81, ucport: int = 1) Dict[source]
- scapy.modules.nmap.nmap_udppacket_sig(snd: SndRcvList, rcv: PacketList) Dict[source]