Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Steganography - Hiding data in image[steghide]
#1
Exclamation 
teganography is the practice of concealing a file, message, image, or video within another file, message, image, or video. Generally, the hidden messages appear to be (or be part of) something else: images, articles, shopping lists, or some other cover text. This post would cover Steganography in Kali Linux – Hiding data in image. You can pretty much use the same method to hide data in Audio or Video files.

a. Steghide
Steghide is a steganography program that is able to hide data in various kinds of image- and audio-files. The color- respectivly sample-frequencies are not changed thus making the embedding resistant against first-order statistical tests.

Features:

  • compression of embedded data

  • encryption of embedded data

  • embedding of a checksum to verify the integrity of the extraced data

  • support for JPEG, BMP, WAV and AU files
b. StegoSuite

Stegosuite is a free steganography tool written in Java. With Stegosuite you can hide information in image files.

[url=https://dev.stegosuite.org/Stegosuite/Stegosuite/#features][/url]Features

  • BMP, GIF and JPG supported

  • AES encryption of embedded data

  • Automatic avoidance of homogenous areas (only embed data in noisy areas)

  • Embed text messages and multiple files of any type

  • Easy to use
Hiding data in image using steghide



Install Steghide
Installation is simple in Kali Linux as steghide is already available in Kali Linux repository. Run the following command and you’re done.



Code:
root@kali:~# apt-get install steghide

Hide text file in Image
I created a folder 

Code:
steghide

[size=undefined]
 in root home folder and placed [/size]

Code:
picture.jpg

[size=undefined]
 and [/size]

Code:
secret.txt

[size=undefined]
 file in there. [/size]

Code:
picture.jpg

[size=undefined]
 is the file where I am going to hide [/size]

Code:
secret.txt

[size=undefined]
 file. I am going to show the commands here.[/size]
To hide text file in Image in Kali Linux using steghide, use the following command:




Code:
root@kali:~/steghide# steghide embed -cf picture.jpg -ef secret.txt
Enter passphrase:
Re-Enter passphrase:
embedding "secret.txt" in "picture.jpg"... done
root@kali:~/steghide#

Extracting text file from Image

After you have embedded your secret data as shown above you can send the file 

Code:
picture.jpg
[size=undefined]
 to the person who should receive the secret message. The receiver has to use steghide in the following way:
[/size]


Code:
root@kali:~/steghide# steghide extract -sf picture.jpg
Enter passphrase:
the file "secret.txt" does already exist. overwrite ? (y/n) y
wrote extracted data to "secret.txt".


If the supplied passphrase is correct, the contents of the original file secret.txt will be extracted from the stego file picture.jpg and saved in the current directory.

Just to be on safe side, I am checking the content of the 

Code:
secret.txt
[size=undefined]
 I extracted. Seems ok.
[/size]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)