Advertisement
fenix_of_fire

Mac Find v1.0

Jan 22nd, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.85 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ####----All these commands were tested on kali linux 2.0 debian jessie----######
  4.  
  5. clear
  6. printf "\nWelcome the MAC_FIND v1.0\n "
  7. printf "\n\nplease set the MAC Address:\n"
  8. printf "\n----> "
  9. read a3030b;
  10. clear
  11. GET www.coffer.com/mac_find/?string=$a3030b > macaddress.txt;
  12. c3030d="$(cat macaddress.txt | grep "table2" | tac | head -n1 | cut -d">" -f3 | cut -d"," -f1)"
  13. if [ "$c3030d" == "" ]; then
  14. clear
  15. echo "----------------------------------------"
  16. printf "\n\t--=[ MAC_ADDRESS ]=--\n\t\b\b--=[$a3030b]=--\n\n\t\t\b\b\b! UNKNOWN !\n"
  17. echo "----------------------------------------"
  18. printf "\n\n"
  19. rm -rf macaddress.txt
  20. exit;
  21. else
  22. echo "---------------------------------------"
  23. printf "\n\t--=[ MAC_ADDRESS ]=--\n\t\b\b--=[$a3030b]=--\n\n\t$c3030d\n"
  24. echo "--------------------------------------"
  25. rm -rf macaddress.txt
  26. fi
  27. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement