Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

installing mutillidae in kali

#!/bin/bash
 
sudo apt update
sudo apt install php-xml php-fpm libapache2-mod-php php-mysql php-gd php-imap php-mysql php-curl php-mbstring -y
sudo a2enmod proxy_fcgi setenvif
sudo systemctl restart apache2
sudo a2enconf php7.4-fpm
sudo systemctl reload apache2
sudo systemctl restart apache2.service
sudo service php7.4-fpm restart
sudo systemctl restart mysql
  
cd /tmp
git clone https://github.com/webpwnized/mutillidae
if [ $? -ne '0' ]; then
    exit 1
fi
  
if [ -d "/var/www/html/mutillidae.backup" ]; then
    sudo rm -rf /var/www/html/mutillidae.backup
fi
  
if [ -d "/var/www/html/mutillidae" ]; then
    sudo mv /var/www/html/mutillidae /var/www/html/mutillidae.backup
fi
  
sudo mkdir /var/www/html/mutillidae
sudo mv mutillidae*/* /var/www/html/mutillidae/
sudo sed -i "s/'DB_PASSWORD', 'mutillidae'/'DB_PASSWORD', ''/" /var/www/html/mutillidae/includes/database-config.inc
   
sudo chown -R www-data:www-data /var/www/html/mutillidae/
   
sudo rm -rf mutillidae*
   
cd
Comment

PREVIOUS NEXT
Code Example
Shell :: untar all files in a directory 
Shell :: How to Block Ports in UFW Ubuntu Firewall 
Shell :: serverless deploy missing credentials in config 
Shell :: kubectl install 
Shell :: The file AppDataRoaming pmyarn.ps1 is not digitally signed. 
Shell :: change resolution of a video with terminal 
Shell :: vim convert tabs to spaces 
Shell :: awk field separator multiple characters 
Shell :: npm install postgresql 
Shell :: concatenate strings bash 
Shell :: bash get public ip 
Shell :: install rdp ubuntu 
Shell :: delete branch gitlab 
Shell :: awk if 
Shell :: npm user install packages 
Shell :: delete a folder from git 
Shell :: git remove file from being tracked 
Shell :: .gitignore add directory 
Shell :: vmware shared folder not showing 
Shell :: uname -r command 
Shell :: bash assign array to variable 
Shell :: wsl distro 
Shell :: move files from local to remote ssh 
Shell :: get latitude and longitude based on user entered place android 
Shell :: ansible Permission denied (publickey,password). 
Shell :: imagemagick compare pdf 
Shell :: export gitlog file 
Shell :: find all cron jobs in linux 
Shell :: 7z extract to folder with same name linux 
Shell :: linux find type of desktop 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =