mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Using HTTPS for macvendor lookups instead of HTTP (#17)
Updates WPS, MACInfo, SiteSurvey, and Status modules.
This commit is contained in:
committed by
Sebastian Kinne
parent
4a8791edbb
commit
5d005e4ba2
@@ -17,7 +17,7 @@ class MACInfo extends Module
|
||||
private function getMACInfo($mac)
|
||||
{
|
||||
if($this->IsValidMAC($mac)){
|
||||
$url = "http://macvendors.co/api/" . $mac . "/JSON";
|
||||
$url = "https://macvendors.co/api/" . $mac . "/JSON";
|
||||
$retJSON = file_get_contents($url);
|
||||
if($retJSON != false){
|
||||
$mInfo = json_decode($retJSON);
|
||||
@@ -42,4 +42,4 @@ class MACInfo extends Module
|
||||
$pregResult = preg_match('/([a-fA-F0-9]{2}[:|\-]?){6}/', $mac);
|
||||
return ($pregResult != 0 && $pregResult != NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user