Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ####----All these commands were tested on kali linux 2.0 debian jessie----######
- clear
- printf "\nWelcome the MAC_FIND v1.0\n "
- printf "\n\nplease set the MAC Address:\n"
- printf "\n----> "
- read a3030b;
- clear
- GET www.coffer.com/mac_find/?string=$a3030b > macaddress.txt;
- c3030d="$(cat macaddress.txt | grep "table2" | tac | head -n1 | cut -d">" -f3 | cut -d"," -f1)"
- if [ "$c3030d" == "" ]; then
- clear
- echo "----------------------------------------"
- printf "\n\t--=[ MAC_ADDRESS ]=--\n\t\b\b--=[$a3030b]=--\n\n\t\t\b\b\b! UNKNOWN !\n"
- echo "----------------------------------------"
- printf "\n\n"
- rm -rf macaddress.txt
- exit;
- else
- echo "---------------------------------------"
- printf "\n\t--=[ MAC_ADDRESS ]=--\n\t\b\b--=[$a3030b]=--\n\n\t$c3030d\n"
- echo "--------------------------------------"
- rm -rf macaddress.txt
- fi
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement