aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/security/sqlol.yml
blob: 5a66fbdf6c18e15535a35326f565913257cdabc0 (plain)
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
# This playbook install the SQLol SQL injection test-bed
# application (https://github.com/SpiderLabs/SQLol).
#
# Copyright (c) 2013 Fabian Affolter <fabian@affolter-engineering.ch>
#
# Licensed under CC BY 3.0. All rights reserved.
#
---
- name: checkout the source
  command: /usr/bin/git clone git://github.com/SpiderLabs/SQLol.git /usr/share/webapps/sqlol

- name: set the default mysql password
  command: /bin/sed -i "s|$password = ''|$password = '$default_mysql_password'|g" /usr/share/webapps/sqlol/includes/database.config.php

- name: set the right permission
  file: path=/usr/share/webapps/
        mode=0777
        state=directory

- name: create a symlink to the webserver root
  file: src=/usr/share/webapps/sqlol/
        dest=/var/www/localhost/htdocs/sqlol
        owner=root
        group=root
        state=link