渔夫微信互投票群

渔夫微信互投票群,越来越多的人在平常生活中使用微信,以微信为载体的许多功能就被开发和使用了起来,比如——微信投票。于是乎,微信上兴起了各种投票,从小学生到gov部门的投票活动都有,,刷票交易也越来越火。刷票单纯在请求的技术手段上,都是正常的访问请求,基本是没法识别的,但它真的像吃瓜群众一样说的没法认出来吗!

1.水军为了做更多生意自曝身份,在微信昵称上用了显而易见的刷票词语,比如用“票”筛选投票数据,就得到了大量的刷票信息,见图:

延伸阅读:

这几天朋友参加比赛需要,就写了个脚本帮忙.投票
我们首先来到要投票的 站上来看看。
随便找一个投上一票

然后我们登VPN 换一个IP 试试看。

然后接下来就是写脚本了。
由于我没有长期接触过Python 络方面的编程。以前也只是看着用Requests库爬了一些小 站的数据。

  1. #coding=utf-8  
  2. import urllib2  
  3. import urllib  
  4. import re  
  5. import threading  
  6. import sys  
  7. from time import ctime  
  8. import time  
  9. rlock = threading.RLock()  
  10. def vote(proxyIP,i,urls):  
  11.     try:  
  12.         #print “voting…%d…” % i  
  13.         #使用代理IP  
  14.         proxy_support = urllib2.ProxyHandler(proxyIP)  
  15.         opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler)  
  16.         #定义Opener  
  17.   
  18.         urllib2.install_opener(opener)  
  19.         #把opener绑定到全局  
  20.   
  21.         sendt = ‘投票’.decode(‘utf-8’).encode(‘gb2312’)  
  22.   
  23.         #设置刷票地址  
  24.         #post数据bn  
  25.         values = {}  
  26.         req = urllib2.urlopen(urls)  
  27.         #直接打开这个URL  
  28.         html = req.read()  
  29.         #读取返回数据  
  30.         if html.find(‘true’.decode(‘utf-8’).encode(‘gb2312’)):  
  31.             print “投票 [%d] 成功” % i  
  32.             return 1  
  33.         else:  
  34.             print “投票 [%d] 失败” % i  
  35.             return 0;  
  36.     except Exception:  
  37.         return False  
  38.   
  39. if __name__ == “__main__”:  
  40.     args = sys.argv  
  41.     if(len(args) == 3):  
  42.         ipFile = open(args[1]);  
  43.         ipList = ipFile.readlines()  
  44.         ipFile.close()  
  45.         length = range(len(ipList))  
  46.         threads = []  
  47.         for i in length:  
  48.             ipLine = ipList[i]  
  49.   
  50.             ip=ipLine.strip()  
  51.             proxy_ip = {‘http’: ip}  
  52.             t = threading.Thread(target=vote,args=(proxy_ip,i,args[2]))  
  53.             print “get “,args[2],ip  
  54.             threads.append(t)  
  55.         for i in length:  
  56.             threads[i].start();  
  57.             if i%100:  
  58.                 time.sleep(5)  
  59.                 #每100个线程等待 5秒  
  60.         for i in length:  
  61.             threads[i].join()  
  62.   
  63.     else:  
  64.         print “””刷票工具 
  65.                 python brush.py IP文件 Get地址: 
  66.  
  67.                 “””  

然后我们运行来看看结果
原来的票数

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2018年5月5日
下一篇 2018年5月5日

相关推荐