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 Mar 29, 2024 4:06 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Tue Jun 23, 2009 3:23 am 
Offline
Newbie

Joined: Wed May 21, 2008 7:46 am
Posts: 13
[color=#FF0000]*** I am posting this for a friend who is having trouble setting up a forum account (which is a bug report for another thread)[/color]

This is a bug that probably won't affect many people, but it would
affect a significant portion of our campus. On my svn copy, it begins
line 795. There are several lines containing:

[code]if MyIP(0) <>"169" AND MyIP(1) <>"254" then[/code]

What I believe this is trying to do is guard against a self assigned IP
in the range 169.254.x.y . What it actually accomplishes right now is
guard against any IP range with the first octet of 169 and/or the second
octet being 254 . Since it is really two NOT conditions, it should
properly be joined with an OR:

[code]if MyIP(0) <>"169" OR MyIP(1) <>"254" then[/code]

Since my subnet begins with 169, the script was throwing out the IPs it
gathered before sending it onto the database. This bug looks to be on
three different lines.
I see some other bugs in the way it grabs and determines the primary NIC
IP, but this is the one that directly concerns me.


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 08, 2009 5:37 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
It might be easier to understand with something like
[code]if Not (MyIP(0) ="169" And MyIP(1) ="254") then[/code]

Also, probably not the best post title to get attention for this bug.


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 11, 2009 2:50 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
Thanks for the fix JPA, try it now. SVN 1178

_________________
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  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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