This function has drive C hardcoded for getting info. Well it's probably a good assumption that most people have a 'C:', it's not necessary for the drive C to even exist. It could use getenv to get the system drive letter, then nothing would need to be hardcoded. The following is a fix using getenv...
[code] case "Windows": preg_match("/\b[0-9a-fA-F]{4}-[0-9a-fA-F]{4}\b/", shell_exec('vol ' . getenv('SystemDrive')), $m); $AesKey = (strlen($m[0]) > 0) ? $m[0] : "openaudit"; break; [/code]
_________________ OA Server: Debian Squeeze w/ Apache2 Auditing: 700 Workstations, 250 or so Retail Terminals, about 75 Servers OS's: Windows XP/2003/2008/2008 R2/Vista/7, Debian LDAP: Active Directory 2008 R2
|