Advertisement
efxtv

How to install DVWA in termux Without any error (dvwa install github) t.me/efxtv

Mar 14th, 2023 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | Cybersecurity | 0 0
  1. How to install DVWA in termux
  2.  
  3. #Install required packages for DVWA in termux
  4. pkg install php -y
  5. pkg install git -y
  6. pkg install mariadb -y
  7.  
  8. #Git clone DVWA
  9. git clone https://github.com/ethicalhack3r/DVWA
  10.  
  11. #copy config file
  12. cd dvwa/config
  13. cp config.inc.php.dist config.inc.php
  14. cd ..
  15.  
  16. #Start Mysql with root user
  17. mysqld_safe -u root &
  18. mysql -h localhost
  19.  
  20. #Create database
  21. create database dvwa;
  22. create user dvwa@localhost identified by 'p@ssw0rd';
  23. grant all on dvwa.* to dvwa@localhost;
  24. flush privileges;
  25.  
  26. #Start server
  27. php -S 127.0.0.1:4444
  28.  
  29. #ACCESS DVWA
  30. php -S 127.0.0.1:4444
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement