mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 04:54:26 +01:00
Use https for the macvendors check
This commit is contained in:
parent
f7bd3b0330
commit
191f1bc8df
@ -404,7 +404,7 @@ def getDefaultInterfaceMAC():
|
|||||||
def resolveMac(mac):
|
def resolveMac(mac):
|
||||||
try:
|
try:
|
||||||
# sen request to macvendors.co
|
# sen request to macvendors.co
|
||||||
url = "http://macvendors.co/api/vendorname/"
|
url = "https://macvendors.co/api/vendorname/"
|
||||||
request = urllib.Request(url + mac, headers={'User-Agent': "API Browser"})
|
request = urllib.Request(url + mac, headers={'User-Agent': "API Browser"})
|
||||||
response = urllib.urlopen(request)
|
response = urllib.urlopen(request)
|
||||||
vendor = response.read()
|
vendor = response.read()
|
||||||
@ -484,4 +484,4 @@ if __name__ == '__main__':
|
|||||||
# commence scanning process
|
# commence scanning process
|
||||||
scanNetwork()
|
scanNetwork()
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user