Skip to content

Tony2464/PASTA-Box

Repository files navigation

PASTA-Box

Powerful, Advanced and Smart Traffic Analyzer

Requirements

  1. secret Need a folder named "secret" in the root project which contains a file named "secret.py". Content example :
dbLogin = "adminPasta"  
dBpassword = "PASTA-Box"  
secretKey = "pastaforever"
  1. flask conf

Need a flask conf in the root project :

import sys
#if sys.version_info[0]<3:       # require python3
# raise Exception("Python3 required! Current (wrong) version: '%s'" % sys.version_info)
sys.path.insert(0, '/PASTA-Box/')
from main_api_web import app as application
  1. WSGID apache2 conf

Need a conf site in /etc/apache2/sites-available/, replace USERNAME and GROUP_NAME :

<VirtualHost *:80>
 ServerName example.com
 WSGIDaemonProcess flaskapp2 user=USERNAME group=GROUP_NAME threads=5
 WSGIScriptAlias / /PASTA-Box/flaskapp.wsgi
<Directory /PASTA-Box/>
 WSGIProcessGroup flaskapp2
 WSGIApplicationGroup %{GLOBAL}
 WSGIScriptReloading On
 Require all granted
</Directory>
</VirtualHost>
  1. Add this to the /etc/sudoers file, replace USERNAME by your current user :
USERNAME ALL=(ALL) NOPASSWD: /usr/bin/nmap
USERNAME ALL=(ALL) NOPASSWD: /usr/sbin/ebtables
USERNAME ALL=(ALL) NOPASSWD: /usr/sbin/ebtables-nft
USERNAME ALL=(ALL) NOPASSWD: /PASTA-Box/settings/change_hostname.sh
USERNAME ALL=(ALL) NOPASSWD: /PASTA-Box/settings/change_IP.sh
USERNAME ALL=(ALL) NOPASSWD: /PASTA-Box/settings/execute_command.sh