Write a shell script that install metasploit on a linux system and then runs an smb login check.
#!/bin/bash
# Update the system packages
sudo apt-get update
# Install dependencies for Metasploit
sudo apt-get install -y curl gnupg2 git postgresql
# Install the Metasploit Framework
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/... > msfinstall && \ chmod 755 msfinstall && \ sudo ./msfinstall
# Start the Postgresql service
sudo service postgresql start
# Launch the Metasploit console
sudo msfconsole -q -x "use auxiliary/scanner/smb/smb_login; set RHOSTS 192.168.0.0/24; set SMBUserFile /path/to/userfile; set SMBPassFile /path/to/passfile; run; exit"
Write a shell script that install metasploit on a linux system and then runs an smb login check.
#!/bin/bash
# Update the system packages
sudo apt-get update
# Install dependencies for Metasploit
sudo apt-get install -y curl gnupg2 git postgresql
# Install the Metasploit Framework
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/... > msfinstall && \ chmod 755 msfinstall && \ sudo ./msfinstall
# Start the Postgresql service
sudo service postgresql start
# Launch the Metasploit console
sudo msfconsole -q -x "use auxiliary/scanner/smb/smb_login; set RHOSTS 192.168.0.0/24; set SMBUserFile /path/to/userfile; set SMBPassFile /path/to/passfile; run; exit"