Saturday, December 20, 2008

Request For Family Status

NBSTEGO - bash script for steganography

I do not know why, but I dedicated myself to changing
BrutalStego
, I wrote, since a new bash script, which is really a text steganography, the crypt
AES256
and hides it in hexadecimal vector file.

The thing that interested me was to encrypt text, hide it and be able to detect with password entry, in short, a steganography tool online!

Instruments used: grep, awk, dd, bc, wc, xxd, openssl

basically works like this: you insert the name of the vector file, you insert the name of the new file (the one containing the secret message), insert and finally the message is part of the password.Dopo these inputs, the special software in the OpenSSL AES256 encrypts the secret message, then convert it to hex and places it in the new vector file.
I tested on JPG and MP3 on and you do not notice any disruption.
By raising the little program, you can go to reveal the secret message by entering the name of the vector file and password
Here's the script:


# / bin / bash #

NBStego - by Nanni Bassetti -
http:// www.nannibassetti.com

-
nannib@libero.it


# a simple steganographic tool for Linux. Tested on JPG, MP3, AVI
# It uses AES256 algorithm by openssl


hid () {


echo "Insert the message to hide:"

read read fl echo "Insert the file name of the new file: " read nfl echo" Insert your password: "read pw
# here it crypts the plain text in text by cyphered aes25 and save it into steg.bin
openssl aes-256-cbc-in pText-out bar- .'m
# password length
lenpw = $ (expr length "$ pw")
lenpw_mod = $ (echo 0 + 10 count=$lenpw_mod
# temp2.bin is a 10 bytes file filled of zeroes to store the secret message length
dd if=$fl of=temp2.bin bs=1c skip=$lenpw_mod count=10
# temp2.bin is the end of the new file
dd if=$fl of=temp3.bin bs=1c skip=$(echo $lenpw_mod + 10 > $nfl
rm temp1.bin
rm temp2.bin

rm temp3.bin
rm steg.bin rm steghex.bin rm ptext rm l.bin echo " "
echo " -------------------------- "
echo " "


}
#-----End Hide-----



reveal ()
{
echo "Insert the file name containing the secret message:"
read nfl
echo "Insert the password:"
read pw
lenpw=$(expr length "$pw")
lenpw_mod=$(echo 0 + 10 if=$nfl skip=$lenpw_mod bs=1c count=10 read case $ answ1
answ1 in
1) hid;;
2) reveal;;
*) echo "Wrong answer! Write 1 or 2 "
echo" ";
esac exit



Click here to DOWNLOAD



0 comments:

Post a Comment