3 ms·
Not a bad idea Write a shell script that install metasploit on a linux system and then runs an smb login check. #!/bin/bash # Update the system packages sud
by throwaway4aday 4y ago
Not a bad idea
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/master/config/templates/metasploit-framework-wrappers/msfupdate.erb 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"
- Zetice 4y agoRight, and as I’ve been saying, I can throw a stapler at your head, so what?
- throwaway4aday 4y agoI agree this isn't the robot uprising but it's far more automated than a person throwing a stapler and has a much broader palette of harms it can do.