1024 1024邀请码获取器!!!

代码片段(1)
1.&[代码][Python]代码&&&&
#encoding: utf-8
import requests
# HTTP LIB requests: http://docs.python-requests.org/en/latest/
class CodeSearch1024():
def __init__(self,codeWithMask,parent=None):
self.url='http://***/register.php'
self.codeWithMask = codeWithMask
self.chars= 'abcdefghijklmnopqrstuvwxyz'
self.chars1 = 'abcdefghijklmnopqrstuvwxyz'
self.chars2 = ''
def getMaskCount(self):
for ch in self.codeWithMask:
if ch == '*':
count += 1
return count
def start(self):
maskCount = self.getMaskCount()
self.codeWithMask = self.codeWithMask.replace('*','%s')
if maskCount&3:
print(u'暂时不能处理大于3个隐藏字符的邀请码')
if maskCount == 0:
code = self.codeWithMask
result = self.doReg(code,0)
if result == 'found':
print('%s found!' % (code))
print('%s %s!' % (code,result))
elif maskCount == 1:
for ch in self.chars:
code = self.codeWithMask % (ch)
result = self.doReg(code,0)
if result == 'found':
print('%s found!' % (code))
print('%s %s!' % (code,result))
elif maskCount == 2:
for ch1 in self.chars:
for ch2 in self.chars:
code = self.codeWithMask % (ch1,ch2)
result = self.doReg(code,0)
if result == 'found':
print('%s found!' % (code))
print('%s %s!' % (code,result))
elif maskCount == 3:
for ch1 in self.chars:
for ch2 in self.chars:
for ch3 in self.chars:
code = self.codeWithMask % (ch1,ch2,ch3)
result = self.doReg(code,0)
if result == 'found':
print('%s found!' % (code))
print('%s %s!' % (code,result))
print('done!')
def doReg(self,code,n):
#可重试5次
return 'timeout'
postData = {'regname':'xxxxxxx',
'regpwd':'999999',
'regpwdrepeat':'999999',
'regemail':'',
'invcode':code,
'forward':'',
'step':'2'
r = requests.post(url=self.url,data=postData)
html = r.text.encode(r.encoding).decode('gbk')
if html.find(u'邀請碼錯誤')&-1:
return 'incorrect'
return 'found'
return self.doReg(code,n+1) #递归
code = raw_input(u'Please input a code: ') # e.g.: *8m*9754yupt307t
reg = CodeSearch1024(code)
reg.start()
raw_input()
开源中国-程序员在线工具:
相关的代码(100)
11回/2877阅
17回/5080阅
2楼:lazyphp 发表于
3楼:NealFeng 发表于
,自己动手丰衣足食
4楼:appjack 发表于
5楼:nice_so 发表于
似乎不注册也是一样的。
6楼:麦琪 发表于
有号,但很少登陆,反正也能下载。
7楼:拜仁慕尼黑 发表于
找个女朋友吧,,别TM撸了
8楼:YeaWind 发表于
引用来自“麦琪”的评论有号,但很少登陆,反正也能下载。找个充气娃娃吧,别TM撸了
9楼:wjyhumor 发表于
引用来自“YeaWind”的评论引用来自“麦琪”的评论有号,但很少登陆,反正也能下载。找个充气娃娃吧,别TM撸了效果是一样的
10楼:wjyhumor 发表于
引用来自“nice_so”的评论似乎不注册也是一样的。
注册了可以搜索。。。
11楼:小-菜 发表于
小心登录了被查水表~~
12楼:知之为知之 发表于
PM个地址~ 1024
13楼:wireshark 发表于
哪里可以获取邀请码的地址?
14楼:秌子 发表于
怎么用呀。为什么我都用不了?
开源从代码分享开始
wjyhumor的其他代码广告载入中......
只看作者回帖
只看我的回帖
广告载入中......买邀请码、账号或者USD加我的QQ:,联系我时说明在天涯看到
CL邀请码1024关注了25个人
生活常识达人
26个问题 87个回答
流行时尚,娱乐达人
12个问题 16个回答
旅游,摄影爱好者
320个问题 464个回答
旅游,运动健身爱好者
53个问题 62个回答
美食爱好者
886个问题 383个回答
社会学博士生
746个问题 811个回答
心理咨询师
961个问题 690个回答
婴幼儿咨询师
1404个问题 592个回答
旅游爱好者和体育达人
287个问题 3411个回答
科学化妆品控
282个问题 803个回答
人际关系,情商,心灵达人
76个问题 71个回答
互联网,媒体经济,文化产业达人
1个问题 1347个回答
情感专家,文学艺术爱好者
1个问题 1474个回答
互联网从业者
60个问题 464个回答
旅游达人,行走中。。。
526个问题 3080个回答
婴幼儿咨询师
40个问题 96个回答
社会学博士生
117个问题 2248个回答
diy爱好者与手工达人
108个问题 5556个回答
该用户没有自我介绍
1个问题 5个回答
该用户还没用户描述
0个问题 0个回答
该用户还没用户描述
0个问题 0个回答
我们的头发和肩上都被白雪覆盖。仿佛一瞬间我们已经携手走到白头。
0个问题 0个回答
本人开淘宝店的。。店名 CL小黑黑
我的女装淘宝网址/
1个问题 0个回答
0个问题 0个回答
该用户还没用户描述
0个问题 0个回答

我要回帖

更多关于 cl 的文章

 

随机推荐