1
0
mirror of https://github.com/Z4nzu/hackingtool.git synced 2025-06-20 06:15:54 +02:00

update some more typos; change print from .format to f-strings for readability

This commit is contained in:
mokrunka
2020-12-18 17:14:36 -08:00
parent 5157b9fc2e
commit 381908e12f
2 changed files with 6 additions and 9 deletions

13
core.py
View File

@ -65,17 +65,15 @@ class HackingTool(object):
desc += '\n\t[*] '
desc += self.PROJECT_URL
os.system(f'echo "{desc}"|boxes -d boy | lolcat')
# print(desc)
def show_options(self, parent = None):
clear_screen()
self.show_info()
for index, option in enumerate(self.OPTIONS):
print("[{:2}] {}".format(index + 1, option[0]))
print(f"[{index + 1}] {option[0]}")
if self.PROJECT_URL:
print("[{:2}] {}".format(98, "Open project page"))
print("[{:2}] {}".format(
99, ("Back to " + parent.TITLE) if parent is not None else "Exit"))
print(f"[{98}] Open project page}")
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
option_index = input("Select an option : ")
try:
option_index = int(option_index)
@ -162,9 +160,8 @@ class HackingToolsCollection(object):
clear_screen()
self.show_info()
for index, tool in enumerate(self.TOOLS):
print("[{:2}] {}".format(index, tool.TITLE))
print("[{:2}] {}".format(
99, ("Back to " + parent.TITLE) if parent is not None else "Exit"))
print(f"[{index} {tool.TITLE}")
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
tool_index = input("Choose a tool to proceed: ")
try:
tool_index = int(tool_index)

View File

@ -6,7 +6,7 @@ from core import HackingToolsCollection
class AnonymouslySurf(HackingTool):
TITLE = "Anonmously Surf"
TITLE = "Anonymously Surf"
DESCRIPTION = "It automatically overwrites the RAM when\n" \
"the system is shutting down and also change Ip."
INSTALL_COMMANDS = [