This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
#! usr/bin/python2
"""
__Author__ = Ci Ku ~ debby anggraini a.k.a xnver404
__Name__ = hasher
__version__ = 3.0.1 (alpha)
__Code__ = python
__Github__ = https://github.com/ciku370
__Date__ = 21 - 4 - 2018
__Team__ = Blackhole Security
__License__ = GNU General Public License V.3
(c) debby anggraini 2018
"""
import sys , hashlib , time , os , random , binascii
from urllib import urlopen, urlencode
from re import search
# color
if sys.platform == "linux" or sys.platform == "linux2":
BB = "\033[34;1m" # Blue light
YY = "\033[33;1m" # Yellow light
GG = "\033[32;1m" # Green light
WW = "\033[0;1m" # White light
RR = "\033[31;1m" # Red light
CC = "\033[36;1m" # Cyan light
B = "\033[34m" # Blue
Y = "\033[33m" # Yellow
G = "\033[32m" # Green
W = "\033[0m" # White
R = "\033[31m" # Red
C = "\033[36m" # Cyan
# Random color
rand = (BB,YY,GG,WW,RR,CC)
P = random.choice(rand)
elif sys.platform == "win32":
BB = '' # Blue light
YY = '' # Yellow light
GG = '' # Green light
WW = '' # White light
RR = '' # Red light
CC = '' # Cyan light
B = '' # Blue
Y = '' # Yellow
G = '' # Green
W = '' # White
R = '' # Red
C = '' # Cyan
P = '' # Random color
def banner():
print (RR+'\n Hash Cracker'+WW+' 3.0.1')
print (W+' ------------------------------------------')
print (P+' 88 88 db .dP"Y8 88 88 88888 88""Yb ')
print (P+' 88 88 dPYb `Ybo." 88 88 88__ 88__dP ')
print (P+' 888888 dP__Yb o.`Y8b 888888 88"" 88"Yb ')
print (P+' 88 88 dP""""Yb 8bodP 88 88 88888 88 Yb ')
print (W+' ------------------------------------------')
print (" \033[2;2m python2 "+sys.argv[0]+" --info\n"+W)
def info():
print (Y+"\n 0{======================"+W+" INFO "+Y+"=======================}0")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Name "+C+":"+W+" Hasher"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Code "+C+":"+W+" python"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Version "+C+":"+W+" 3.0.1 (alpha)"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Author "+C+":"+W+" Ci Ku "+R+"a.k.a "+W+"Xnver404"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Email "+C+":"+W+" [email protected]"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Github "+C+":"+W+" https://github.com/ciku370"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Date "+C+":"+W+" 23 - 02 - 2018"+Y+" |")
print (Y+" |"+B+" ["+R+"="+B+"] "+W+"Team "+C+":"+W+" Blackhole Security"+Y+" |")
print (Y+" 0{===================================================}0\n")
print (B+" ["+R+"="+B+"] "+W+"python2 "+sys.argv[0]+" -u to update wordlist "+B+"["+R+"="+B+"]")
print (B+"\n ["+R+"="+B+"] "+W+"list of supported hashes :"+Y+" ["+W+"01"+Y+"] "+C+"md4")
print (Y+" ["+W+"02"+Y+"] "+C+"md5")
print (Y+" ["+W+"03"+Y+"] "+C+"sha1")
print (Y+" ["+W+"04"+Y+"] "+C+"sha224")
print (Y+" ["+W+"05"+Y+"] "+C+"sha256")
print (Y+" ["+W+"06"+Y+"] "+C+"sha384")
print (Y+" ["+W+"07"+Y+"] "+C+"sha512")
print (Y+" ["+W+"08"+Y+"] "+C+"ripemd160")
print (Y+" ["+W+"09"+Y+"] "+C+"whirlpool")
print (Y+" ["+W+"10"+Y+"] "+C+"MySQL 3.2.3")
print (Y+" ["+W+"11"+Y+"] "+C+"MySQL 4.1")
print (Y+" ["+W+"12"+Y+"] "+C+"MSSQL 2000")
print (Y+" ["+W+"13"+Y+"] "+C+"MSSQL 2005")
print (Y+" ["+W+"14"+Y+"] "+C+"Nthash")
print (Y+" ["+W+"15"+Y+"] "+C+"lmhash")
print (Y+" ["+W+"16"+Y+"] "+C+"NTLM hash\n"+W)
def Update():
if sys.platform == "linux" or sys.platform == "linux2":
print (B+" 0={"+W+" UPDATE WORDLIST "+B+"}=0\n")
time.sleep(1)
print (B+"["+W+"="+B+"] "+G+"remove old wordlist")
os.system("rm -rf wordlist.txt")
time.sleep(1)
print (B+"["+W+"="+B+"] "+G+"downloading new wordlist")
time.sleep(1)
print (R+"["+W+"*"+R+"] "+R+"Curl Started ...\n"+W)
os.system("curl https://raw.githubusercontent.com/CiKu370/hasher/master/wordlist.txt -o wordlist.txt")
print (R+"\n["+W+"*"+R+"] "+G+"download Finish\n"+W)
sys.exit()
else:
print ("sorry, word list update feature is only available on linux platform\n")
sys.exit()
try:
# module tambahan
import progressbar
from passlib.hash import mysql323 as m20
from passlib.hash import mysql41 as m25
from passlib.hash import mssql2000 as ms20
from passlib.hash import mssql2005 as ms25
from passlib.hash import nthash as nthash
from passlib.hash import lmhash as lmhash
except ImportError:
banner()
time.sleep(0.5)
print (B+"["+W+"="+B+"] "+G+"installing module "+R+"progressbar , passlib\n"+W)
os.system("pip2 install --upgrade pip")
os.system("pip2 install passlib")
os.system("pip2 install progressbar")
print (B+"\n["+W+"="+B+"] "+G+"install success , run program again\n"+W)
sys.exit()
def hash():
banner()
hash_str = raw_input(B+"["+W+"?"+B+"]"+G+" Hash : "+W)
# time.sleep(0.5)
print (B+"["+R+"="+B+"] "+G+"Cek Hash Type ...")
# time.sleep(1)
# Contoh Hash nya , nb : jangan di ubah ntar error
SHA512= ('dd0ada8693250b31d9f44f3ec2d4a106003a6ce67eaa92e384b356d1b4ef6d66a818d47c1f3a2c6e8a9a9b9bdbd28d485e06161ccd0f528c8bbb5541c3fef36f')
md = ('ae11fd697ec92c7c98de3fac23aba525')
sha1 = ('4a1d4dbc1e193ec3ab2e9213876ceb8f4db72333')
sha224 = ('e301f414993d5ec2bd1d780688d37fe41512f8b57f6923d054ef8e59')
sha384 = ('3b21c44f8d830fa55ee9328a7713c6aad548fe6d7a4a438723a0da67c48c485220081a2fbc3e8c17fd9bd65f8d4b4e6b')
sha256 = ('2c740d20dab7f14ec30510a11f8fd78b82bc3a711abe8a993acdb323e78e6d5e')
mysql1323 = ("5d2e19393cc5ef67")
mysql41 = ("*88166B019A3144C579AC4A7131BCC3AD6FF61DA6")
mssql2000 = ("0x0100DE9B3306258B37432CAC3A6FB7C638946FA393E09C9CBC0FA8C6E03B803390B1C3E7FB112A21B2304595D490")
mssql2005 = ('0x01008110620C7BD03A38A28A3D1D032059AE9F2F94F3B74397F8')
if len(hash_str)==len(mysql1323) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"mysql 3.2.3")
hash = "mysql1323"
elif len(hash_str)==len(mysql41) and "*" in hash_str:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"mysql 4.1")
hash = "mysql41"
elif len(hash_str)==len(mssql2000) and "0x0" in hash_str:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"Mssql2000")
hash = "mssql2000"
elif len(hash_str)==len(mssql2005) and "0x0" in hash_str:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"Mssql2005")
hash = "mssql2005"
elif len(hash_str)==len(SHA512) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (Y+" ["+W+"01"+Y+"] "+C+"sha512")
print (Y+" ["+W+"02"+Y+"] "+C+"whirlpool")
# time.sleep(0.3)
cek = raw_input(B+"["+W+"?"+B+"] "+G+"Choose hash "+Y+">>> "+W)
if cek == "1" or cek == "01" or cek == "sha512":
hash = "sha512"
elif cek == "2" or cek == "02" or cek == "whirlpool":
hash = "whirlpool"
else:
print (R+"["+W+"!"+R+"] "+G+"Exiting ... \n")
# time.sleep(0.5)
sys.exit()
elif len(hash_str)==len(md) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (Y+" ["+W+"01"+Y+"] "+C+"md4")
print (Y+" ["+W+"02"+Y+"] "+C+"md5")
print (Y+" ["+W+"03"+Y+"] "+C+"Nthash")
print (Y+" ["+W+"04"+Y+"] "+C+"Lmhash")
print (Y+" ["+W+"05"+Y+"] "+C+"Ntlm hash")
# time.sleep(0.3)
cek = raw_input(B+"["+W+"?"+B+"] "+G+"Choose Hash "+Y+">>> "+W)
if cek == "1" or cek == "01" or cek == "md4" or cek == "MD4" or cek == "Md4":
hash = "md4"
elif cek == "2" or cek == "02" or cek == "md5" or cek == "MD5" or cek == "Md5":
try:
print (B+"["+R+"="+B+"] "+G+"open google")
# time.sleep(0.3)
print (B+"["+W+"*"+B+"] "+G+"Start ...")
# time.sleep(0.3)
start = ("00:00:00")
start1 = time.time()
print (B+"\n["+W+"{}"+B+"] "+G+"Searching..."+Y).format(start)
data = urlencode({"md5":hash_str,"x":"21","y":"8"})
html = urlopen("http://md5.my-addr.com/md5_decrypt-md5_cracker_online/md5_decoder_tool.php", data)
find = html.read()
match = search (r"<span class='middle_title'>Hashed string</span>: [^<]*</div>", find)
if match:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"] "+G+"Stopped...").format(end)
# time.sleep(0.3)
print (B+"\n["+W+"="+B+"]"+G+" password found ")
print (B+"["+W+"+"+B+"] "+W+(hash_str)+Y+" 0={==> "+W+(match.group().split('span')[2][3:-6])+"\n")
sys.exit()
else:
data = urlencode({"md5":hash_str,"x":"21","y":"8"})
html = urlopen("http://md5.my-addr.com/md5_decrypt-md5_cracker_online/md5_decoder_tool.php", data)
find = html.read()
match = search (r"<span class='middle_title'>Hashed string</span>: [^<]*</div>", find)
if match:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"] "+G+"Stopped...").format(end)
# time.sleep(0.3)
print (B+"\n["+W+"="+B+"]"+G+" password found ")
print (B+" ["+W+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+match.group().split('span')[2][3:-6]+W+" \n")
sys.exit()
else:
url = "http://www.nitrxgen.net/md5db/" + hash_str
cek = urlopen(url).read()
if len(cek) > 0:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"] "+G+"Stopped...").format(end)
# time.sleep(0.3)
print (B+"\n["+W+"="+B+"]"+G+" password found ")
print (B+"["+W+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+cek+"\n")
sys.exit()
else:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n").format(end)
hash = "md5"
except IOError:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" Timeout\n").format(end)
hash = "md5"
elif cek == "03" or cek == "3" or cek.upper() == "NTHASH":
hash = "nthash"
elif cek == "04" or cek == "4" or cek.upper() == "LMHASH":
hash = "lmhash"
elif cek == "05" or cek == "5" or cek.upper() == "NTLM":
hash = "ntlm"
else:
print (R+"["+W+"!"+R+"] "+G+"Exiting ... \n"+W)
# time.sleep(0.5)
sys.exit()
elif len(hash_str)==len(sha1) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (Y+" ["+W+"01"+Y+"] "+C+"sha1")
print (Y+" ["+W+"02"+Y+"] "+C+"ripemd160")
# time.sleep(0.3)
cek = raw_input(B+"["+W+"?"+B+"] "+G+"Choose Hash "+Y+">>> "+W)
if cek == "1" or cek == "01" or cek == "sha1" or cek == "SHA1" or cek == "Sha1":
# time.sleep(0.5)
print (B+"["+R+"="+B+"] "+G+"open google")
# time.sleep(0.3)
print (B+"["+W+"*"+B+"] "+G+"Start ...")
# time.sleep(0.3)
start = ("00:00:00")
start1 = time.time()
print (B+"\n["+W+"{}"+B+"] "+G+"Searching..."+Y).format(start)
try:
data = urlencode({"auth":"8272hgt", "hash":hash_str, "string":"","Submit":"Submit"})
html = urlopen("http://hashcrack.com/index.php" , data)
find = html.read()
match = search (r'<span class=hervorheb2>[^<]*</span></div></TD>', find)
if match:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"] "+G+"Stopped...").format(end)
# time.sleep(0.3)
print (B+"\n["+W+"="+B+"]"+G+" password found ")
print (B+"["+W+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+match.group().split('hervorheb2>')[1][:-18]+"\n")
sys.exit()
else:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n").format(date)
hash = "sha1"
except IOError:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" Timeout\n").format(end)
hash = "sha1"
elif cek == "2" or cek == "02" or cek == "ripemd160":
hash = 'ripemd160'
else:
print (R+"["+W+"!"+R+"] "+G+"Exiting ... \n"+W)
# time.sleep(0.5)
sys.exit()
elif len(hash_str)==len(sha224) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"SHA224")
hash = "SHA224"
elif len(hash_str)==len(sha384) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"SHA384")
hash = "SHA384"
elif len(hash_str)==len(sha256) and hash_str.isdigit()==False and hash_str.isalpha()==False and hash_str.isalnum()==True:
print (B+"["+R+"="+B+"] "+G+"hash type : "+W+"sha256")
# time.sleep(0.5)
print (B+"["+R+"="+B+"] "+G+"open google")
# time.sleep(0.3)
print (B+"["+W+"*"+B+"] "+G+"Start ...")
# time.sleep(0.3)
start = ("00:00:00")
start1 = time.time()
print (B+"\n["+W+"{}"+B+"] "+G+"Searching..."+Y).format(start)
try:
data = urlencode({"hash":hash_str, "decrypt":"Decrypt"})
html = urlopen("http://md5decrypt.net/en/Sha256/", data)
find = html.read()
match = search (r'<b>[^<]*</b><br/><br/>', find)
if match:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"] "+G+"Stopped...").format(end)
# time.sleep(0.3)
print (B+"\n["+W+"="+B+"]"+G+" password found ")
print (B+"["+W+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+match.group().split('<b>')[1][:-14]+"\n")
sys.exit()
else:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n").format(end)
hash = "sha256"
except IOError:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" Timeout\n").format(end)
hash = "sha256"
else:
print (R+"["+W+"!"+R+"] "+G+"Hash error\n"+W)
sys.exit()
time.sleep(0.1)
print (B+"["+W+"="+B+"] "+G+"cek wordlist ..")
try:
w = open("wordlist.txt","r").readlines()
x = len(w)
except IOError:
# time.sleep(0.5)
print (B+"["+R+"="+B+"]"+G+" Can't load "+W+"wordlist.txt, "+G+"file not exist\n"+W)
sys.exit()
# time.sleep(0.3)
print (B+"["+R+"="+B+"] "+G+"load "+W+"{}"+G+" words in "+W+"wordlist.txt").format(x)
print (B+"["+W+"*"+B+"] "+G+"start ..\n")
# time.sleep(1)
start = ("00:00:00")
start1 = time.time()
print (B+"["+W+"{}"+B+"] "+G+"Cracking..."+Y).format(start)
pbar = progressbar.ProgressBar()
if hash == "mysql1323":
hash_str = hash_str.lower()
for line in pbar(w):
line = line.strip()
h = m20.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "lmhash":
hasb_str = hash_str.upper()
for line in pbar(w):
line = line.strip()
h = lmhash.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "nthash":
hasb_str = hash_str.upper()
for line in pbar(w):
line = line.strip()
h = nthash.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "mysql41":
hash_str = hash_str.upper()
for line in pbar(w):
line = line.strip()
h = m25.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "mssql2000":
hash_str = hash_str.upper()
for line in pbar(w):
line = line.strip()
h = ms20.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "ntlm":
hash_str = hash_str.lower()
for line in pbar(w):
line = line.strip()
h = ntlm_hash = binascii.hexlify(hashlib.new('md4', line.encode('utf-16le')).digest())
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
elif hash == "mssql2005":
hasb_str = hash_str.upper()
for line in pbar(w):
line = line.strip()
h = ms25.encrypt(line)
if h == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
else:
hash_str = hash_str.lower()
for line in pbar(w):
line = line.strip()
h = hashlib.new(hash)
h.update(line)
if h.hexdigest() == hash_str:
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
# time.sleep(0.3)
print (B+"\n["+W+"{}"+B+"] "+G+"Stopped...\n").format(end)
# time.sleep(0.3)
print (B+"["+W+"="+B+"]"+G+" password found ")
print (B+"["+R+"+"+B+"] "+W+hash_str+Y+" 0={==> "+W+line+W+"\n")
sys.exit()
end = time.strftime("%H:%M:%S", time.gmtime(time.time() - start1))
print (B+"["+W+"{}"+B+"]"+G+" password not found\n"+W).format(end)
sys.exit()
try:
if sys.argv[1] == "-u":
Update()
elif sys.argv[1] == "-i" or sys.argv[1] == "--info":
info()
else:
print (R+"["+W+"!"+R+"] "+G+"Command Error !!"+W)
sys.exit()
except IndexError:
hash()
" Thanks you ^^"