Use steganography to hide a text message in an image on your website

Follow the below directions to download bmpsteg.
SY110 Tool: bmpsteg
  1. Download (right click, Save link as...) bmpsteg.exe and save it to C:\SI110Programs\
  2. Download (right click, Save link as...) msvcr100.dll and save it to C:\SI110Programs\
  3. Open a shell
  4. Enter: C:\>bmpsteg
  5. You should see a usage message
  1. ssh to rona and cd to the www directory
  2. choose an image file that's already a local file on the site to serve as the cover-medium.
  3. if the image is not already a .bmp image, use the convert command to convert to bmp. For example
    convert cat.jpg cat.bmp
  4. choose a text message or a second file to serve as the embedded message.
  5. Using a ! in the message is problematic if you put ""s not ''s around the message, as ! means something special to the shell. So don't use it!
    use bmpsteg to embed the message and create the stego-medium If you embed a text message, the command will look something like
    bmpsteg -h -i vacation.bmp -o newvacation.bmp -t 'We attack at dawn'
    If you embed a file (like secret.docx) it'd look like
    bmpsteg -h -i vacation.bmp -o newvacation.bmp -f secret.docx
    A new file is created, whose name is given by the -o option (in my example newvacation.bmp), and this is the "stego-medium".
  6. Change permissions on your new file to allow the webserver to read it. The syntax is chmod a+r filename. So, for example, if newvacation.bmp is the file with the hidden message, you'd give the command:
    chmod a+r newvacation.bmp
  7. change the <img> tag's src attribute in the .html file so that it refers to this new "stego-medium" file. There are two ways to do this:
    • inside the ssh session give the command   nano index.html   from inside the same directory as contains your index.html file. If the image is linked from a different file than index.html, you'll have to use that file instead.
    • launch WinSCP, connect to your rona account, navigate to the .html file that needs to change, and double-click on the icon for that file. Notepad will pop up, you can edit the file and save, and you will have changed to file on rona.