Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 2887 → Rev 2888

/web/acc/manager/htdocs/activity.php
48,7 → 48,7
$l_action = "Action";
$l_dissociate = "Dissocier @IP";
$l_disconnect = "Déconnecter";
$l_stop_capture_disconnect = "Arrêter la capture et se déconnecter";
$l_stop_capture_disconnect = "Arrêter la capture et déconnecter";
$l_refresh = "Cette page est rafraichie toutes les 30 secondes";
$l_edit_user = "Editer l'utilisateur";
$l_connect = "Autoriser temporairement";
170,15 → 170,14
echo "<tr valign=\"middle\">";
echo "<td>".$nb_ligne."</td>";
echo "<td>".$detail[1]."</td>";
if(file_exists('/usr/share/arp-scan/ieee-oui.txt')) // for each device on LAN, retrieve the MAC manufacturer
if(file_exists('/usr/local/share/nmap-mac-prefixes')) // for each device on LAN, retrieve the MAC manufacturer
{
$oui_id = substr(str_replace("-","",$detail[0]),0,6);
exec ("grep $oui_id /usr/share/arp-scan/ieee-oui.txt | cut -f2", $mac_manufacturer);
if(empty($mac_manufacturer[0]))
exec ("grep $oui_id /usr/local/share/nmap-mac-prefixes | cut -f2", $mac_manufacturer);
if(! empty($mac_manufacturer[0]))
{
$mac_manufacturer[0] = "Unknown";
echo "<td>$detail[0] <font size=\"1\">($mac_manufacturer[0])</font>";
}
echo "<td>$detail[0] <font size=\"1\">($mac_manufacturer[0])</font>";
unset($mac_manufacturer);
}
else
214,7 → 213,6
echo "</td><td>";
echo "<FORM action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\">";
echo "<INPUT type=\"hidden\" name=\"mac_addr\" value=\"$detail[0]\">";
 
if($IoT_capture == "on")
{
if(exec('sudo /usr/local/bin/alcasar-iot_capture.sh -i '.$detail[0]) == "CaptureON")
226,10 → 224,10
{
echo "<INPUT type=\"submit\" name=\"action\" value=\"$l_disconnect\">";
echo "<BR><INPUT type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
$file = '/var/Save/iot_captures/'.$mac.'.pcap';
$file = '/var/Save/iot_captures/'.$detail[0].'.pcap';
if (file_exists($file))
{
echo "<BR><a href=\"/save/iot_captures/$mac.pcap\">$mac.pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$mac.".pcap");echo ")";
echo "<BR><center><a href=\"/save/iot_captures/$detail[0].pcap\">$detail[0].pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$detail[0].".pcap");echo ")</center>";
}
}
}
281,10 → 279,10
{
echo "<BR><INPUT type=\"submit\" name=\"action\" value=\"$l_captureon\">";
echo "<INPUT type=\"submit\" name=\"action\" value=\"$l_captureonly_on\">";
$file = '/var/Save/iot_captures/'.$mac.'.pcap';
$file = '/var/Save/iot_captures/'.$detail[0].'.pcap';
if (file_exists($file))
{
echo "<BR><a href=\"/save/iot_captures/$mac.pcap\">$mac.pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$mac.".pcap");echo ")";
echo "<BR><center><a href=\"/save/iot_captures/$detail[0].pcap\">$detail[0].pcap</a> (";echo taille_fichier("/var/Save/iot_captures/".$detail[0].".pcap");echo ")</center>";
}
}
}
298,4 → 296,3
</td></tr>
</table>
</html>