-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmacaddress.py
More file actions
24 lines (22 loc) · 753 Bytes
/
macaddress.py
File metadata and controls
24 lines (22 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import requests
R = '\033[31m' # red
G = '\033[32m' # green
C = '\033[36m' # cyan
W = '\033[0m' # white
def MacAddressLookup():
mac = input(C+"Enter the MAC Address (Eg:08:00:69:02:01:FC):"+W)
print ( W + '[+]' + G + "Processing Mac Address..." + '\n')
url = ("https://macvendors.co/api/" + mac)
response=requests.get(url)
result=response.json()
if result["result"]:
final=result['result']
print(C+"Company:" + W+final["company"])
print(C+"Address:" + W+final["address"])
print(C+"Country:" + W+final["country"])
ch=input(C+"Want to Redo (Y/N):"+W)
if ch=="y" or ch=="Y":
MacAddressLookup()
print("")
else:
print(R+"Error: Something Went Wrong")