lamps1 / windows-privesc-check

Automatically exported from code.google.com/p/windows-privesc-check
GNU General Public License v2.0
0 stars 0 forks source link

Windows 8 not supported #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run tool in windows 8
2. Report will not generate as it there is no handler for windows 8

What is the expected output? What do you see instead?
A report

What version of the product are you using? On what operating system?
Windows 8

Please provide any additional information below.

This portion of the code do not handle 6.2 and it should go to a default handle 
if nothing is found and still generate a report if os type cannot be defined.

audit_data['hostname'] = socket.gethostname()
ver_list = win32api.GetVersionEx(1)
os_ver = str(ver_list[0]) + "." + str(ver_list[1])
# version numbers from 
http://msdn.microsoft.com/en-us/library/ms724832(VS.85).aspx
if os_ver == "4.0":
    os_str = "Windows NT"
if os_ver == "5.0":
    os_str = "Windows 2000"
if os_ver == "5.1":
    os_str = "Windows XP"
if os_ver == "5.2":
    os_str = "Windows 2003"
if os_ver == "6.0":
    os_str = "Windows Vista"
if os_ver == "6.0":
    os_str = "Windows 2008"
if os_ver == "6.1":
    os_str = "Windows 2008 R2"
if os_ver == "6.1":
    os_str = "Windows 7"

Original issue reported on code.google.com by Lyon.Yan...@gmail.com on 15 Jul 2014 at 2:20