Kvasir
De Linuxmemo.
(Différences entre les versions)
(→install) |
(→install) |
||
Ligne 12 : | Ligne 12 : | ||
Enter it again: | Enter it again: | ||
CREATE ROLE kvasir PASSWORD 'md5<hash>' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN; | CREATE ROLE kvasir PASSWORD 'md5<hash>' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN; | ||
- | + | sudo -u postgres createdb kvasir -O kvasir | |
cd /opt/web2py/ | cd /opt/web2py/ | ||
Ligne 19 : | Ligne 19 : | ||
openssl x509 -req -days 1095 -in server.csr -signkey server.key -out server.crt | openssl x509 -req -days 1095 -in server.csr -signkey server.key -out server.crt | ||
- | |||
- | |||
- | |||
cd /opt/web2py/applications | cd /opt/web2py/applications | ||
git clone https://github.com/KvasirSecurity/Kvasir.git kvasir | git clone https://github.com/KvasirSecurity/Kvasir.git kvasir | ||
Ligne 27 : | Ligne 24 : | ||
cd /opt/web2py/applications/kvasir | cd /opt/web2py/applications/kvasir | ||
mkdir /opt/Kvasir/databases | mkdir /opt/Kvasir/databases | ||
+ | |||
+ | cd /opt/web2py | ||
+ | python web2py.py -c server.crt -k server.key -p 8443 -i 127.0.0.1 --minthreads=40 -a "<recycle>" |
Version du 23 juin 2014 à 13:00
https://github.com/KvasirSecurity/Kvasir
install
apt-get install python-pip git-core python-lxml python-tornado python-beautifulsoup python-dev python-yaml pip install msgpack-python apt-get install postgresql python-psycopg2
cd /opt git clone https://github.com/web2py/web2py.git web2py
sudo -u postgres createuser -SleEPRD kvasir Enter password for new role: Enter it again: CREATE ROLE kvasir PASSWORD 'md5<hash>' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN; sudo -u postgres createdb kvasir -O kvasir
cd /opt/web2py/ openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -days 1095 -in server.csr -signkey server.key -out server.crt cd /opt/web2py/applications git clone https://github.com/KvasirSecurity/Kvasir.git kvasir cd /opt/web2py/applications/kvasir mkdir /opt/Kvasir/databases
cd /opt/web2py python web2py.py -c server.crt -k server.key -p 8443 -i 127.0.0.1 --minthreads=40 -a "<recycle>"