echo -e "\x1b[37m------------------- .[d]."
echo -e "\x1b[35mtesting kms servers"
echo -e "\x1b[37m-------------------"
curl -s https://gist.githubusercontent.com/Zibri/69d55039e5354100d2f8a053cbe64c5a/raw/cbc62032d51441ac8db4b4ac415316b45904f949/kms.md|grep "*"|cut -c 3-|xargs -I{} bash -c 'nslookup -type=srv {} > /dev/null 2>&1; [ ! "$?" -eq 1 ] && ( echo -e "\x1b[32mPASS {}" ) || ( echo -e "\x1b[31mFAIL {}" )'
echo -e "\x1b[37m----------------------------------------"
echo -e "\x1b[35mslmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX"
echo -e "\x1b[35mslmgr /skms server:1688"
echo -e "\x1b[35mslmgr /ato"
