You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2026-06-09 00:16:18 +02:00
2ad5587517
Phase 4 (core.py — largely done in Phase 1, completed here): - HackingTool: add ARCHIVED, ARCHIVED_REASON, SUPPORTED_OS, REQUIRES_* fields - HackingTool: remove INSTALLATION_DIR (unused) - HackingToolsCollection: add _active_tools(), _archived_tools(), _incompatible_tools() - HackingToolsCollection: add _show_archived_tools() (option 98 sub-menu) - HackingToolsCollection.show_options(): filter by OS and ARCHIVED flag - OS-incompatible tools show count but are hidden from menu - Archived tools accessible via option 98 with reason displayed Phase 5 (all 22 remaining tool files): - Remove local console = Console() and _theme = Theme() from all 22 files - Remove P_COLOR and PURPLE_STYLE local constants - Add `from core import HackingTool, HackingToolsCollection, console` everywhere - Remove show_options() overrides from all collection classes (500+ lines deleted) - Remove pretty_print() overrides from all collection classes - Remove _get_attr() / _get_attr_fallback() helpers from all collection classes - Replace super(ClassName, self).__init__() → super().__init__() in all files - Remove # coding=utf-8 headers from all files - Fix remaining PURPLE_STYLE usages → "bold magenta" literal All 28 tool modules import cleanly. Zero local console instances remain.
82 lines
2.6 KiB
Python
82 lines
2.6 KiB
Python
import subprocess
|
|
|
|
from core import HackingTool, HackingToolsCollection, console
|
|
from core import validate_input
|
|
|
|
from rich.panel import Panel
|
|
from rich.prompt import Prompt
|
|
|
|
|
|
class SteganoHide(HackingTool):
|
|
TITLE = "SteganoHide"
|
|
INSTALL_COMMANDS = ["sudo apt-get install steghide -y"]
|
|
|
|
def run(self):
|
|
choice_run = input(
|
|
"[1] Hide\n"
|
|
"[2] Extract\n"
|
|
"[99]Cancel\n"
|
|
">> "
|
|
)
|
|
choice_run = validate_input(choice_run, [1, 2, 99])
|
|
if choice_run is None:
|
|
console.print("[bold red]Please choose a valid input[/bold red]")
|
|
return self.run()
|
|
|
|
if choice_run == 99:
|
|
return
|
|
|
|
if choice_run == 1:
|
|
file_hide = input("Enter Filename to Embed (1.txt) >> ")
|
|
file_to_be_hide = input("Enter Cover Filename (test.jpeg) >> ")
|
|
subprocess.run(["steghide", "embed", "-cf", file_to_be_hide, "-ef", file_hide])
|
|
|
|
elif choice_run == 2:
|
|
from_file = input("Enter Filename to Extract Data From >> ")
|
|
subprocess.run(["steghide", "extract", "-sf", from_file])
|
|
|
|
|
|
class StegnoCracker(HackingTool):
|
|
TITLE = "StegnoCracker"
|
|
DESCRIPTION = "SteganoCracker uncovers hidden data inside files using brute-force utility"
|
|
INSTALL_COMMANDS = ["pip3 install stegcracker && pip3 install stegcracker -U --force-reinstall"]
|
|
|
|
def run(self):
|
|
filename = input("Enter Filename >> ")
|
|
passfile = input("Enter Wordlist Filename >> ")
|
|
subprocess.run(["stegcracker", filename, passfile])
|
|
|
|
|
|
class StegoCracker(HackingTool):
|
|
TITLE = "StegoCracker"
|
|
DESCRIPTION = "StegoCracker lets you hide and retrieve data in image or audio files"
|
|
INSTALL_COMMANDS = [
|
|
"sudo git clone https://github.com/W1LDN16H7/StegoCracker.git",
|
|
"sudo chmod -R 755 StegoCracker"
|
|
]
|
|
RUN_COMMANDS = [
|
|
"cd StegoCracker && python3 -m pip install -r requirements.txt",
|
|
"./install.sh"
|
|
]
|
|
PROJECT_URL = "https://github.com/W1LDN16H7/StegoCracker"
|
|
|
|
|
|
class Whitespace(HackingTool):
|
|
TITLE = "Whitespace"
|
|
DESCRIPTION = "Use whitespace and unicode characters for steganography"
|
|
INSTALL_COMMANDS = [
|
|
"sudo git clone https://github.com/beardog108/snow10.git",
|
|
"sudo chmod -R 755 snow10"
|
|
]
|
|
RUN_COMMANDS = ["cd snow10 && ./install.sh"]
|
|
PROJECT_URL = "https://github.com/beardog108/snow10"
|
|
|
|
|
|
class SteganographyTools(HackingToolsCollection):
|
|
TITLE = "Steganography Tools"
|
|
TOOLS = [SteganoHide(), StegnoCracker(), StegoCracker(), Whitespace()]
|
|
|
|
if __name__ == "__main__":
|
|
tools = SteganographyTools()
|
|
tools.show_options()
|