Skip to content

Commit

Permalink
Update console.py
Browse files Browse the repository at this point in the history
  • Loading branch information
enty8080 authored Jul 23, 2024
1 parent e1d2e9a commit e8cfd34
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ghost/core/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ class Console(Cmd):
"""

def __init__(self) -> None:
super().__init__(prompt='(%lineghost%end)> ')

self.devices = {}
self.banner = """%clear%end
super().__init__(
prompt='(%lineghost%end)> '
intro="""%clear%end
.--. .-. .-.
: .--': : .' `.
: : _ : `-. .--. .--.`. .'
Expand All @@ -48,6 +47,9 @@ def __init__(self) -> None:
--=[ %bold%whiteGhost Framework 8.0.0%end
--=[ Developed by EntySec (%linehttps://entysec.com/%end)
"""
)

self.devices = {}

def do_exit(self, _) -> None:
""" Exit Ghost Framework.
Expand Down Expand Up @@ -164,5 +166,4 @@ def shell(self) -> None:
:return None: None
"""

self.print_empty(self.banner)
self.loop()

0 comments on commit e8cfd34

Please sign in to comment.