Skip to content

Instantly share code, notes, and snippets.

@nl5887
Last active September 10, 2015 11:40
Show Gist options
  • Select an option

  • Save nl5887/433bc38cd2df583d9abe to your computer and use it in GitHub Desktop.

Select an option

Save nl5887/433bc38cd2df583d9abe to your computer and use it in GitHub Desktop.
install thug on ubuntu
apt-get update -y
apt-get install -y subversion build-essential python-dev libboost-all-dev git libemu-dev libxslt-dev libyara2 python-yara mongodb graphviz
apt-get install -y libemu2 python-libemu
cd /usr/local/src/
svn checkout http://v8.googlecode.com/svn/trunk/ v8
svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8
curl https://github.com/buffer/thug/tarball/master > thug.tar.gz
tar vxf thug.tar.gz
patch -p0 < buffer-thug-a987c9e/patches/PyV8-patch1.diff
export V8_HOME=/usr/local/src/v8/
cd pyv8
python setup.py build
python setup.py install
easy_install beautifulsoup4
easy_install html5lib
easy_install jsbeautifier
easy_install pefile
easy_install lxml
easy_install chardet
easy_install httplib2
easy_install requests
easy_install requesocks
easy_install cssutils
easy_install zope.interface
easy_install pyparsing
easy_install pydot
easy_install magic
easy_install rarfile
easy_install networkx
easy_install pymongo
easy_install ssdeep
easy_install pika
easy_install python-magic
cd /usr/local/src/
git clone https://github.com/buffer/pylibemu
cd pylibemu
python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment