mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Update smb-os-discovery to support CPE for Windows 8, 8.1, and 10
This commit is contained in:
parent
21560db1cf
commit
ef4ebc98a3
1 changed files with 6 additions and 0 deletions
|
|
@ -105,6 +105,12 @@ function make_cpe(result)
|
|||
parts = {"o", "microsoft", "windows_server_2008"}
|
||||
elseif string.match(os, "^Windows 7") then
|
||||
parts = {"o", "microsoft", "windows_7"}
|
||||
elseif string.match(os, "^Windows 8%f[^%d.]") then
|
||||
parts = {"o", "microsoft", "windows_8"}
|
||||
elseif string.match(os, "^Windows 8.1") then
|
||||
parts = {"o", "microsoft", "windows_8.1"}
|
||||
elseif string.match(os, "^Windows 10%f[^%d.]") then
|
||||
parts = {"o", "microsoft", "windows_10"}
|
||||
elseif string.match(os, "^Windows Server.*2012") then
|
||||
parts = {"o", "microsoft", "windows_server_2012"}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue