marceloluiz
(usa Debian)
Enviado em 18/02/2014 - 20:50h
Olá amigos boa noite.
Recentemente comprei o livro Introdução ao Web Hacking (Novatec - Josh Pauli) embora seja iniciante no mundo Linux.
Na pagina 46 (para quem possa ter o livro) há a instalação da ferramenta DVWA onde o autor da os seguintes passos (que eu segui):
* Baixar o Backtrack e instalar em uma VM (usei a VMWARE como no Livro indicava).
* Ir até o site:
http://theunl33t.blogspot.com.br/2011/08/script-to-download-configure-and-launch.html">
http://theunl33t.blogspot.com.br/2011/08/script-to-download-configure-and-launch.html
* Abrir o editor gedit Text Editor colar e salvar o script como DVWA_install.sh no diretorio root
* Abrir um terminal e executar a instalação:
sh DVWA_install.sh
* Desta forma o progresso de intalação é mostrado. (OBS: Eu instalei o Xampp porque anteriormente não estava dando
certo)
ele traz a msg:
root@bt:~# sh DVWA_install.sh
#######################################
# Damn Vulnerable Web App Installer Script #
#######################################
Coded By: Travis Phillips
Website:
http://theunl33t.blogspot.com
[*] Changing directory to /var/www...Done!
[*] Removing default index.html...rm: cannot remove `index.html': No such file or directory
Done!
[*] Changing to Temp Directory...Done!
[*] Downloading DVWA...
--2014-02-18 16:41:11--
http://voxel.dl.sourceforge.net/project/dvwa/DVWA-1.0.7.zip
Resolving voxel.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `voxel.dl.sourceforge.net'
Done!
[*] Unzipping DVWA...unzip: cannot find or open DVWA-1.0.7.zip, DVWA-1.0.7.zip.zip or DVWA-1.0.7.zip.ZIP.
Done!
[*] Deleting the zip file...rm: cannot remove `DVWA-1.0.7.zip': No such file or directory
Done!
[*] Copying dvwa to root of Web Directory...cp: cannot stat `dvwa/*': No such file or directory
Done!
[*] Clearing Temp Directory...rm: cannot remove `dvwa': No such file or directory
Done!
[*] Enabling Remote include in php.ini...Done!
[*] Enabling write permissions to /var/www/hackable/upload...chmod: cannot access `/var/www/hackable/uploads/': No such file or directory
Done!
[*] Starting Web Service...Done!
[*] Starting MySQL...Done!
[*] Updating Config File...cp: cannot stat `/var/www/config/config.inc.php': No such file or directory
DVWA_install.sh: line 59: /var/www/config/config.inc.php: No such file or directory
rm: cannot remove `/var/www/config/config.inc.php1': No such file or directory
Done!
[*] Updating Database...ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Done!
[*] Starting Firefox to DVWA
UserName: admin
Password: password
Done!
[*] DVWA Install Finished!
root@bt:~# sh DVWA_install.sh
#######################################
# Damn Vulnerable Web App Installer Script #
#######################################
Coded By: Travis Phillips
Website:
http://theunl33t.blogspot.com
[*] Changing directory to /var/www...Done!
[*] Removing default index.html...rm: cannot remove `index.html': No such file or directory
Done!
[*] Changing to Temp Directory...Done!
[*] Downloading DVWA...
--2014-02-18 17:14:31--
http://voxel.dl.sourceforge.net/project/dvwa/DVWA-1.0.7.zip
Resolving voxel.dl.sourceforge.net... failed: Name or service not known.
wget: unable to resolve host address `voxel.dl.sourceforge.net'
Done!
[*] Unzipping DVWA...unzip: cannot find or open DVWA-1.0.7.zip, DVWA-1.0.7.zip.zip or DVWA-1.0.7.zip.ZIP.
Done!
[*] Deleting the zip file...rm: cannot remove `DVWA-1.0.7.zip': No such file or directory
Done!
[*] Copying dvwa to root of Web Directory...cp: cannot stat `dvwa/*': No such file or directory
Done!
[*] Clearing Temp Directory...rm: cannot remove `dvwa': No such file or directory
Done!
[*] Enabling Remote include in php.ini...Done!
[*] Enabling write permissions to /var/www/hackable/upload...chmod: cannot access `/var/www/hackable/uploads/': No such file or directory
Done!
[*] Starting Web Service...Done!
[*] Starting MySQL...Done!
[*] Updating Config File...cp: cannot stat `/var/www/config/config.inc.php': No such file or directory
DVWA_install.sh: line 59: /var/www/config/config.inc.php: No such file or directory
rm: cannot remove `/var/www/config/config.inc.php1': No such file or directory
Done!
[*] Updating Database...ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Done!
[*] Starting Firefox to DVWA
UserName: admin
Password: password
Done!
[*] DVWA Install Finished!
Confirmei no xampp e Mysql, PROFTPD e Apache estão rodando (inclusive até restartei para ver se era o problema).
e ao tentar entrar no http://localhost/login.php
ele da msg:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.7 (Unix) OpenSSL/1.0.1e PHP/5.5.6 mod_perl/2.0.8-dev Perl/v5.16.3
Alguém que já tenha feito a instalação poderia me ajudar?
Grato desde já.