Suddenly, one day jsunpack.jeek.org became unavailable due some internal error, and I had few samples to decrypt.
So – Google found for me jsunpack-n project
Well, nice one, but as usual, installation instructions ported for Ubuntu (mainstream
)
Here is small guide for those who will need to use this awesome tool under Fedora\RHEL or even CentOS (not tested, update me if You did)
After You got all files in jsunpack-n folder, go and open INSTALL file, written by Blake Hartstein. I will refer to this INSTALL file each time we can proceed with original install instructions.
1. Let’s install all packets required for successful compilation
# yum install libpcap-devel pkgconfig python-devel gtk2-devel libnet-devel pcre-devel pcre gcc-c++ gcc
2. Good. Now we need to install libnids-1.24 (or – at least CONFIGURE and MAKE it) from folder depends/pynids-0.6.1/libnids-1.24
$ cd depends/pynids-0.6.1/libnids-1.24
$ ./configure
$ make
# make install
p.s. If You will install libnids from Your repositories, pynids-0.6.1 will fail to setup itself – error:
gcc: error: libnids-1.24/src/libnids.a: No such file or directory
3. Install dependencies, as mentioned in INSTALL file, one by one.
4. Try to run
$ python jsunpackn.py -u http://google.com
5. see result in temp/files
Known issues:
1. Yara error
In case You got message ImportError: libyara.so.0: when run jsunpackn.py, run the following commands:
# echo “/usr/local/lib” >> /etc/ld.so.conf
# ldconfig
2. ZLW error
In case You have error: ImportError: No module named lzw when run jsunpackn.py:
Go to website http://pypi.python.org/pypi/lzw/
Download, unpack and perform install of LZW package:
$ cd lzw-0.01.11/
$ python setup.py build
# python setup.py install
Cheers!