From 228d24d62e4a1e8fbc5ae5c5751e8c3698c4cbf5 Mon Sep 17 00:00:00 2001 From: Modark Date: Sun, 12 Oct 2025 16:28:58 -0400 Subject: [PATCH] change wordlist_generator.py NEW(design) --- tools/wordlist_generator.py | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/tools/wordlist_generator.py b/tools/wordlist_generator.py index cc15775..bf1d886 100644 --- a/tools/wordlist_generator.py +++ b/tools/wordlist_generator.py @@ -1,7 +1,17 @@ # coding=utf-8 +import os +import subprocess + +from rich.console import Console +from rich.panel import Panel +from rich.table import Table +from rich import box + from core import HackingTool from core import HackingToolsCollection +console = Console() + class Cupp(HackingTool): TITLE = "Cupp" @@ -11,6 +21,16 @@ class Cupp(HackingTool): RUN_COMMANDS = ["cd cupp && python3 cupp.py -i"] PROJECT_URL = "https://github.com/Mebus/cupp" + def show_info(self): + panel = Panel( + f"[bold magenta]{self.TITLE}[/bold magenta]\n\n" + f"[cyan]{self.DESCRIPTION}[/cyan]\n\n" + f"[green]Repository:[/green] [underline blue]{self.PROJECT_URL}[/underline blue]", + border_style="magenta", + box=box.ROUNDED, + ) + console.print(panel) + class WlCreator(HackingTool): TITLE = "WordlistCreator" @@ -22,6 +42,16 @@ class WlCreator(HackingTool): "cd wlcreator && sudo gcc -o wlcreator wlcreator.c && ./wlcreator 5"] PROJECT_URL = "https://github.com/Z4nzu/wlcreator" + def show_info(self): + panel = Panel( + f"[bold magenta]{self.TITLE}[/bold magenta]\n\n" + f"[cyan]{self.DESCRIPTION}[/cyan]\n\n" + f"[green]Repository:[/green] [underline blue]{self.PROJECT_URL}[/underline blue]", + border_style="magenta", + box=box.ROUNDED, + ) + console.print(panel) + class GoblinWordGenerator(HackingTool): TITLE = "Goblin WordGenerator" @@ -31,6 +61,16 @@ class GoblinWordGenerator(HackingTool): RUN_COMMANDS = ["cd GoblinWordGenerator && python3 goblin.py"] PROJECT_URL = "https://github.com/UndeadSec/GoblinWordGenerator.git" + def show_info(self): + panel = Panel( + f"[bold magenta]{self.TITLE}[/bold magenta]\n\n" + f"[cyan]{self.DESCRIPTION}[/cyan]\n\n" + f"[green]Repository:[/green] [underline blue]{self.PROJECT_URL}[/underline blue]", + border_style="magenta", + box=box.ROUNDED, + ) + console.print(panel) + class showme(HackingTool): TITLE = "Password list (1.4 Billion Clear Text Password)" @@ -46,6 +86,16 @@ class showme(HackingTool): RUN_COMMANDS = ["cd SMWYG-Show-Me-What-You-Got && python SMWYG.py"] PROJECT_URL = "https://github.com/Viralmaniar/SMWYG-Show-Me-What-You-Got" + def show_info(self): + panel = Panel( + f"[bold magenta]{self.TITLE}[/bold magenta]\n\n" + f"[cyan]{self.DESCRIPTION}[/cyan]\n\n" + f"[green]Repository:[/green] [underline blue]{self.PROJECT_URL}[/underline blue]", + border_style="magenta", + box=box.ROUNDED, + ) + console.print(panel) + class WordlistGeneratorTools(HackingToolsCollection): TITLE = "Wordlist Generator" @@ -55,3 +105,18 @@ class WordlistGeneratorTools(HackingToolsCollection): GoblinWordGenerator(), showme() ] + + def show_info(self): + header = Panel(f"[bold white on magenta] {self.TITLE} [/bold white on magenta]", + border_style="magenta", box=box.DOUBLE) + console.print(header) + table = Table(box=box.SIMPLE, show_header=True, header_style="bold magenta") + table.add_column("#", justify="center", style="cyan", width=4) + table.add_column("Tool", style="bold") + table.add_column("Description", style="dim", overflow="fold") + + for idx, t in enumerate(self.TOOLS, start=1): + desc = getattr(t, "DESCRIPTION", "") or "" + table.add_row(str(idx), t.TITLE, desc) + + console.print(table)