Added code-block for bash in the Sphinx documentatioN;

This commit is contained in:
cedricbonhomme 2012-07-25 14:05:00 +02:00
parent aa75652549
commit b85aeda93e
2 changed files with 20 additions and 3 deletions

View file

@ -40,6 +40,11 @@ Moreover some methods of steganalysis are provided:
- statistical steganalysis. - statistical steganalysis.
Turorial
========
More information available at the [[tutorial]] page
Indices and tables Indices and tables
================== ==================

View file

@ -1,6 +1,8 @@
Getting Stéganô Getting Stéganô
=============== ===============
.. code-block:: bash
$ hg clone https://bitbucket.org/cedricbonhomme/stegano $ hg clone https://bitbucket.org/cedricbonhomme/stegano
$ cd stegano/ $ cd stegano/
$ chmod u+x *.py # if you want to use Stéganô in command line $ chmod u+x *.py # if you want to use Stéganô in command line
@ -32,6 +34,8 @@ Using Stéganô in command line for your scripts
Display help Display help
------------ ------------
.. code-block:: bash
$ ./slsb.py --help $ ./slsb.py --help
Usage: slsb.py [options] Usage: slsb.py [options]
@ -55,6 +59,8 @@ Display help
Hide and reveal a text message Hide and reveal a text message
------------------------------ ------------------------------
.. code-block:: bash
$ ./slsb.py --hide -i ./pictures/Lenna.png -o ./pictures/Lenna_enc.png -m HelloWorld! $ ./slsb.py --hide -i ./pictures/Lenna.png -o ./pictures/Lenna_enc.png -m HelloWorld!
$ ./slsb.py --reveal -i ./pictures/Lenna_enc.png $ ./slsb.py --reveal -i ./pictures/Lenna_enc.png
HelloWorld! HelloWorld!
@ -62,6 +68,8 @@ Hide and reveal a text message
Hide and reveal a binary file Hide and reveal a binary file
----------------------------- -----------------------------
.. code-block:: bash
$ wget http://www.gnu.org/music/free-software-song.ogg $ wget http://www.gnu.org/music/free-software-song.ogg
$ ./slsb.py --hide -i ./pictures/Montenach.png -o ./pictures/Montenach_enc.png -f ./free-software-song.ogg $ ./slsb.py --hide -i ./pictures/Montenach.png -o ./pictures/Montenach_enc.png -f ./free-software-song.ogg
$ rm free-software-song.ogg $ rm free-software-song.ogg
@ -70,12 +78,16 @@ Hide and reveal a binary file
Hide and reveal a message by using the description field of the image Hide and reveal a message by using the description field of the image
--------------------------------------------------------------------- ---------------------------------------------------------------------
.. code-block:: bash
$ ./exif-header.py --hide -i ./Elisha-Cuthbert.jpg -o ./Elisha-Cuthbert_enc.jpg -f ./fileToHide.txt $ ./exif-header.py --hide -i ./Elisha-Cuthbert.jpg -o ./Elisha-Cuthbert_enc.jpg -f ./fileToHide.txt
$ ./exif-header.py --reveal -i ./Elisha-Cuthbert_enc.jpg $ ./exif-header.py --reveal -i ./Elisha-Cuthbert_enc.jpg
Steganalysis Steganalysis
------------ ------------
.. code-block:: bash
$ ./steganalysis-parity.py -i ./pictures./Lenna_enc.png -o ./pictures/Lenna_enc_st.png $ ./steganalysis-parity.py -i ./pictures./Lenna_enc.png -o ./pictures/Lenna_enc_st.png