-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-ubuntu.sh
31 lines (26 loc) · 1.01 KB
/
install-ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
export eyeon_dir=$(pwd)
# dependencies
apt-get update
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
apt-get install -y python3 python3-pip python3-dev python3-venv \
libmagic1 git make wget unzip build-essential vim ssdeep jq
# cmake, have to build telfhash
wget https://github.com/Kitware/CMake/releases/download/v3.30.3/cmake-3.30.3-linux-x86_64.sh
chmod u+x cmake-3.30.3-linux-x86_64.sh
mkdir /opt/cmake-3.30.3
./cmake-3.30.3-linux-x86_64.sh --skip-license --prefix=/opt/cmake-3.30.3
rm cmake-3.30.3-linux-x86_64.sh
ln -s /opt/cmake-3.30.3/bin/* /usr/local/bin
# build/install telfhash C++ backend and python frontend
cd /opt && git clone https://github.com/trendmicro/tlsh.git
cd /opt/tlsh
./make.sh
mkdir /opt/die && cd /opt/die
wget https://github.com/horsicq/DIE-engine/releases/download/${DIE}/die_${DIE}_Ubuntu_24.04_amd64.deb
apt-get install -y die_${DIE}_Ubuntu_24.04_amd64.deb
apt-get clean
cd $eyeon_dir
# set up virtual environment
python3 -m venv eye && source eye/bin/activate
pip install peyeon