-
-
Save dafthack/8aa4ff60cd9352448a372ce1a7b2e27e to your computer and use it in GitHub Desktop.
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 |
Try first
sudo apt-get update
, it works for me :)
All of you please consider this before using apt-get install metasploit-framework
This will definitely work?
Oh yep. It will
I phase the same issue
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install metasploit-framework
these 3 commands help me to solve this problem
Yah
I phase the same issue
sudo apt-get update sudo apt-get upgrade sudo apt-get install metasploit-framework
these 3 commands help me to solve this problem
Yah! It solves installation
how does one run the ".run" in the WSL2.
how does one run the ".run" in the WSL2.
OOh i just did it
#chmod +x metasploit-latest-linux-x64-installer.run
./metasploit-latest-linux-x64-installer.run
The above did the magic.
I phase the same issue
sudo apt-get update sudo apt-get upgrade sudo apt-get install metasploit-framework
these 3 commands help me to solve this problem
Nice, thank you
Doesn't work for me
- Sudo apt update && apt upgrade
- sudo apt install metasploit-framework
Error:
Unable to locate package metasploit-framework
try this
sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev gawk bison libffi-dev libgdbm-dev libncurses5-dev libtool sqlite3 libgmp-dev gnupg2 dirmngr
on ubuntu also you need to run
sudo gem install bundler
Above all of these commands nothing is working for me
use ubuntu instead, kali has some weird issues with apt on wsl2
If you go root, you can circumvent the
sudo
glitches.First set a root password with
sudo passwd root
,You will be asked to enter sudo's password and then create and confirm a new password for root.
From now on to login as root, you can just
su -
.And finally, to address the
metasploit
install issues, you will realize you no longer needsudo
.Just run this command and watch the magic unfold!
apt-get install metasploit-framework postgresql
😎