16 lines
383 B
PHP
Executable File
16 lines
383 B
PHP
Executable File
<?php
|
|
//$mac_address = "FC:FB:FB:01:FA:21";
|
|
$mac_address = readline("Mac Address: ");
|
|
|
|
$url = "https://api.macvendors.com/" . urlencode($mac_address);
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
$response = curl_exec($ch);
|
|
if($response) {
|
|
echo "Vendor : $response";
|
|
} else {
|
|
echo "Not Found";
|
|
}
|
|
?>
|