Advertisement
opexxx

install_thug.sh

Nov 25th, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.74 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Copyright (c) NASK
  4. #
  5. # This file is part of HoneySpider Network 2.0.
  6. #
  7. # This is a free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19.  
  20. # This installation script is currently only meant for systems which have the apt-get tool.
  21.  
  22. apt-get install automake autoconf libtool python-bs4 python-setuptools build-essential git-core subversion scons python-chardet python-html5lib libboost-python-dev libboost-dev python-pefile python-httplib2
  23.  
  24. cd /tmp
  25. git clone git://git.carnivore.it/libemu.git
  26. cd libemu
  27. autoreconf -v -i
  28. ./configure --prefix=/opt/libemu
  29. make install
  30.  
  31. cd /tmp
  32. git clone https://github.com/buffer/pylibemu
  33. cd pylibemu
  34. python setup.py build
  35. python setup.py install
  36.  
  37. cd /opt/hsn2/thug
  38. git clone https://github.com/buffer/thug.git
  39. cd ./thug/
  40. svn checkout http://v8.googlecode.com/svn/trunk/ v8
  41. cp patches/V8-patch* .
  42. patch -p0 < V8-patch1.diff
  43. patch -p0 < V8-patch2.diff
  44. rm V8-patch*
  45. cd /tmp/
  46. svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8
  47. export V8_HOME=/opt/hsn2/thug/thug/v8
  48. cd pyv8 && python setup.py build
  49. python setup.py install
  50. mv /opt/hsn2/thug/thug/* /opt/hsn2/thug/
  51. rm -r /opt/hsn2/thug/thug
  52. cd /opt/hsn2/thug/src
  53. python thug.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement