Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.bold,
colors.fg.green,
"[...]" + data[-135:],
colors.reset,
)
)
else:
print(
"{}{}{:15}{}|{}{:>25.25}{} > {}{}{}{}".format(
colors.fg.lightblue,
colors.bold,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.bold,
colors.fg.green,
data,
colors.reset,
)
)
elif "HASH" in source:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
source,
colors.fg.lightgrey,
target,
colors.fg.lightgrey,
colors.fg.lightcyan,
data,
colors.reset,
)
)
elif "SOURCE" in source:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.reset,
data,
colors.reset,
)
)
else:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.fg.red,
data,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.bold,
colors.fg.green,
data,
colors.reset,
)
)
elif "HASH" in source:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.fg.red,
data,
colors.reset,
)
)
elif "USER" in source:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
def info_news(news):
"""
Print an information with grey text
"""
print(
colors.bold
+ colors.fg.lightblue
+ "[~] "
+ colors.reset
+ colors.fg.lightgrey
+ news.strip()
+ colors.reset
)
def print_result(target, data, source):
"""
Print Breach results
"""
if "PASS" in source:
print(
"{}{}{:15}{}|{}{:>25.25}{} > {}{}{}{}".format(
colors.fg.lightblue,
colors.bold,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
colors.fg.lightgrey,
colors.bold,
colors.fg.green,
data,
colors.reset,
)
)
elif "LOCALSEARCH" in source:
if len(data) > 140:
print(
"{}{}{:15}{}|{}{:>25.25}{} > {}{}{}{}".format(
colors.fg.lightblue,
colors.bold,
source,
colors.fg.lightgrey,
colors.fg.pink,
target,
"\n\n",
)
print("{:^40} | ".format("Target"), "{:^40}".format("Status"), c.reset)
print("{:_^90}\n".format(""))
for t in breached_targets:
if t.pwned is not 0:
print(
f"{t.target:^40} | ",
c.fg.green,
"{:^40}".format("Breach Found (" + str(t.pwned) + " elements)"),
c.reset,
)
else:
print(
f"{t.target:^40} | ",
c.fg.lightgrey,
"{:^40}".format("Not Compromised"),
c.reset,
)
print("{:_^90}\n".format(""))
total_time = time.time() - start_time
print("Execution time (seconds): ", c.fg.lightcyan, f"{total_time}", c.reset, "\n")
banner_tab = banner.splitlines()
code = 17
for b in banner_tab:
clr = "\u001b[38;5;" + str(code) + "m "
print(c.bold + clr + b + c.reset)
code += 3
elif "warn" in b_type:
print(
c.fg.green,
"\th8mail is free & open-source. Please report scammers.\n\n",
c.reset,
)
elif "version" in b_type:
print(
"\t",
c.fg.lightgrey,
"Version " + __version__ + ' - "ECHO MIKE - HOTFIX 1" ',
c.reset,
)