Jump to content
YOUR-AD-HERE
HOSTING
TOOLS

Locked Windows machin type Detection


rayane888

Recommended Posts

[HIDE-THANKS]

 

;/////////////////////////////////

;//// Level-23 Hacktools

;////

;//// Mr.888

;////

;//// Windows machin type Detection

;////

;/////////////////////////////////

 

 

MsgBox(0,'',_Result())

 

Func _Result()

 

$strComputer = "."

 

$objWMIService = ObjGet('winmgmts:{impersonationLevel=impersonate}!\\' & $strComputer & "\root\cimv2")

 

$colChassis = $objWMIService.ExecQuery("Select * from Win32_SystemEnclosure")

 

For $objChassis In $colChassis

 

For $strChassisType In $objChassis.ChassisTypes

 

If $strChassisType = 8 Or $strChassisType = 9 Or $strChassisType = 10 Then

 

 

$detectOStype = "Laptop"

 

ElseIf $strChassisType = 3 Or $strChassisType = 4 Or $strChassisType = 5 Or $strChassisType = 6 Or $strChassisType = 7 Then

 

 

$detectOStype = "Desktop"

 

Else

 

 

$detectOStype = "Unknow"

 

 

EndIf

 

Next

 

Next

 

Return $detectOStype

 

EndFunc

[/HIDE-THANKS]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.