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 8:02 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: Fri Jul 28, 2006 1:37 am 
Offline
Contributor

Joined: Fri Jul 14, 2006 1:16 am
Posts: 151
Location: Iowa
I added code to display hfnet to the system_security page. This goes after the nmap code.

[code]
if (($sub == "hf") or ($sub == "all")){
$opt_count = 0;
$SQL = "SELECT * from system_security WHERE ss_uuid = '$pc' AND ss_timestamp = '$timestamp' ";
$result = mysql_query($SQL, $db);
echo "<tr><td class=\"contenthead\" colspan=\"4\"><br /><img src=\"images/software_2_l.png\" width=\"48\" height=\"48\" alt=\"\" /> $l_hfn</td><td></td></tr>\n";
if ($myrow = mysql_fetch_array($result)){
$bgcolor = "#F1F1F1";
do {
$cur_prod = $myrow["ss_product"];
if ($cur_prod <> $old_prod) {
echo "<tr><td colspan=\"4\"><b>" . $myrow["ss_product"] . "</b></td></tr>\n";
} else {}
if ($myrow["ss_status"] == "Information"){
echo "<tr><td colspan=\"4\"><b>" . $myrow["ss_status"] . ":</b> " . $myrow["ss_reason"] . "<br />&nbsp;</td></tr>\n";
} else {
if ($myrow["ss_status"] == "NOT Found") { $font_col = "red";} else {}
if ($myrow["ss_status"] == "Warning") { $font_col = "orange"; } else {}
if ($myrow["ss_status"] == "Information") { $font_col = "green"; } else {}
if ($myrow["ss_status"] == "Note") { $font_col = "blue"; } else {}
$sql2 = "SELECT * FROM system_security_bulletins WHERE ssb_qno = '" . $myrow["ss_qno"] . "'";
$result2 = mysql_query($sql2, $db);
if ($myrow2 = mysql_fetch_array($result2)){
do {
echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Details:</b></td><td colspan=\"3\"> <font color=\"" . $font_col . "\">" . $myrow["ss_status"] . "</font> - " . $myrow["ss_qno"] . " - " . $myrow2["ssb_bulletin"] . " - <a href=\"" . $myrow2["ssb_url"] . "\">Microsoft Page</a></td></tr>";
echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Title:</b></td><td colspan=\"3\"> " . $myrow2["ssb_title"] . "</td></tr>";
echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Description:</b></td><td colspan=\"3\"> " . $myrow2["ssb_description"] . "</td></tr>";
echo "<tr valign=\"top\" bgcolor=\"" . $bgcolor . "\"><td><b>Reason:</b></td><td colspan=\"3\"> " . $myrow["ss_reason"] . "<br />&nbsp;</td></tr>";
} while ($myrow2 = mysql_fetch_array($result2));
} else {}
}
$old_prod = $cur_prod;
if ($bgcolor == "#F1F1F1") {
$bgcolor = "#FFFFFF"; }
else { $bgcolor = "#F1F1F1"; }
} while ($myrow = mysql_fetch_array($result));
} else {
$bgcolor = "#F1F1F1";
echo "<tr bgcolor=\"$bgcolor\"><td colspan=\"4\">Nothing detected by $l_hfn.</td></tr>\n";
}
} // End of Hfnet
[/code]

This code goes in the include.php (Line 197) It makes the hfnet link work.

[code]
<li><a href="system_security.php?pc=<?php echo $pc; ?>&amp;sub=hf"><img src="images/software_2.png" alt="" /><?php echo $l_hfn; ?></a></li>

[/code]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 01, 2006 1:05 pm 
I will try and look at this later this week, sorry it's taken so long.


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