|Scapytain is a web application that enables you to store, organise and run test campaigns on top of Scapy.|
This package depends on:
Untar the archive and run
python setup.py install
Set the database URI, for instance:
database = sqlite:///var/lib/scapytain/scapytain.db
The scapyproxy parameter holds the command to execute the Scapy proxy, scapytain_scapyproxy by default. The web application communicates with the proxy through stdin and stdout. The proxy is the only part that has to run as root and be able to import Scapy. Thus, it is pessible to have the web application run unprivileged and have:
scapyproxy = sudo scapytain_scapyproxyYou can even have Scapy run on another machine:
scapyproxy = ssh email@example.com sudo scapytain_scapyproxy
If you need authentication, add users in the file and make it readable by the application only.
If you do not need authentication, set "auth" parameter to false.
WARNING: any user of this application can become root on the box where Scapy runs.
If you need SSL: create a certificate and a key. For instance:
openssl req -new -x509 -nodes -keyout scapytain.key -out scapytain.crtThen fill ssl_certificate and ssl_key with paths to these files.
Create the database path that you configured in /etc/scapytainrc:
mkdir /var/lib/scapytainThen create the database with the user under which you intend to run scapytain:
Now you can browse http://localhost:8080 (or whatever TCP port you put in the configuration file). Click on the HELP link on the top left of the screen.
If you encounter internal server errors, you can set
production = Falsein /etc/scapytainrc and you will have more output and backtraces in the console you ran scapytain into.