Skip to content

Instantly share code, notes, and snippets.

@savon-noir
Created May 5, 2014 16:36
Show Gist options
  • Save savon-noir/0fb9307f7d69a2d93d9b to your computer and use it in GitHub Desktop.
Save savon-noir/0fb9307f7d69a2d93d9b to your computer and use it in GitHub Desktop.
New OS fingerprint API for libnmap
In [1]: from libnmap.parser import NmapParser
In [2]: p = NmapParser.parse_fromfile('/root/all6.nmap')
In [3]: h = p.hosts.pop()
In [4]: print h.os
Linux 3.7 - 3.9: 98
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
Netgear DG834G WAP or Western Digital WD TV media player: 95
|__ os class: WAP: Netgear, embedded
|__ cpe:/h:netgear:dg834g
|__ os class: media device: Western Digital, embedded
|__ cpe:/o:westerndigital:wd_tv
Linux 3.8: 95
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
Linux 3.1: 93
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
Linux 3.2: 93
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
AXIS 210A or 211 Network Camera (Linux 2.6): 92
|__ os class: webcam: AXIS, Linux(2.6.X)
|__ cpe:/h:axis:210a_network_camera
|__ cpe:/h:axis:211_network_camera
|__ cpe:/o:axis:linux_kernel:2.6
Linux 3.7: 92
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
Linux 3.9: 91
|__ os class: general purpose: Linux, Linux(3.X)
|__ cpe:/o:linux:linux_kernel:3
Linux 2.4.26 (Slackware 10.0.0): 91
|__ os class: general purpose: Linux, Linux(2.4.X)
|__ cpe:/o:linux:linux_kernel:2.4.26
Crestron XPanel control system: 91
|__ os class: specialized: Crestron, 2-Series
|__ cpe:/o:crestron:2_seriesFingerprints:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment