{"id":285058,"date":"2017-04-17T06:20:59","date_gmt":"2017-04-17T02:20:59","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=285058"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=285058","title":{"rendered":"Bash on Windows: \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u044b\u0442\u044b \u043f\u043e \u0441\u043a\u0440\u0435\u0449\u0438\u0432\u0430\u043d\u0438\u044e \u0435\u0436\u0435\u0439 \u0438 \u0443\u0436\u0435\u0439"},"content":{"rendered":"<p>\u0412 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u0432\u0448\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 Windows 10 Creators Update \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439\u0448\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0438\u043d\u0434\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u044d\u0442\u043e\u043c \u0438\u0445 \u043b\u0438\u043d\u0443\u043a\u0441\u0435. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u0435\u043d\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u2014 \u0435\u0432\u0430\u043d\u0433\u0435\u043b\u0438\u0441\u0442\u044b Microsoft \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u043c\u043d\u0435 <a href=\"https:\/\/blogs.msdn.microsoft.com\/commandline\/2017\/04\/11\/windows-10-creators-update-whats-new-in-bashwsl-windows-console\/\">\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0432\u0443 \u0432 PowerShell \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c Notepad \u0438\u0437 bash<\/a>. \u0427\u0451, \u043f\u0440\u0430\u0432\u0434\u0430? \u042d\u0442\u043e \u0432\u0441\u0451 \u0434\u043e \u0447\u0435\u0433\u043e \u0432\u044b \u0434\u043e\u0434\u0443\u043c\u0430\u043b\u0438\u0441\u044c?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/64d\/43a\/e06\/64d43ae06ae86f4b416effd34a30d1a9.png\" alt=\"image\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0442\u0440\u0430\u0441\u0442\u043d\u043e \u0436\u0434\u0430\u0432\u0448\u0438\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 exe-\u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 WSL, \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  Bash on Windows \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u0432\u0441\u044f\u043a\u043e\u0439 \u043c\u0435\u043b\u043a\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u0432\u044b\u043a\u0430\u0447\u0430\u0442\u044c, \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c, \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0412\u0437\u044f\u0442\u044c 10-20 \u0433\u0438\u0433\u043e\u0432 \u043b\u043e\u0433\u043e\u0432 \u0438 \u043f\u043e\u043a\u043e\u043b\u0434\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0434 \u043d\u0438\u043c\u0438 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0447\u0435\u0433\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u044d\u0442\u0430\u043a\u043e\u0433\u043e. \u0412\u0437\u044f\u0442\u044c 200 \u0433\u0438\u0433\u043e\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0412\u0416\u0423\u0425 \u0438 \u043f\u0443\u043b\u044c\u043d\u0443\u0442\u044c \u043f\u0430\u0440\u0443 \u043c\u0435\u0433\u043e\u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 \u0431\u0430\u0437\u0443 \u0441\u0430\u0439\u0442\u0430. \u0412\u043e\u0431\u0449\u0435\u043c, \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0431\u044b\u0442\u043e\u0432\u0443\u0445\u0430, \u043a\u0430\u043a \u0443 \u0432\u0441\u0435\u0445. \u0420\u0430\u0437\u0432\u0435 \u043d\u0435\u0442?<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u043e\u0439 \u043e\u043f\u044b\u0442<\/p>\n<h2>\u041a\u0435\u0439\u0441 \u043d\u043e\u043c\u0435\u0440 \u043e\u0434\u0438\u043d<\/h2>\n<p>  \u0418\u0442\u0430\u043a, \u0442\u043e \u0440\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044f \u0436\u0434\u0430\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 exe-\u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 WSL.<\/p>\n<p>  \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0442\u043e \u0432\u0441\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u00abdownload\u00bb \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c5b\/7ab\/97b\/c5b7ab97bb70d79934ed34a1706e57f4.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0432 \u044d\u0442\u0430\u043f \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u0441\u044b\u043b\u043e\u043a \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044e \u043d\u0443\u0436\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<br \/>  \u0414\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0434\u0432\u0443\u043c\u044f \u043f\u0443\u0442\u044f\u043c\u0438.<\/p>\n<h3>\u041f\u0443\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u2014 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a WMIC<\/h3>\n<p>  <b>\u0412 CMD \u0432\u044b\u0437\u043e\u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/b>  <\/p>\n<pre><code>wmic datafile where name=&quot;c:\\\\Windows\\\\System32\\\\cmd.exe&quot; GET \/VALUE<\/code><\/pre>\n<p>  <i><b>\/VALUE<\/b> \u2014 \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e<\/i><\/p>\n<p>  <b>\u0412 bash \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a<\/b>  <\/p>\n<pre><code class=\"bash\">cmd.exe \/C &quot;wmic datafile where name='c:\\\\\\\\Windows\\\\\\\\System32\\\\\\\\cmd.exe' GET \/VALUE&quot;<\/code><\/pre>\n<p>  <i>\u0441\u043b\u044d\u0448\u0435\u0439 \u043c\u043d\u043e\u0433\u043e \u0438 \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435<\/i><\/p>\n<p>  \u041d\u043e \u043c\u043d\u0435 \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432\u044b\u0432\u0435\u0441\u0442\u0438, \u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  <b>\u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432 PHP \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:<\/b>  <\/p>\n<pre><code class=\"php\">\/\/ \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 $file='c:\\Windows\\System32\\cmd.exe';  \/\/ \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 WMI $q=&quot;\/mnt\/c\/Windows\/System32\/cmd.exe \/C \\&quot;wmic datafile where name='&quot;.addslashes(addslashes($file)).&quot;' GET \/VALUE\\&quot;&quot;; $a=exec($q,$b); $ini=implode(&quot;\\n&quot;,$b);<\/code><\/pre>\n<p>  <i><b>\/mnt\/c\/Windows\/System32\/cmd.exe<\/b> \u2014 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c, \u0447\u0442\u043e \u0431\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430<br \/>  <b>$b<\/b> \u2014 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 (\u0432 $a \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430)<br \/>  <b>$ini<\/b> \u2014 \u0444\u043e\u0440\u043c\u0430\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 ini-\u0444\u0430\u0439\u043b\u043e\u043c, \u0433\u0440\u0435\u0445 \u044d\u0442\u0438\u043c \u043d\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u2014 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <b>$b<\/b> \u0432 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <b>parse_ini_string()<\/b><\/i><\/p>\n<h3>\u041f\u0443\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Scripting.FileSystemObject<\/h3>\n<p>  \u0414\u0430\u043d\u043d\u043e\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044f \u043d\u0430\u0448\u0451\u043b <a href=\"http:\/\/stackoverflow.com\/questions\/25162348\/find-the-version-of-a-installed-program-from-batch-file\">\u0437\u0434\u0435\u0441\u044c <\/a>\u0438 \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0434\u043e\u043f\u0438\u043b\u0438\u043b.<\/p>\n<p>  <b>\u0412 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0431\u044b\u043b \u0432\u044b\u0437\u043e\u0432 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438, \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e<\/b>  <\/p>\n<pre><code class=\"vbscript\">WScript.Echo(objFolder.GetDetailsOf(objItem,-1));<\/code><\/pre>\n<p>  <b>\u042f \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043d\u0430 \u0446\u0438\u043a\u043b \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044e\u0449\u0438\u0439 \u0412\u0421\u0415 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0444\u0430\u0439\u043b\u0430<\/b>  <\/p>\n<pre><code class=\"vbscript\">var folder=objShell.NameSpace(namespace); for (var i=0; i&lt;0xFFFF; i++) \t{ \tfileinfo=folder.GetDetailsOf(null, i); \tif (!fileinfo) \t\t{ \t\tbreak; \t\t} \tWScript.Echo( fileinfo+&quot; = &quot;+objFolder.GetDetailsOf(objItem,i) ); \t}<\/code><\/pre>\n<p>  \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u0434\u0435\u043b\u0430\u043d \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c \u0441 ini-\u0444\u0430\u0439\u043b\u043e\u043c<\/p>\n<p>  <b>PHP \u043a\u043e\u0434, \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 bat-\u0444\u0430\u0439\u043b, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439<\/b>  <\/p>\n<pre><code class=\"php\">$q1=&quot;\/mnt\/c\/Windows\/System32\/cmd.exe \/C \\&quot;C:\\\\test_exe\\\\test_exe.bat &quot;.addslashes($file).&quot;\\&quot;&quot;; $a1=exec($q1,$b1); $ini1=implode(&quot;\\n&quot;,$b1); $ini1=iconv(&quot;CP866&quot;,&quot;UTF-8&quot;,  $ini1);<\/code><\/pre>\n<p>  \u041f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u043a\u0430\u043a \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 WMI, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u044e\u043d\u0438\u043a\u043e\u0434. ( CP866 \u2014 \u0432\u0441\u043f\u043b\u0430\u043a\u043d\u0443\u043b )<\/p>\n<p>  <b>\u0421\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0435\u0434\u0438\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438 \u043f\u0430\u0440\u0441\u0438\u043c<\/b>  <\/p>\n<pre><code class=\"php\">$result_ini=&quot;[WMIC]\\n&quot;.$ini.&quot;\\n[FileSystemObject]\\n&quot;.$ini1; $result_arr = parse_ini_string($result_ini, true, INI_SCANNER_RAW); print_r($result_arr);<\/code><\/pre>\n<p>  <i>\u0414\u0435\u043b\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u043a\u0446\u0438\u0438 (\u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 true) \u0438 \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u2014 <b>INI_SCANNER_RAW<\/b><\/i><\/p>\n<p>  <b>\u0412\u0416\u0423\u0425 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/b>  <\/p>\n<pre><code class=\"bash\">~$ cd \/mnt\/c\/test_exe\/ \/mnt\/c\/test_exe$ php test_exe.php<\/code><\/pre>\n<p>  <code>Array<br \/>  (<br \/>   [WMIC] =&gt; Array<br \/>   (<br \/>   [AccessMask] =&gt; 1179817<br \/>   [Archive] =&gt; TRUE<br \/>   [Caption] =&gt; c:\\windows\\system32\\cmd.exe<br \/>   [Compressed] =&gt; FALSE<br \/>   [CompressionMethod] =&gt; <br \/>   [CreationClassName] =&gt; CIM_LogicalFile<br \/>   [CreationDate] =&gt; 20170318235750.921718+180<br \/>   [CSCreationClassName] =&gt; Win32_ComputerSystem<br \/>   [CSName] =&gt; <br \/>   [Description] =&gt; c:\\windows\\system32\\cmd.exe<br \/>   [Drive] =&gt; c:<br \/>   [EightDotThreeFileName] =&gt; c:\\windows\\system32\\cmd.exe<br \/>   [Encrypted] =&gt; FALSE<br \/>   [EncryptionMethod] =&gt; <br \/>   [Extension] =&gt; exe<br \/>   [FileName] =&gt; cmd<br \/>   [FileSize] =&gt; 271872<br \/>   [FileType] =&gt; Application<br \/>   [FSCreationClassName] =&gt; Win32_FileSystem<br \/>   [FSName] =&gt; NTFS<br \/>   [Hidden] =&gt; FALSE<br \/>   [InstallDate] =&gt; 20170318235750.921718+180<br \/>   [InUseCount] =&gt; <br \/>   [LastAccessed] =&gt; 20170318235750.921718+180<br \/>   [LastModified] =&gt; 20170318235750.921718+180<br \/>   [Manufacturer] =&gt; Microsoft Corporation<br \/>   [Name] =&gt; c:\\windows\\system32\\cmd.exe<br \/>   [Path] =&gt; \\windows\\system32\\<br \/>   [Readable] =&gt; TRUE<br \/>   [Status] =&gt; OK<br \/>   [System] =&gt; FALSE<br \/>   [Version] =&gt; 10.0.15063.0<br \/>   [Writeable] =&gt; TRUE<br \/>   )<\/p>\n<p>  [FileSystemObject] =&gt; Array<br \/>   (<br \/>   [\u0418\u043c\u044f] =&gt; cmd.exe<br \/>   [\u0420\u0430\u0437\u043c\u0435\u0440] =&gt; 265 \u041a\u0411<br \/>   [\u0422\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430] =&gt; \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<br \/>   [\u0414\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f] =&gt; 18.03.2017 23:57<br \/>   [\u0414\u0430\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f] =&gt; 18.03.2017 23:57<br \/>   [\u0414\u0430\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430] =&gt; 18.03.2017 23:57<br \/>   [\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b] =&gt; A<br \/>   [\u0410\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0441\u0442\u044c] =&gt; <br \/>   [\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c] =&gt; \u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e<br \/>   [\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u044b\u0439 \u0442\u0438\u043f] =&gt; \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<br \/>   [\u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446] =&gt; TrustedInstaller<br \/>   [\u0412\u0438\u0434] =&gt; \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430<br \/>   [\u0414\u0430\u0442\u0430 \u0441\u044a\u0435\u043c\u043a\u0438] =&gt; <br \/>   [\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u0438] =&gt; <br \/>   [\u0410\u043b\u044c\u0431\u043e\u043c] =&gt; <br \/>   [\u0413\u043e\u0434] =&gt; <br \/>   [\u0416\u0430\u043d\u0440] =&gt; <br \/>   [\u0414\u0438\u0440\u0438\u0436\u0435\u0440] =&gt; <br \/>   [\u0422\u0435\u0433\u0438] =&gt; <br \/>   [\u041e\u0446\u0435\u043d\u043a\u0430] =&gt; \u0411\u0435\u0437 \u043e\u0446\u0435\u043d\u043a\u0438<br \/>   [\u0410\u0432\u0442\u043e\u0440\u044b] =&gt; <br \/>   [\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435] =&gt; <br \/>   [\u0422\u0435\u043c\u0430] =&gt; <br \/>   [\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438] =&gt; <br \/>   [\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438] =&gt; <br \/>   [\u0410\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0430] =&gt; c Microsoft Corporation. All rights reserved.<br \/>   [\u2116] =&gt; <br \/>   [\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c] =&gt; <br \/>   [\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0430] =&gt; <br \/>   [\u0421 \u0437\u0430\u0449\u0438\u0442\u043e\u0439] =&gt; <br \/>   [\u041a\u0430\u043c\u0435\u0440\u0430, \u043c\u043e\u0434\u0435\u043b\u044c] =&gt; <br \/>   [\u0420\u0430\u0437\u043c\u0435\u0440\u044b] =&gt; <br \/>   [\u041a\u0430\u043c\u0435\u0440\u0430, \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c] =&gt; <br \/>   [\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f] =&gt; Microsoft Corporation<br \/>   [\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430] =&gt; Windows Command Processor<br \/>   [\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u043e\u0431\u0440\u0430\u0437\u0446\u043e\u0432] =&gt; <br \/>   [\u0418\u043c\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b] =&gt; <br \/>   [\u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c] =&gt; <br \/>   [\u0412 \u0441\u0435\u0442\u0438] =&gt; <br \/>   [\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f] =&gt; <br \/>   [\u041c\u0435\u0441\u0442\u043e] =&gt; <br \/>   [\u0410\u0434\u0440\u0435\u0441\u0430 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432] =&gt; <br \/>   [\u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438] =&gt; <br \/>   [\u0410\u0434\u0440\u0435\u0441 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430] =&gt; <br \/>   [\u0418\u043c\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430] =&gt; <br \/>   [\u0412\u0440\u0435\u043c\u044f \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f] =&gt; <br \/>   [\u0410\u0434\u0440\u0435\u0441\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432] =&gt; <br \/>   [\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438] =&gt; <br \/>   [\u0420\u0435\u0441\u0443\u0440\u0441\u044b] =&gt; <br \/>   [\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u0438\u044f] =&gt; <br \/>   [\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e\/\u0417\u0430\u043d\u044f\u0442\u043e] =&gt; <br \/>   [\u041e\u0431\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440] =&gt; 227 \u0413\u0411<br \/>   [\u0423\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c] =&gt; <br \/>   )<\/p>\n<p>  )<br \/>  <\/code><\/p>\n<p>  \u041a \u0447\u0435\u043c\u0443 \u0431\u044b\u043b \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0441\u0442\u0440\u0451\u043c\u043d\u043e\u043a\u043e\u0434?<br \/>  \u0410 \u0432\u043e\u0442 \u043a \u0447\u0435\u043c\u0443.<\/p>\n<p>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b \u0440\u0430\u043d\u0435\u0435, \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442\u0430 \u043f\u043e\u0432\u0435\u0434\u0430\u043b\u0438, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0432 \u0432 PowerShell \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c notepad.exe \u0438\u0437 \u0431\u0430\u0448\u0430. <\/p>\n<p>  \u0410 \u0432 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/326432\/\">\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430<\/a> \u043b\u044e\u0434\u0438 \u0432\u044b\u044f\u0441\u043d\u044f\u044e\u0442 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u043c \u0447\u0435\u0441\u0442\u043d\u044b\u0439 \u043b\u0438\u043d\u0443\u043a\u0441 \u0438 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0432\u0437\u0433\u0440\u043e\u043c\u043e\u0437\u0434\u0438\u0442\u044c \u0414\u043e\u043a\u0435\u0440\u0430.<\/p>\n<p>  \u041b\u044e\u0434\u0438, \u0432\u044b \u043d\u0435 \u0442\u0443\u0434\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435! <br \/>  \u042f \u0432 <b>bash<\/b> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b <b>PHP-\u0441\u043a\u0440\u0438\u043f\u0442<\/b> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 <b>exec()<\/b> \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b <b>bat<\/b>-\u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c <b>JScript <\/b>\u0441\u043e\u0437\u0434\u0430\u043b <b>ActiveXObject<\/b>.<\/p>\n<p>  It&#8217;s Kind Of Magic!<\/p>\n<p>  <b>\u0410 \u0435\u0449\u0451 \u044f \u043c\u043e\u0433\u0443 \u0438\u0437 CMD \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/b>  <\/p>\n<pre><code>C:\\test_exe&gt;bash -c &quot;php test_exe.php&quot;<\/code><\/pre>\n<p>  \u0410-\u0430-\u0430-\u0430-\u0430-\u0430!<\/p>\n<h2>\u041a\u0435\u0439\u0441 \u043d\u043e\u043c\u0435\u0440 \u0434\u0432\u0430<\/h2>\n<p>  \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 Windows 10 Creators Update \u044f \u043d\u0430\u043a\u0430\u0442\u0438\u043b 6 \u0447\u0438\u0441\u043b\u0430, \u0430 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0438 \u0431\u044b\u043b \u043e\u0442\u0432\u043b\u0435\u0447\u0451\u043d \u043e\u0442 \u043d\u043e\u0432\u043e\u0439 \u0438\u0433\u0440\u0443\u0448\u043a\u0438 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0435\u0439. \u0411\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044b \u043f\u0435\u0440\u0432\u0438\u0447\u043a\u0438.<\/p>\n<p>  \u042d\u0432\u0440\u0438\u043a\u0430, \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0447\u0430\u0442\u0430\u043b\u043a\u0443<\/p>\n<p>  <b>\u041b\u0435\u0437\u0435\u043c \u0432 bash \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/b>  <\/p>\n<pre><code class=\"bash\">~$ 2Printer.exe -s &quot;c:\\2Printer\\_input\\*.*&quot;<\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u0438\u0437 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 \u043f\u043e\u043b\u0437\u0443\u0442 \u043b\u0438\u0441\u0442\u043e\u0447\u043a\u0438<br \/>  <img decoding=\"async\" src=\"https:\/\/img-fotki.yandex.ru\/get\/120031\/485282285.0\/0_1a685e_290bdebc_orig\" alt=\"image\"\/><br \/>  <i>(\u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435, \u043d\u043e \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c HP \u0442\u043e\u0436\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e)<\/i><\/p>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li>\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u044f\u0432\u0438\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c (\u0442\u0440\u0438\u0430\u043b\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0443)<\/li>\n<li>\u0438\u0437 \u0431\u0430\u0448\u0435\u0432\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u043e\u0448\u043a\u0430 \u043f\u043e\u043b\u0435\u0437\u043b\u0430 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0432\u0438\u043d\u0434\u043e\u0432\u044b\u043c \u043f\u0443\u0442\u044f\u043c<\/li>\n<li>\u0432\u0437\u044f\u043b\u0430 \u043e\u0442\u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b\u044b \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/li>\n<li>\u0432\u044b\u0437\u0432\u0430\u043b\u0430 \u043e\u0444\u0438\u0441\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0447\u0435\u0440\u0435\u0437 COM-\u043e\u0431\u044a\u0435\u043a\u0442\u044b<\/li>\n<li>\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430 \u043f\u0440\u0438\u043d\u0442\u0435\u0440<\/li>\n<\/ul>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u0438, \u043d\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<h2>\u0420\u0415\u0417\u042e\u041c\u0415<\/h2>\n<p>  \u042f \u0435\u0449\u0451 \u043d\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u043e\u0441\u043e\u0437\u043d\u0430\u043b \u0447\u0442\u043e \u0435\u0449\u0451 \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u044d\u0442\u0430 \u0448\u0442\u0443\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0441\u0435\u0434\u0430 \u0441 \u043a\u043e\u0440\u043e\u0432\u0430\u043c\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a LAMP.<\/p>\n<p>  \u041d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u0435\u0431\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0432\u044b\u0440\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u0434\u0438\u0445\u043e\u0442\u043e\u043c\u0438\u0438\u0438 \u00ab\u043b\u0438\u0431\u043e Linux, \u043b\u0438\u0431\u043e Windows\u00bb \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u043a\u0440\u0435\u0449\u0438\u0432\u0430\u0442\u044c \u0435\u0436\u0435\u0439 \u0438 \u0443\u0436\u0435\u0439 \u0432 \u0441\u0430\u043c\u044b\u0445 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u044f\u0445 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044f\u0445.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/326634\/\"> https:\/\/habrahabr.ru\/post\/326634\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u0432\u0448\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 Windows 10 Creators Update \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439\u0448\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0438\u043d\u0434\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u044d\u0442\u043e\u043c \u0438\u0445 \u043b\u0438\u043d\u0443\u043a\u0441\u0435. \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u0435\u043d\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u2014 \u0435\u0432\u0430\u043d\u0433\u0435\u043b\u0438\u0441\u0442\u044b Microsoft \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u043c\u043d\u0435 <a href=\"https:\/\/blogs.msdn.microsoft.com\/commandline\/2017\/04\/11\/windows-10-creators-update-whats-new-in-bashwsl-windows-console\/\">\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0432\u0443 \u0432 PowerShell \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c Notepad \u0438\u0437 bash<\/a>. \u0427\u0451, \u043f\u0440\u0430\u0432\u0434\u0430? \u042d\u0442\u043e \u0432\u0441\u0451 \u0434\u043e \u0447\u0435\u0433\u043e \u0432\u044b \u0434\u043e\u0434\u0443\u043c\u0430\u043b\u0438\u0441\u044c?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/64d\/43a\/e06\/64d43ae06ae86f4b416effd34a30d1a9.png\" alt=\"image\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441\u0442\u0440\u0430\u0441\u0442\u043d\u043e \u0436\u0434\u0430\u0432\u0448\u0438\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 exe-\u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 WSL, \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-285058","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285058"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285058\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}