Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed color KeyError #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion websploit/core/utils/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ def _output(self, text, status):
"success": "[+]",
"warning": "[!]",
"error": "[-]",
"info": "[>]"
"info": "[>]",
"yellow": "",
"green": "",
"red": "",
"cyan": ""
}

if self._color_status:
Expand Down
15 changes: 12 additions & 3 deletions websploit/core/utils/tui.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
from .version import version

import platform

def logo():
windows = f"""
____ __ ____
\ \ / \ / / | Welcome to Websploit
\ \/ \/ / | Version : {version}
\ / | https://github.com/websploit/websploit
\ /\ / | Author : Fardin Allahverdinazhand
\__/ \__/ | Codename : Reborn

return f"""\033[92m

"""
not_windows = f"""\033[92m
____ __ ____
\ \ / \ / / | \033[95m Welcome to Websploit \033[92m
\ \/ \/ / | \033[95m Version : {version} \033[92m
Expand All @@ -13,4 +22,4 @@ def logo():

\033[0m
"""

return windows if platform.system() == "Windows" else not_windows