Entry
Can I read NT registry info from PHP? How?
Feb 20th, 2008 22:55
dman, Articles Way, radomir merhaut, Henrik Hansen, Kai Yu, http://www.ttnr.org
<?php
system("setx variable -k
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Produ
c
tId > Reg.txt");
$RegFile = "Reg.txt";
$fp=fopen($RegFile,"r");
$line=fread($fp,filesize($RegFile));
list($variable,$value) = explode(":",$line);
fclose($fp);
echo $value;
?>
SetX.exe - Tools from ResKit WinNT
=======
governmentsecurity.org/articles/WindowsNTRegistryTutorial.php