Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Easy Metasploit Install on Windows Subsystem for Linux
Steps to install Metasploit on Windows 10 using the Windows Subsystem for Linux
1.) Enable Developer Mode
C:\> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
2.) Enable Windows Subsystem for Linux
C:\> DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
3.) Reboot
4.) Type "bash" at cmd line to get into Windows Subsystem for Linux and create a new password for your user.
5.) Install Metasploit
test@Desktop:/mnt/c$ curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
@Hackingzone

This comment has been minimized.

Copy link

Hackingzone commented Mar 26, 2018

premission denied after giving sudo command

@bugemarvin

This comment has been minimized.

Copy link

bugemarvin commented May 16, 2018

this is after installation of bash terminal,you must install curl in your windows subsystems for Linux before installing metasploit;

test@Desktop:/mnt/users/newuser$ apt-get install curl(this is to install curl first)
test@Desktop:/mnt/users/newuser$curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall(this is for installing metasploit)

@AwaisAfzal1

This comment has been minimized.

Copy link

AwaisAfzal1 commented Apr 7, 2019

what about this command
sudo apt-get install metasploit-framework

@aviation002

This comment has been minimized.

Copy link

aviation002 commented Apr 24, 2019

sudo apt-get install metasploit-framework Did the job

@JonnyBanana

This comment has been minimized.

Copy link

JonnyBanana commented Nov 19, 2019

to me on one of the many machines it gave me problems with the classic sudo apt-get install metasploit-framework (I don't know why, since on other machines it worked very well, as always), anyway with this script the installation was successful, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.