본문으로 바로가기

#!/bin/bash
 
# install all aptitude
apt-get -y install subversion libboost-dev libboost-python-dev libboost-thread-dev libboost-system-dev python-pip python-dev libbz2-dev libboost-all-dev python-magic autoconf automake dh-autoreconf scons
 
# save for install location
HOME_PWD=`pwd`
 
# install libemu
git clone git://git.carnivore.it/libemu.git
cd libemu
autoreconf -v -i
./configure --enable-python-bindings --prefix=/opt/libemu
make -j4
make install
sh -c "echo /opt/libemu/lib > /etc/ld.so.conf.d/libemu.conf"
ldconfig
cd ..
 
# install pylibemu
git clone https://github.com/buffer/pylibemu.git
sh -c "echo /opt/libemu/lib > /etc/ld.so.conf.d/pylibemu.conf"
cd pylibemu
python setup.py build
python setup.py install
cd ..

# install yara
svn checkout http://yara-project.googlecode.com/svn/trunk/ yara-project
cd yara-project
./bootstrap.sh
./configure
make && make install
cd yara-python
python setup.py build
python setup.py install
sudo echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
cd ../..

# install add aptitude and python modules
pip install beautifulsoup4 zope.interface pymongo cssutils httplib2 pefile chardet html5lib pyv8 jsbeautifier
easy_install pyparsing==1.5.7
pip install pydot
 
# download thug 
git clone https://github.com/buffer/thug.git
 
# if you can't see thug's help. sorry, do not blame me.... i love you
python thug/src/thug.py -h

Thug.py - Bash Shell Script v2.0

  • pyv8이 pip에서 설치가능하도록 바뀜. (scons 모듈이 존재해야함)
  • yara project가 추가
  • jsbeautifier 모듈이 추가



댓글을 달아 주세요

티스토리 툴바