mirror of
https://github.com/Z4nzu/hackingtool
synced 2026-05-24 09:28:43 +00:00
tool remote_administration.py NEW(design)
This commit is contained in:
parent
3545024d89
commit
e9abd2d7b1
1 changed files with 27 additions and 0 deletions
|
|
@ -2,6 +2,14 @@
|
||||||
from core import HackingTool
|
from core import HackingTool
|
||||||
from core import HackingToolsCollection
|
from core import HackingToolsCollection
|
||||||
|
|
||||||
|
from rich.console import Console
|
||||||
|
from rich.theme import Theme
|
||||||
|
from rich.table import Table
|
||||||
|
from rich.panel import Panel
|
||||||
|
|
||||||
|
_theme = Theme({"purple": "#7B61FF"})
|
||||||
|
console = Console(theme=_theme)
|
||||||
|
|
||||||
|
|
||||||
class Stitch(HackingTool):
|
class Stitch(HackingTool):
|
||||||
TITLE = "Stitch"
|
TITLE = "Stitch"
|
||||||
|
|
@ -34,3 +42,22 @@ class RemoteAdministrationTools(HackingToolsCollection):
|
||||||
Stitch(),
|
Stitch(),
|
||||||
Pyshell()
|
Pyshell()
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def pretty_print(self):
|
||||||
|
table = Table(title="Remote Administration Tools (RAT)", show_lines=True, expand=True)
|
||||||
|
table.add_column("Title", style="purple", no_wrap=True)
|
||||||
|
table.add_column("Description", style="purple")
|
||||||
|
table.add_column("Project URL", style="purple", no_wrap=True)
|
||||||
|
|
||||||
|
for t in self.TOOLS:
|
||||||
|
desc = getattr(t, "DESCRIPTION", "") or ""
|
||||||
|
url = getattr(t, "PROJECT_URL", "") or ""
|
||||||
|
table.add_row(t.TITLE, desc.strip().replace("\n", " "), url)
|
||||||
|
|
||||||
|
panel = Panel(table, title="[purple]Available Tools[/purple]", border_style="purple")
|
||||||
|
console.print(panel)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
tools = RemoteAdministrationTools()
|
||||||
|
tools.pretty_print()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue