Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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")
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,
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,
def good_news(news):
"""
Print a Success
"""
print(colors.bold + colors.fg.green + "[>] " + colors.reset + news.strip())
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,
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.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,
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,
def question_news(news):
"""
Print an information with yellow text
"""
print(
colors.bold
+ colors.fg.blue
+ "[?] "
+ colors.reset
+ colors.fg.yellow
+ news.strip()
+ colors.reset
)
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,
colors.fg.pink,