From afc0efc75dd2cdc3fe5496e09c1617f3670f273a Mon Sep 17 00:00:00 2001 From: Modark Date: Sun, 12 Oct 2025 16:50:19 -0400 Subject: [PATCH] tool_sql_tools.py NEW(design) --- tools/sql_tools.py | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tools/sql_tools.py b/tools/sql_tools.py index 666ff9b..9b46016 100644 --- a/tools/sql_tools.py +++ b/tools/sql_tools.py @@ -2,6 +2,14 @@ from core import HackingTool 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 Sqlmap(HackingTool): TITLE = "Sqlmap tool" @@ -16,6 +24,7 @@ class Sqlmap(HackingTool): RUN_COMMANDS = ["cd sqlmap-dev;python3 sqlmap.py --wizard"] PROJECT_URL = "https://github.com/sqlmapproject/sqlmap" + class NoSqlMap(HackingTool): TITLE = "NoSqlMap" DESCRIPTION = "NoSQLMap is an open source Python tool designed to \n " \ @@ -40,7 +49,7 @@ class SQLiScanner(HackingTool): PROJECT_URL = "https://github.com/stamparm/DSSS" def __init__(self): - super(SQLiScanner, self).__init__(runnable = False) + super(SQLiScanner, self).__init__(runnable=False) class Explo(HackingTool): @@ -57,7 +66,7 @@ class Explo(HackingTool): PROJECT_URL = "https://github.com/dtag-dev-sec/explo" def __init__(self): - super(Explo, self).__init__(runnable = False) + super(Explo, self).__init__(runnable=False) class Blisqy(HackingTool): @@ -70,7 +79,7 @@ class Blisqy(HackingTool): PROJECT_URL = "https://github.com/JohnTroony/Blisqy" def __init__(self): - super(Blisqy, self).__init__(runnable = False) + super(Blisqy, self).__init__(runnable=False) class Leviathan(HackingTool): @@ -112,3 +121,22 @@ class SqlInjectionTools(HackingToolsCollection): Leviathan(), SQLScan() ] + + def pretty_print(self): + table = Table(title="SQL Injection Tools", 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 = SqlInjectionTools() + tools.pretty_print()