Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Wed Apr 17, 2024 1:57 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: audit.vbs output
PostPosted: Tue Jan 08, 2008 5:24 pm 
Offline
Newbie

Joined: Mon Jan 07, 2008 9:40 pm
Posts: 7
Hi!

Could you make that the audit.vbs output files are generated into %TEMP% (as in nmap.vbs)?


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Tue Jan 08, 2008 8:56 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Would it not make sense to put them in a folder under the current folder, rather than the TEMP folder, after all if you are generating these files, then presumably you are doing off-line audits.

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Tue Jan 08, 2008 9:01 pm 
Offline
Newbie

Joined: Mon Jan 07, 2008 9:40 pm
Posts: 7
hm..i make audit.vbs to run as login script in my domain. And it's shows error.


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 12:35 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
[quote="edk"]hm..i make audit.vbs to run as login script in my domain. And it's shows error.


In that case perhaps it would be better to have the location coded in the audit.config

What do you see as the error?

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 2:14 am 
Offline
Newbie

Joined: Mon Jan 07, 2008 9:40 pm
Posts: 7
I don't exactly remember now. But I made modification to audit.vbs save output results in %temp%. and it's work.


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 6:38 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
[quote="edk"]I don't exactly remember now. But I made modification to audit.vbs save output results in %temp%. and it's work.


Great, what did you change..... was this mod to create the email, or the off-line audits?

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 4:34 pm 
Offline
Newbie

Joined: Mon Jan 07, 2008 9:40 pm
Posts: 7
I think its a off-line audit: audit_location = "l"

Applied on SVN 943
Inserted this line:
[code]Line35: Set oShell = CreateObject("Wscript.Shell")[/code]
This line may be inserted in another place, but this is what I done.

Changed thees lines:
[code]Line45:
From: this_audit_log = "audit_log.txt"
To: this_audit_log = oShell.ExpandEnvironmentStrings("%TEMP%") & "\audit_log.txt"

Line587:
From: Set objTextFile = objFSO.OpenTextFile (system_name & ".txt", ForAppending, True)
To: Set objTextFile = objFSO.OpenTextFile (oShell.ExpandEnvironmentStrings("%TEMP%") & "\" &system_name & ".txt", ForAppending, True)[/code]


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 8:47 pm 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Good idea, the audit_log.txt (now called audit_log.csv) is used to create a log of the start and finish of each audit. This is then emailed (if required) to the administrator. I think creating this file in your %TEMP folder is a good idea, if it stops OA from throwing an error.

I may well modify it this way, unless I can think of a reason for keeping the file elsewhere (on the OA server for example).

_________________
Andrew

[size=85]OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
 Post subject: Re: audit.vbs output
PostPosted: Wed Jan 09, 2008 9:37 pm 
Offline
Newbie

Joined: Mon Jan 07, 2008 9:40 pm
Posts: 7
OK ;) And could you make thees modifications in next release? Please! Because I will need to made thees modifications in all new releases...


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.  [ 9 posts ] 

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:  
Powered by phpBB® Forum Software © phpBB Group