{"id":6296,"date":"2019-10-04T23:51:12","date_gmt":"2019-10-05T03:51:12","guid":{"rendered":"http:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/?p=6296"},"modified":"2019-10-05T00:20:04","modified_gmt":"2019-10-05T04:20:04","slug":"kali-linux-using-windows-subsystem-for-linux-on-windows-10","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/2019\/10\/04\/kali-linux-using-windows-subsystem-for-linux-on-windows-10\/","title":{"rendered":"Kali Linux using Windows Subsystem for Linux on Windows 10"},"content":{"rendered":"<p>I wanted to experiment with running Kali using Windows Subsystem for Linux on Windows 10.\u00a0 This will let you run native Linux command-line tools directly on Windows.\u00a0 I created this guide to get you a Kali WSL install with Metasploit running on Windows 10. \u00a0If you want to install Metasploit directly in Windows without the Windows Subsystem for Linux, read after step #13.<\/p>\n<ol>\n<li>Open and run Windows PowerShell as administrator<\/li>\n<li>Enter the following command:<br \/>\n<strong>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux<\/strong><\/li>\n<li>Reboot Windows<\/li>\n<li>Open the Microsoft Store on Windows 10 and install <a href=\"https:\/\/www.microsoft.com\/en-us\/p\/kali-linux\/9pkr34tncv07?activetab=pivot:overviewtab\">Kali Linux<\/a><\/li>\n<li>Launch Kali Linux when it is done installing and type a username and password when prompted.<\/li>\n<li>Type: <strong>sudo apt-get update<\/strong> (enter password if prompted)<\/li>\n<li>Type: <strong>sudo apt-get dist-upgrade<\/strong><\/li>\n<li>Type: <strong>sudo apt-get clean<\/strong><\/li>\n<li>Now we have to add the Kali Linux folder as an exception to the built-in Virus and threat protection so it doesn\u2019t keep blocking\/removing Metasploit:<\/li>\n<\/ol>\n<p>Go to <em>Start &gt; Settings &gt; Update &amp; Security &gt; Windows Security &gt; Virus &amp; threat protection<br \/>\n<\/em><br \/>\nUnder Virus &amp; threat protection settings, select Manage settings, and then under Exclusions, select Add or remove exclusions.<\/p>\n<ol start=\"10\">\n<li>Add your Kali folder as an exclusion:<br \/>\nLocated under: %LocalAppData%\\Packages\\KaliLinux.&lt;Package_ID&gt;\\LocalState<br \/>\nExample: <em>C:\\Users\\yourname\\AppData\\Local\\Packages\\KaliLinux.random##sandletters\\LocalState<\/em><\/li>\n<li>Now go back to your Kali Linux terminal and run this command to install Metasploit:<br \/>\n<strong>sudo apt-get install metasploit-framework<\/strong><\/li>\n<li>Finally, run Metasploit by typing: <strong>msfconsole<\/strong><\/li>\n<li>Have fun experimenting and adding whatever else you want to Kali Linux<\/li>\n<\/ol>\n<p>Also, if you just want to install Metasploit in Windows and are using the built-in virus and threat protection, you can download <a href=\"https:\/\/windows.metasploit.com\/metasploitframework-latest.msi\">Metasploit Framework for Windows<\/a> and add c:\\metasploit-framework as an exclusion folder (like in step #9).\u00a0 The msfconsole command and all related tools will be added to the system %PATH% environment variable so you can use Metasploit within Command Prompt.<\/p>\n<p>These alternate methods may be helpful for someone who has limited resources on their computer (ex. RAM\/CPU) and can benefit from running with the least amount of VMs as possible.\u00a0 It&#8217;s also good to experiment with relatively new technology like Windows Subsystem for Linux.<\/p>\n<p><strong>I still highly recommend a full native Linux install or a Linux VM for familiarization and skill building.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to experiment with running Kali using Windows Subsystem for Linux on Windows 10.\u00a0 This will let you run native Linux command-line tools directly on Windows.\u00a0 I created this guide to get you a Kali WSL install with Metasploit running on Windows 10. \u00a0If you want to install Metasploit directly in Windows without the [&hellip;]<\/p>\n","protected":false},"author":22906,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[800156],"tags":[],"class_list":{"0":"post-6296","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-week-06-sniffers","7":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/posts\/6296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/users\/22906"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/comments?post=6296"}],"version-history":[{"count":4,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/posts\/6296\/revisions"}],"predecessor-version":[{"id":6300,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/posts\/6296\/revisions\/6300"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/media?parent=6296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/categories?post=6296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis5211sec001fall2019\/wp-json\/wp\/v2\/tags?post=6296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}