-
Notifications
You must be signed in to change notification settings - Fork 408
/
parrot-os-install.sh
46 lines (38 loc) · 1.16 KB
/
parrot-os-install.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# This file is part of v3n0m
# See LICENSE for license details.
# ParrotSec Install Script
set -e
# Alternatively, anything >=3.6 will work but async might argue.
PKG_NAME=V3n0m-Scanner/V3n0M-Scanner
_PKG_NAME=v3n0m
PY_VER=3.9.7
PY_ARCHIVE=Python-${PY_VER}.tgz
ENV=~/.local/src
PY_URL=https://www.python.org/ftp/python/${PY_VER}/${PY_ARCHIVE}.tgz
PKG_INST_DIR=${ENV}/venom
# Get Python & compile
wget -O $PY_ARCHIVE $PY_URL
tar -xvf $PY_ARCHIVE
cd Python-${PY_VER}
./configure --enable-optimizations --with-ensurepip=install
make -j $(nproc)
make altinstall
cd
# Now requires OpenSSL >=1.1.1
# https://peps.python.org/pep-0644/
# $ openssl version
# OpenSSL 1.1.1l 24 Aug 2021
apt-get install openssl
# Install pip
curl -sSL https://bootstrap.pypa.io/get-pip.py | python3
# Clone venom
git clone https://github.com/${PKG_NAME}.git ${ENV}/${_PKG_NAME}
# Install Poetry
# https://github.com/python-poetry/poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - --preview
# Install v3n0m
cd ${ENV}/${_PKG_NAME}
python -m venv .
source bin/activate
# $ python v3n0m.py