Open-AudIT

What's on your network?
It is currently Fri Jan 19, 2018 9:38 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Mon Sep 21, 2009 10:05 am 
Offline
Contributor

Joined: Fri Jul 04, 2008 6:46 am
Posts: 153
Location: USA - WI
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;

_________________
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group