Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Z4nzu
GitHub Repository: Z4nzu/hackingtool
Path: blob/master/tools/steganography.py
1268 views
1
# coding=utf-8
2
import subprocess
3
4
from core import HackingTool
5
from core import HackingToolsCollection
6
from core import validate_input
7
8
9
class SteganoHide(HackingTool):
10
TITLE = "SteganoHide"
11
INSTALL_COMMANDS = ["sudo apt-get install steghide -y"]
12
13
def run(self):
14
choice_run = input(
15
"[1] Hide\n"
16
"[2] Extract\n"
17
"[99]Cancel\n"
18
">> ")
19
choice_run = validate_input(choice_run, [1, 2, 99])
20
if choice_run is None:
21
print("Please choose a valid input")
22
return self.run()
23
24
if choice_run == 99:
25
return
26
27
if choice_run == 1:
28
file_hide = input("Enter Filename you want to Embed (1.txt) >> ")
29
file_to_be_hide = input("Enter Cover Filename(test.jpeg) >> ")
30
subprocess.run(
31
["steghide", "embed", "-cf", file_to_be_hide, "-ef", file_hide])
32
33
elif choice_run == "2":
34
from_file = input("Enter Filename From Extract Data >> ")
35
subprocess.run(["steghide", "extract", "-sf", from_file])
36
37
38
class StegnoCracker(HackingTool):
39
TITLE = "StegnoCracker"
40
DESCRIPTION = "SteganoCracker is a tool that uncover hidden data inside " \
41
"files\n using brute-force utility"
42
INSTALL_COMMANDS = [
43
"pip3 install stegcracker && pip3 install stegcracker -U --force-reinstall"]
44
45
def run(self):
46
filename = input("Enter Filename:- ")
47
passfile = input("Enter Wordlist Filename:- ")
48
subprocess.run(["stegcracker", filename, passfile])
49
50
51
class StegoCracker(HackingTool):
52
TITLE = "StegoCracker"
53
DESCRIPTION = "StegoCracker is a tool that let's you hide data into image or audio files and can retrieve from a file "
54
55
INSTALL_COMMANDS = [
56
"sudo git clone https://github.com/W1LDN16H7/StegoCracker.git",
57
"sudo chmod -R 755 StegoCracker"
58
]
59
RUN_COMMANDS = ["cd StegoCracker && python3 -m pip install -r requirements.txt ",
60
"./install.sh"
61
]
62
PROJECT_URL = "https://github.com/W1LDN16H7/StegoCracker"
63
64
65
class Whitespace(HackingTool):
66
TITLE = "Whitespace"
67
DESCRIPTION = "Use whitespace and unicode chars for steganography"
68
INSTALL_COMMANDS = [
69
"sudo git clone https://github.com/beardog108/snow10.git",
70
"sudo chmod -R 755 snow10"
71
]
72
RUN_COMMANDS = ["cd snow10 && ./install.sh"]
73
PROJECT_URL = "https://github.com/beardog108/snow10"
74
75
76
class SteganographyTools(HackingToolsCollection):
77
TITLE = "Steganograhy tools"
78
TOOLS = [
79
SteganoHide(),
80
StegnoCracker(),
81
StegoCracker(),
82
Whitespace()
83
84
85
]
86
87