{"id":2495,"date":"2021-01-29T20:13:01","date_gmt":"2021-01-29T19:13:01","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=2495"},"modified":"2023-12-24T12:27:02","modified_gmt":"2023-12-24T11:27:02","slug":"windows-subsystem-for-linux","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=2495","title":{"rendered":"Windows Subsystem for&nbsp;Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Deter\u00admine if the sys\u00adtem has the <span class=\"caps\">WSL<\/span> with&nbsp;bash:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">where \/R C:\\windows bash.exe<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If bash.exe is there and the <span class=\"caps\">WSL<\/span> is run\u00adning, then com\u00admands can be run as root (!)&nbsp;like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">C:\\Windows\\WinSxS\\amd64_microsoft-windows-lxss-bash_31bf3856ad364e35_10.0.19041.423_none_1da742a41b53e164\\bash.exe whoami<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install the&nbsp;<span class=\"caps\">WSL<\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To install the <span class=\"caps\">WSL<\/span>, a sys\u00adtem shell is required unfor\u00adtu\u00adnatel\u00adly. <a href=\"https:\/\/docs.microsoft.com\/de-de\/windows\/wsl\/install-win10\">See this arti\u00adcle for instal\u00adla\u00adtion<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deter\u00admine if the sys\u00adtem has the <span class=\"caps\">WSL<\/span> with&nbsp;bash: where \/R C:\\windows bash.exe If bash.exe is there and the <span class=\"caps\">WSL<\/span> is run\u00adning, then com\u00admands can be run as root (!)&nbsp;like: C:\\Windows\\WinSxS\\amd64_microsoft-windows-lxss-bash_31bf3856ad364e35_10.0.19041.423_none_1da742a41b53e164\\bash.exe whoa\u00admi Install the&nbsp;<span class=\"caps\">WSL<\/span> To install the <span class=\"caps\">WSL<\/span>, a sys\u00adtem shell is required unfor\u00adtu\u00adnatel\u00adly. See this arti\u00adcle for installation.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[468],"tags":[24,484],"class_list":["post-2495","post","type-post","status-publish","format-standard","hentry","category-general","tag-windows","tag-wsl"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2495"}],"version-history":[{"count":3,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2495\/revisions"}],"predecessor-version":[{"id":2501,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2495\/revisions\/2501"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}