Created
November 15, 2017 13:14
-
-
Save i-sync/17f46fd5274f410bf503fffeafa31883 to your computer and use it in GitHub Desktop.
google voice script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| contains() { | |
| string="$1" | |
| substring="$2" | |
| if test "${string#*$substring}" != "$string" | |
| then | |
| echo "# $substring is in $string" | |
| return 0 # $substring is in $string | |
| else | |
| echo "# $substring is not in $string" | |
| return 1 # $substring is not in $string | |
| fi | |
| } | |
| while true; do | |
| result=$(curl 'https://www.google.com/voice/b/0/service/post' -H 'origin: https://www.google.com' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.8' -H 'user-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded;charset=UTF-8' -H 'accept: */*' -H 'referer: https://www.google.com/voice/b/0' -H 'authority: www.google.com' -H 'cookie: gv=vgRoyqduVIXMdtw9wQHWdr3gTbRnGyt9YdD_HcNRwBhjJfZF1h6SazM5uW6Emg9G6Hze3w.; GV_NR=1; SID=vgRoys5y-9Gs-JdoZCtRyxgGBKrPahe0r_nenm-3z4BiYY13mXjVtlpLV2b-j7ZHmWVwYg.; HSID=A8e5btm4EzOdCCdwH; SSID=AI6fNX2g5Gvv-kfQc; APISID=VBeDfkB3jrYpQQW3/Ac7-cqiHowUHqg-LI; SAPISID=vfTNASv26x9TB6EX/Alp29SmupSaI5f-RW; S=grandcentral=gVYl2I6e8SdQR0W5X0PdAqnxkXeM8VFR:billing-ui-v3=DGX0VIY3f1MraHkl2XxUAe_Ac9lgrD_T:billing-ui-v3-efe=DGX0VIY3f1MraHkl2XxUAe_Ac9lgrD_T; _ga=GA1.1.1045633102.1496121777; _gid=GA1.1.491293110.1496121777; NID=104=nz-RUtAFTrDMkcQIKT4hN5huz5ERQ7wuVWVlrH3HwLQSY7U5mdCBIXpdp34bhG7d-NgCK59autE4fgOIdfI5Q_HMfpEoNMRLHRk6GwIWA-ORGimIHtXT4LXpe60OoB99_WtWfZBm9P9MBhYwVL6ctOgzfDBLjRDNdMYZAl_nMIs3npeaEB4PZYH5WxrvwtRtvbbLiWqCL-8K5hcmpjL0zPV8Xp4GyrCe3ePmiKju4bEvJVv0UuVzcDtdD02jXPJaAPsuYoDBgI3Jkg' -H 'x-client-data: CJC2yQEIpbbJAQjEtskBCPucygEIqZ3KAQjRnsoB' --data 'sid=3&mid=6&req=%5Bnull%2C%22%2B19298889038%22%2Ctrue%2C%22%22%5D&_rnr_se=wUPLMx46bYJ%2FXdqsJxfDp4fj%2FAY%3D' --compressed) | |
| contains "$result" "error" || exit 0 | |
| sleep 1.5 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment