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 Thu Mar 28, 2024 7:09 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Sat Apr 21, 2012 5:07 am 
Offline
Newbie

Joined: Thu Mar 22, 2012 4:34 am
Posts: 5
After making the change to 4601 and removing the " I tried to run the script, it balks on my system (which has been running the modified Beta 4 script without problems). It is failing after detecting IIS is installed on my system. If I run it on the command prompt with cscript audit_windows.vbs as admin I get the error -

C:\temp\audit_windows.vbs(2972, 4) Microsoft VBScript runtime error: Type mismatch: 'ubound'

If I run it on the command prompt without running as administrator I get -

C:\temp\audit_windows.vbs(2855, 3) SWbemServicesEx: Access is denied.


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 21, 2012 9:04 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
OK, lets sort this one...
audit_host is the machine you are running the cscript command on.
audit_target is the machine actually being audited.

What are the operating systems of both machines?
Which machines have IIS installed?

To hack around this in the meantime -
LINE 2841 - on error resume next
LINE 3104 - on error goto 0

Those should just bypass the section completely if something fails.
We really want to fix this though...

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 21, 2012 10:08 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Is it not possible to have objItem.ServerBinding be empty rather than an array? Just throw an IsArray check before accessing the field and skip it if its not an array. Same for the other instances of UBound on a possible null.

I don't deal with IIS much so I'm just guessing.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 23, 2012 8:26 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
OK, I've altered the audit_windows.vbs script to provide more debugging info and added some checks to hopefully prevent it crashing.
Grab a copy from here - ignore the beta4 bit in the URL, I have to work out how to change that :)
[url]http://bazaar.launchpad.net/~mark-unwin/oav2/beta4/view/head:/other/audit_windows.vbs[/url]

Try it and let me know how it goes.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 24, 2012 1:13 am 
Offline
Newbie

Joined: Sun Apr 22, 2012 9:07 pm
Posts: 3
[quote="Mark"]OK, I've altered the audit_windows.vbs script to provide more debugging info and added some checks to hopefully prevent it crashing.
Grab a copy from here - ignore the beta4 bit in the URL, I have to work out how to change that :)
[url]http://bazaar.launchpad.net/~mark-unwin/oav2/beta4/view/head:/other/audit_windows.vbs[/url]

Try it and let me know how it goes.


It runs... I have create my first OAv2 audit... trying it on a small network right now.

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.  [ 5 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