Subversion Repositories ALCASAR

Rev

Rev 3193 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3193 Rev 3194
Line 190... Line 190...
190
			echo "<td>".$nb_ligne."</td>";
190
			echo "<td>".$nb_ligne."</td>";
191
			echo "<td>".$detail[1]."</td>"; // @IP
191
			echo "<td>".$detail[1]."</td>"; // @IP
192
			echo "<td>$detail[0]"; // @MAC
192
			echo "<td>$detail[0]"; // @MAC
193
			if(file_exists('/usr/share/nmap/nmap-mac-prefixes')){ // retrieve @MAC manufacturer
193
			if(file_exists('/usr/share/nmap/nmap-mac-prefixes')){ // retrieve @MAC manufacturer
194
				$oui_id = substr(str_replace("-","",$detail[0]),0,6);
194
				$oui_id = substr(str_replace("-","",$detail[0]),0,6);
195
				exec ("grep $oui_id /usr/share/nmap/nmap-mac-prefixes | cut -f2", $mac_manufacturer);
195
				exec ("grep ^$oui_id /usr/share/nmap/nmap-mac-prefixes | cut -d' ' -f2-", $mac_manufacturer);
196
				if(! empty($mac_manufacturer[0])) echo " <font size=\"1\">($mac_manufacturer[0])</font>";
196
				if(! empty($mac_manufacturer[0])) echo " <font size=\"1\">($mac_manufacturer[0])</font>";
197
					else echo " <font size=\"1\">($l_unknown)</font>";
197
					else echo " <font size=\"1\">($l_unknown)</font>";
198
				unset($mac_manufacturer);
198
				unset($mac_manufacturer);
199
			}
199
			}
200
			exec ("grep $detail[0] /usr/local/etc/alcasar-ethers-info |cut -d' ' -f3", $mac_in_ether_file); // retrieve @MAC info
200
			exec ("grep $detail[0] /usr/local/etc/alcasar-ethers-info |cut -d' ' -f3", $mac_in_ether_file); // retrieve @MAC info