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 Fri Apr 19, 2024 11:26 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Tue Feb 24, 2009 1:14 pm 
Offline
Newbie

Joined: Thu Feb 03, 2005 11:44 pm
Posts: 4
I noticed today that IIS details are missing on some newly built servers. The reason is the audit script expects the service name to be capitalized (which apparently isn't always the case). I just wrapped an "UCase" around the object within the select statement.

Within trunk for Audit.vbs REV 1132 starting at line 2456, locate the following
[code]
' Searching for IIS services
Select Case objItem.Name
Case "IISADMIN" iis = "True"
Case "W3SVC" iis_w3svc = "True"
Case "MSFTPSVC" iis_ftpsvc = "True"
Case "SMTPSVC" iis_smtpsvc = "True"
Case "NNTPSVC" iis_nntpsvc = "True"
End Select
Next
[/code]
and replace with this:
[code]
' Searching for IIS services
Select Case UCase(objItem.Name)
Case "IISADMIN" iis = "True"
Case "W3SVC" iis_w3svc = "True"
Case "MSFTPSVC" iis_ftpsvc = "True"
Case "SMTPSVC" iis_smtpsvc = "True"
Case "NNTPSVC" iis_nntpsvc = "True"
End Select
Next
[/code]

There are several other places where a case should be set when doing the select as well. I'd add those, but the impact is so minimal it's not worth mentioning here.

I have about 20-30 other fixes and optimizations in my version of the script, sure would be great if I could commit :)


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 24, 2009 6:06 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Thank you: although I didn't have issues with it, this mod was added to SVN rev. 1133.
Regarding other fixes and optimizations, post those you consider of public interest and (time permitting) we will have a look at them.

_________________
Edoardo


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