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 Sat Apr 20, 2024 12:51 am

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: Sun Sep 06, 2009 5:36 am 
Offline
Contributor

Joined: Fri Jul 04, 2008 6:46 am
Posts: 153
Location: USA - WI
I'm thinking this may be a bug, but maybe someone can explain why it is how it currently is. On the admin_nmap_input.php page, if the submitted data doesn't list a MAC, it uses the following SQL query to get the IP/UUID so it can map the ports to the correct pc/device in the DB....

[code]
$sql = "SELECT net_uuid FROM network_card WHERE net_ip_address = '" . $ip_address . "'";
[/code]

The problem with this seems to be that all the IP addresses in the database, for the field it's looking at, are padded with zeros. So, it never finds it and thus the ports found for the device are never added to the DB.

If I just use the 'ip_trans_to' function, like all the other queries on the page seem to do when they use the ip address, then it pads the IP address with the zeros it needs and the data is happily uploaded to the DB :) . So should this query be changed to be the following, like the others? ...

[code]
$sql = "SELECT net_uuid FROM network_card WHERE net_ip_address = '" . ip_trans_to($ip_address) . "'";
[/code]

Edit: Should've mentioned, this is line 147 in current SVN.

_________________
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  
PostPosted: Mon Sep 07, 2009 9:33 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Thank you, fixed at SVN rev. 1184.

_________________
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