Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
public:dvwa [2013/04/04 15:01] KoHofer@unibz.it |
public:dvwa [2013/04/04 15:03] KoHofer@unibz.it |
||
---|---|---|---|
Line 12: | Line 12: | ||
sudo apt-get install php5 php5-common php5-cli php5-mysql libapache2-mod-php5 mysql-server php5-mysql apache2 libapache2-mod-php5 firefox | sudo apt-get install php5 php5-common php5-cli php5-mysql libapache2-mod-php5 mysql-server php5-mysql apache2 libapache2-mod-php5 firefox | ||
+ | |||
+ | **Give the mysql superuser root the password: toor** | ||
<code> | <code> | ||
Line 108: | Line 110: | ||
echo -n "[*] Updating Config File..." | echo -n "[*] Updating Config File..." | ||
cp /var/www/config/config.inc.php /var/www/config/config.inc.php1 | cp /var/www/config/config.inc.php /var/www/config/config.inc.php1 | ||
- | sed -e 's/'\'\''/'\''mysql'\''/' /var/www/config/config.inc.php1 > /var/www/config/config.inc.php | + | sed -e 's/'\'\''/'\''toor'\''/' /var/www/config/config.inc.php1 > /var/www/config/config.inc.php |
rm /var/www/config/config.inc.php1 | rm /var/www/config/config.inc.php1 | ||
echo -e "Done!\n" | echo -e "Done!\n" | ||
Line 114: | Line 116: | ||
echo -n "[*] Updating Database..." | echo -n "[*] Updating Database..." | ||
wget --post-data "create_db=Create / Reset Database" http://127.0.0.1/setup.php &> /dev/null | wget --post-data "create_db=Create / Reset Database" http://127.0.0.1/setup.php &> /dev/null | ||
- | mysql -u root --password='mysql' -e 'update dvwa.users set avatar = "/hackable/users/gordonb.jpg" where user = "gordonb";' | + | mysql -u root --password='toor' -e 'update dvwa.users set avatar = "/hackable/users/gordonb.jpg" where user = "gordonb";' |
- | mysql -u root --password='mysql' -e 'update dvwa.users set avatar = "/hackable/users/smithy.jpg" where user = "smithy";' | + | mysql -u root --password='toor' -e 'update dvwa.users set avatar = "/hackable/users/smithy.jpg" where user = "smithy";' |
- | mysql -u root --password='mysql' -e 'update dvwa.users set avatar = "/hackable/users/admin.jpg" where user = "admin";' | + | mysql -u root --password='toor' -e 'update dvwa.users set avatar = "/hackable/users/admin.jpg" where user = "admin";' |
- | mysql -u root --password='mysql' -e 'update dvwa.users set avatar = "/hackable/users/pablo.jpg" where user = "pablo";' | + | mysql -u root --password='toor' -e 'update dvwa.users set avatar = "/hackable/users/pablo.jpg" where user = "pablo";' |
- | mysql -u root --password='mysql' -e 'update dvwa.users set avatar = "/hackable/users/1337.jpg" where user = "1337";' | + | mysql -u root --password='toor' -e 'update dvwa.users set avatar = "/hackable/users/1337.jpg" where user = "1337";' |
echo -e "Done!\n" | echo -e "Done!\n" | ||