security:steganography
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| security:steganography [2011/12/29 10:08] – [Reveal the message] cedric | security:steganography [2021/06/27 00:36] (current) – cedric | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Installation of Stéganô | + | ====== Installation of Stegano |
| - | For the examples you need to install | + | For the examples you need to install |
| <code bash> | <code bash> | ||
| - | hg clone http:// | + | sudo pip install |
| - | cd stegano/ | + | |
| - | sudo python setup.py | + | |
| </ | </ | ||
| + | |||
| + | You can read the [[http:// | ||
| + | |||
| + | |||
| ====== Steganography ====== | ====== Steganography ====== | ||
| + | |||
| Steganography is the art and science of writing hidden messages. | Steganography is the art and science of writing hidden messages. | ||
| Line 19: | Line 22: | ||
| We will dive into digital steganography. | We will dive into digital steganography. | ||
| - | The folowing | + | The following |
| ===== Simple steganography art ===== | ===== Simple steganography art ===== | ||
| - | In computer | + | In computer |
| For example, if I want to hide a text file in a music file: | For example, if I want to hide a text file in a music file: | ||
| Line 125: | Line 128: | ||
| </ | </ | ||
| - | This is a very simple example showing how to hide a string in an image with the LSB method. Have a look in the [[http:// | + | This is a very simple example showing how to hide a string in an image with the LSB method. |
| ====== Steganalysis ====== | ====== Steganalysis ====== | ||
| Line 144: | Line 147: | ||
| ===== Steganalysis of the LSB method with sets ===== | ===== Steganalysis of the LSB method with sets ===== | ||
| - | You must [[security: | + | You must [[security: |
| First, we will hide a message in a picture with the simple LSB method and with the LSB method + sets. | First, we will hide a message in a picture with the simple LSB method and with the LSB method + sets. | ||
| <code bash> | <code bash> | ||
| + | $ cd stegano | ||
| + | |||
| # LSB with The Eratosthenes set | # LSB with The Eratosthenes set | ||
| - | $ slsb-set --hide -i ../ | + | $ slsb-set --hide -i ./ |
| # LSB only | # LSB only | ||
| - | $ slsb --hide -i ../ | + | $ slsb --hide -i ./ |
| </ | </ | ||
| Line 161: | Line 166: | ||
| <code bash> | <code bash> | ||
| # Steganalysis of the original image | # Steganalysis of the original image | ||
| - | $ steganalysis-parity -i ../ | + | $ steganalysis-parity -i ../ |
| # Steganalysis of the image with hidden text (LSB only) | # Steganalysis of the image with hidden text (LSB only) | ||
| - | $ steganalysis-parity -i ./ | + | $ steganalysis-parity -i ~/ |
| # Steganalysis of the image with hidden text (LSB + Eratosthenes) | # Steganalysis of the image with hidden text (LSB + Eratosthenes) | ||
| - | $ steganalysis-parity -i ./ | + | $ steganalysis-parity -i ~/ |
| </ | </ | ||
| Line 186: | Line 191: | ||
| ==== Reveal the message ==== | ==== Reveal the message ==== | ||
| <code bash> | <code bash> | ||
| - | $ slsb-set --reveal --generator eratosthenes -i ./ | + | $ slsb-set --reveal --generator eratosthenes -i ~/ |
| - | $ slsb --reveal | + | $ slsb --reveal |
| - | $ cmp file-gen.txt file.txt | + | $ cmp ~/file-gen.txt |
| - | $ cat file.txt | + | $ cat ~/file.txt |
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat fermentum | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat fermentum | ||
| lorem, at porttitor metus congue eu. Mauris vitae tell | lorem, at porttitor metus congue eu. Mauris vitae tell | ||
| Line 195: | Line 200: | ||
| . | . | ||
| . | . | ||
| - | $ slsb-set --reveal --generator fermat -i ./ | + | $ slsb-set --reveal --generator fermat -i ~/ |
| Impossible to detect message. | Impossible to detect message. | ||
| - | $ slsb-set --reveal --generator mersenne -i ./ | + | $ slsb-set --reveal --generator mersenne -i ~/ |
| Impossible to detect message. | Impossible to detect message. | ||
| </ | </ | ||
security/steganography.1325149693.txt.gz · Last modified: by cedric
