viper-framework / viper-web

BSD 3-Clause "New" or "Revised" License
8 stars 9 forks source link

Installation tutorial #21

Open AlbertoCanoD opened 1 year ago

AlbertoCanoD commented 1 year ago

How to install Viper-Web

First we install the dependencies

sudo apt install git build-essential python3 python3-dev python3-pip exiftool clamav-daemon tor libdpkg-perl libssl-dev swig libffi-dev ssdeep libfuzzy-dev unrar p7zip-full virtualenv gcc

We create and activate an environment

virtualenv --python=python3 ~/venv/viper

. ~/venv/viper/bin/activate

Clone and install viper

git clone https://github.com/viper-framework/viper

cd viper

pip install .

Open viper and update modules

viper

update-modules

Clone viper-web in .viper

cd ~/.viper

git clone https://github.com/viper-framework/viper-web.git

cd viper-web

pip install -r requirements.txt

We get an error when running viper-web

./viper-web

Change code in itypes.py

nano ~/venv/viper/lib/python3.10/site-packages/itypes.py

In line 2 we put this

from collections.abc import Mapping, Sequence

And finally we run it

./viper-web

We can change the launch options in

nano ~/.viper/viper.conf

And go to [web]

Based on the tutorial of f0wL's Blog