productkey try
This commit is contained in:
parent
5085b81777
commit
5094c9e36d
|
@ -0,0 +1,18 @@
|
|||
import os, posix, streams, strutils
|
||||
|
||||
const fileName = "/sys/firmware/acpi/tables/MSDM"
|
||||
|
||||
if getuid() != 0:
|
||||
quit "run me as root"
|
||||
|
||||
if not fileName.existsFile:
|
||||
quit "System has no product key"
|
||||
|
||||
var
|
||||
fin = fileName.newFileStream fmRead
|
||||
|
||||
discard fin.readAll
|
||||
|
||||
let keyData = fin.readAll
|
||||
|
||||
echo keyData
|
Loading…
Reference in New Issue