Kvasir
De Linuxmemo.
(Différences entre les versions)
(→install) |
(→install) |
||
(2 versions intermédiaires masquées) | |||
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/ | ||
openssl genrsa -out server.key 2048 | openssl genrsa -out server.key 2048 | ||
openssl req -new -key server.key -out server.csr | openssl req -new -key server.key -out server.csr | ||
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 | |
- | + | git clone https://github.com/KvasirSecurity/Kvasir.git kvasir | |
- | + | ||
- | + | cd /opt/web2py/applications/kvasir | |
- | + | mkdir /opt/Kvasir/databases | |
- | + | mv kvasir.yaml.sample kvasir.yaml | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
cd /opt/web2py | cd /opt/web2py | ||
- | python web2py.py -c server.crt -k server.key -p 8443 -i 127.0.0.1 --minthreads=40 -a <recycle> | + | ./web2py.py -R applications/Kvasir/private/user.py -S kvasir -M -A -u kvasir -p kvasir |
- | + | python web2py.py -c server.crt -k server.key -p 8443 -i 127.0.0.1 --minthreads=40 -a "<recycle>" | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Version actuelle en date du 23 juin 2014 à 13:12
https://github.com/KvasirSecurity/Kvasir
[modifier] 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 mv kvasir.yaml.sample kvasir.yaml
cd /opt/web2py ./web2py.py -R applications/Kvasir/private/user.py -S kvasir -M -A -u kvasir -p kvasir python web2py.py -c server.crt -k server.key -p 8443 -i 127.0.0.1 --minthreads=40 -a "<recycle>"