22 lines
638 B
Bash
Executable File
22 lines
638 B
Bash
Executable File
#!/usr/bin/env bash
|
|
API="https://api.macvendors.com"
|
|
|
|
function banner() {
|
|
|
|
echo -e "
|
|
_______ _______ _______ _______ _ _
|
|
(_______|_______|_______) (_______|_) | |
|
|
_ _ _ _______ _ _____ _ ____ __| |_____ ____
|
|
| ||_|| | ___ | | | ___) | | _ \ / _ | ___ |/ ___)
|
|
| | | | | | | |_____ | | | | | | ( (_| | ____| |
|
|
|_| |_|_| |_|\______) |_| |_|_| |_|\____|_____)_|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
banner
|
|
read -p "Mac Address: " MAC
|
|
VENDOR=`curl ${API}/${MAC} 2> /dev/null`
|
|
echo -e "Vendor: ${VENDOR}"
|