stefanodevuono / steghide Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
# This repository is read-only. **A GitHub org, [StegHigh](https://github.com/orgs/StegHigh/) has been set up to maintain steghide. Please submit all PRs, discussions, and issues [there](https://github.com/StegHigh/steghide).** **Additionally, [StegHigh/steghide](https://github.com/orgs/StegHigh) is looking for maintainters. Please contribute!** Introduction : ============== Steghide is a steganography program that is able to hide data in various kinds of image- and audio-files. The color- respectively sample-frequencies are not changed thus making the embedding resistant against first-order statistical tests. The current version of steghide is 0.5.1 Features: *) compression of embedded data *) encryption of embedded data *) embedding of a checksum to verify the integrity of the extracted data *) support for JPEG, BMP, WAV and AU files Steganography : =============== Steganography literally means covered writing. Its goal is to hide the fact that communication is taking place. This is often achieved by using a (rather large) cover file and embedding the (rather short) secret message into this file. The result is an innocuous looking file (the stego file) that contains the secret message. Compilation and Installation : ============================== Dependencies : -------------- You should have the following libraries installed to use steghide. * libmhash A library that provides various hash algorithms and cryptographic key generation algorithms. Steghide needs this library to convert a passphrase into a form that can be used as input for cryptographic and steganographic algorithms. Available at: http://mhash.sourceforge.net/ * libmcrypt A library that provides a lot of symmetric encryption algorithms. If you compile steghide without libmcrypt, you will not be able to use steghide to encrypt data before embedding or to extract encrypted data (even if you know the correct passphrase). Available at: http://mcrypt.sourceforge.net/ * libjpeg A library implementing jpeg image compression. Without this library, you will not be able to embed data in jpeg files or to extract data from jpeg files. Available at: http://www.ijg.org/ * zlib A lossless data compression library. If you compile steghide without having this library installed, you will not be able to use steghide to compress data before embedding or to extract compressed data from a stego-file. Available at: http://www.gzip.org/zlib/ Libmhash is absolutely required to compile steghide. While you can compile it without the other libraries, they are highly recommended as major functionality will not be available without them. Linux / Unix : -------------- After unpacking the source distribution, enter the following commands: 1) ./configure 2) make 3) make check 4) make install (as root) For more information see the generic installation instructions in the file INSTALL that came with the distribution. If any of these commands fails, please send a mail to the steghide development mailing list ([email protected]) describing the error. Windows : --------- The easiest way is to download the precompiled binary (including Windows versions of the necessary libraries) from the steghide website at: http://steghide.sourceforge.net/index.php If you want to compile the sources yourself you need a C++ compiler. How you need to compile the source code depends on the compiler you are using: Please consult your compiler's documentation. Steghide can be compiled with gcc in the cygwin environment (http://www.cygwin.com/) which is a unix emulation layer for Windows using the procedure mentioned above for the Linux/Unix compilation. Quick-Start : ============= Here are some examples of how steghide can be used. Take a look at these to get a first impression. If you want more detailed information please read the manpage. The basic usage is as follows: $ steghide embed -cf picture.jpg -ef secret.txt Enter passphrase: Re-Enter passphrase: embedding "secret.txt" in "picture.jpg"... done This command will embed the file secret.txt in the cover file picture.jpg. After you have embedded your secret data as shown above you can send the file picture.jpg to the person who should receive the secret message. The receiver has to use steghide in the following way: $ steghide extract -sf picture.jpg Enter passphrase: 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. If you have received a file that contains embedded data and you want to get some information about it before extracting it, use the info command: $ steghide info received_file.wav "received_file.wav": format: wave audio, PCM encoding capacity: 3.5 KB Try to get information about embedded data ? (y/n) y Enter passphrase: embedded file "secret.txt": size: 1.6 KB encrypted: rijndael-128, cbc compressed: yes After printing some general information about the stego file (format, capacity) you will be asked if steghide should try to get information about the embedded data. If you answer with yes you have to supply a passphrase. Steghide will then try to extract the embedded data with that passphrase and - if it succeeds - print some information about it. Contact : ========= Website : --------- You can get the latest version of steghide as well as some additional information and documentation from the steghide website at: http://steghide.sourceforge.net/ Mailing Lists : --------------- If you have found a bug or if you have questions, comments, suggestions, etc. please send a mail to the development mailing list: [email protected] To receive mails sent to this list, subscribe to it at: http://lists.sourceforge.net/lists/listinfo/steghide-devel If you want to be informed, when a new version of steghide is released please subscribe to the steghide announcement mailing list at: http://lists.sourceforge.net/lists/listinfo/steghide-announce Anonymous CVS access : ---------------------- You can access the most recent development source code via anonymous cvs. Just type the following lines: $ cvs -d:pserver:[email protected]:/cvsroot/steghide login CVS password: [ Hit RETURN here ] $ cvs -z3 -d:pserver:[email protected]:/cvsroot/steghide co steghide You can also browse the cvs repository on the web: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/steghide/ Author : -------- You can contact me (Stefan Hetzl) via e-mail: [email protected]
hi,Stefan Hetzl:
I had one question to ask, it's algorithm about steghide, is LSB(Least Significant Bit)?
thanks!
./configure
on an Ubuntu 18.04 machine (within VirtualBox) with libmhash
, libmcrypt
, zlib
and libjpeg
installedmake
Make
completed successfullystego@stego-VirtualBox:~/Documents/steghide$ make
make all-recursive
make[1]: Entering directory '/home/stego/Documents/steghide'
Making all in m4
make[2]: Entering directory '/home/stego/Documents/steghide/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/stego/Documents/steghide/m4'
Making all in intl
make[2]: Entering directory '/home/stego/Documents/steghide/intl'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/stego/Documents/steghide/intl'
Making all in po
make[2]: Entering directory '/home/stego/Documents/steghide/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/stego/Documents/steghide/po'
Making all in doc
make[2]: Entering directory '/home/stego/Documents/steghide/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/stego/Documents/steghide/doc'
Making all in src
make[2]: Entering directory '/home/stego/Documents/steghide/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -O2 -Wall -MT Arguments.o -MD -MP -MF ".deps/Arguments.Tpo" \
-c -o Arguments.o `test -f 'Arguments.cc' || echo './'`Arguments.cc; \
then mv ".deps/Arguments.Tpo" ".deps/Arguments.Po"; \
else rm -f ".deps/Arguments.Tpo"; exit 1; \
fi
In file included from common.h:101:0,
from MCryptPP.h:21,
from Arguments.cc:25:
Arguments.h:103:22: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float Arguments::Default_Goal’ of non-integral type [-fpermissive]
static const float Default_Goal = 100.0 ;
^~~~~~~~~~~~
Makefile:395: recipe for target 'Arguments.o' failed
make[2]: *** [Arguments.o] Error 1
make[2]: Leaving directory '/home/stego/Documents/steghide/src'
Makefile:259: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/stego/Documents/steghide'
Makefile:190: recipe for target 'all' failed
make: *** [all] Error 2
Steghide doesn't sanitize the output file, which allows arbitrary files to be written.
See https://firzen.de/git-rekt-2-steghide for details.
make[2]: Entering directory '/home/markov/hack/steghide/po'
cd ..
&& CONFIG_FILES=po/Makefile.in CONFIG_HEADERS=
/bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
rm -f es.gmo && : -c --statistics -o es.gmo es.po
mv: não foi possível obter estado de 't-es.gmo': Arquivo ou diretório inexistente
Makefile:207: recipe for target 'es.gmo' failed
make[2]: *** [es.gmo] Error 1
make[2]: Leaving directory '/home/markov/hack/steghide/po'
Makefile:259: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/markov/hack/steghide'
Makefile:190: recipe for target 'all' failed
make: *** [all] Error 2
Can you add the supported encryption algorithm alias, I mean I try to use the exact same name from libmcrypt manual for the -e flag but can't be work
I do not know if you are aware of CVE issue in your project, so I am attaching a link: https://nvd.nist.gov/vuln/detail/CVE-2021-27211.
If this could be fixed, it would be great, but I am not able to fix it myself due to low knowledge of C/C++.
When compiling with ./configure && make
it generates this error.
Making all in po
make[2]: Entering directory '/home/paul/repositories/steghide/po'
cd .. \
&& CONFIG_FILES=po/Makefile.in CONFIG_HEADERS= \
/bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
rm -f de.gmo && /usr/bin/msgfmt -c --statistics -o de.gmo de.po
rm -f fr.gmo && /usr/bin/msgfmt -c --statistics -o fr.gmo fr.po
rm -f ro.gmo && /usr/bin/msgfmt -c --statistics -o ro.gmo ro.po
rm -f es.gmo && /usr/bin/msgfmt -c --statistics -o es.gmo es.po
de.po:7: warning: header field 'Language' missing in header
185 translated messages.
ro.po:6: warning: header field 'Language' missing in header
185 translated messages.
es.po:6: warning: fr.po:8: warning: header field 'Language' missing in header
header field 'Language' missing in header
185 translated messages.
185 translated messages.
rm -f ru.gmo && /usr/bin/msgfmt -c --statistics -o ru.gmo ru.po
ru.po:1219:10: syntax error
/usr/bin/msgfmt: found 1 fatal error
make[2]: *** [Makefile:207: ru.gmo] Error 1
make[2]: Leaving directory '/home/paul/repositories/steghide/po'
make[1]: *** [Makefile:259: all-recursive] Error 1
make[1]: Leaving directory '/home/paul/repositories/steghide'
make: *** [Makefile:190: all] Error 2
I don't need russian text, so i removed ru.po and all related files from the makefile in po.
I get the following output.
[...]
In file included from common.h:101,
from MCryptPP.h:21,
from Arguments.cc:25:
Arguments.h:103:22: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float Arguments::Default_Goal’ of non-integral type [-fpermissive]
103 | static const float Default_Goal = 100.0 ;
| ^~~~~~~~~~~~
[...]
In file included from AuFile.cc:26:
AuData.h:29:13: error: specializing member ‘AudioDataImpl<AuMuLaw, unsigned char>::readValue’ requires ‘template<>’ syntax
29 | inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
| ^~~~~~~~~~~~~~~~
AuData.h:30:13: error: specializing member ‘AudioDataImpl<AuMuLaw, unsigned char>::writeValue’ requires ‘template<>’ syntax
30 | inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
| ^~~~~~~~~~~~~~~~
AuData.h:34:14: error: specializing member ‘AudioDataImpl<AuPCM8, signed char>::readValue’ requires ‘template<>’ syntax
34 | inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
| ^~~~~~~~~~~~~~~
AuData.h:35:13: error: specializing member ‘AudioDataImpl<AuPCM8, signed char>::writeValue’ requires ‘template<>’ syntax
35 | inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
| ^~~~~~~~~~~~~~~
AuData.h:39:16: error: specializing member ‘AudioDataImpl<AuPCM16, short int>::readValue’ requires ‘template<>’ syntax
39 | inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
| ^~~~~~~~~~~~~~~~
AuData.h:40:13: error: specializing member ‘AudioDataImpl<AuPCM16, short int>::writeValue’ requires ‘template<>’ syntax
40 | inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
| ^~~~~~~~~~~~~~~~
AuData.h:44:16: error: specializing member ‘AudioDataImpl<AuPCM32, int>::readValue’ requires ‘template<>’ syntax
44 | inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
| ^~~~~~~~~~~~~~~~
AuData.h:45:13: error: specializing member ‘AudioDataImpl<AuPCM32, int>::writeValue’ requires ‘template<>’ syntax
45 | inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
| ^~~~~~~~~~~~~~~~
After trying to put a picture with .txt file in it, in another picture i got same error on every usage.
Here's example:
steghide embed -ef file2.tar.gz -cf file1.wav Enter passphrase: Re-Enter passphrase: [1] 11418 segmentation fault steghide embed -ef file2.tar.gz -cf file1.wav
Reinstallation doesn't help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.