Skip to content

Instantly share code, notes, and snippets.

@genru
genru / report-ad.sh
Last active August 12, 2018 02:27
shell script report abuse phone ad. to 12321
# replace 13813986361 to your owner phone number recevied ad phone call
# replace 02566071085 with number incoming phone number
# replace 2018-08-09+13%3A36 with date time when it happen, url encoded string of course
# replace %E6%8E%A8%E9%94%80%E5%B0%91%E5%84%BF%E5%9F%B9%E8%AE%AD with url encoed reason why it's a phone adveristing.
curl 'https://12321.cn/Com-update?strName=jb_tel' -H 'Pragma: no-cache' -H 'Origin: https://12321.cn' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Mobile Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'code=ewsh&type=2&bad_type=6&phone=13813986361&sms_phone=02566071085&sms_content=%E6%8E%A8%E9%94%80%E5%B0%91%E5%84%BF%E5%9F%B9%E8%AE%AD&called_time=20