{"id":837,"date":"2013-11-16T19:04:55","date_gmt":"2013-11-16T17:04:55","guid":{"rendered":"http:\/\/blog.patricksauer.net\/?p=837"},"modified":"2013-11-16T19:06:49","modified_gmt":"2013-11-16T17:06:49","slug":"interaktive-reverse-shell-mit-netcat-durch-python","status":"publish","type":"post","link":"https:\/\/security.sauer.ninja\/de\/pentest\/interaktive-reverse-shell-mit-netcat-durch-python\/","title":{"rendered":"Interaktive Reverse-Shell mit Netcat durch Python"},"content":{"rendered":"<p>Eine Reverse-Shell mit netcat ist leider nicht interaktiv. Somit sind Tools wie sudo, mysql, su usw. nicht oder nur eingeschr\u00e4nkt benutzbar. Sofern auf dem Zielrechner Python installiert ist, l\u00e4sst sich innerhalb der Netcat-Session einfach ein Terminal simulieren:<\/p>\n<blockquote><p>python -c &#8218;import pty; pty.spawn(&#8222;\/bin\/bash&#8220;)&#8216;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Eine Reverse-Shell mit netcat ist leider nicht interaktiv. Somit sind Tools wie sudo, mysql, su usw. nicht oder nur eingeschr\u00e4nkt benutzbar. Sofern auf dem Zielrechner Python installiert ist, l\u00e4sst sich innerhalb der Netcat-Session einfach ein Terminal simulieren: python -c &#8218;import pty; pty.spawn(&#8222;\/bin\/bash&#8220;)&#8216;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[84,85,89],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-psauer","4":"post-837","6":"format-standard","7":"category-pentest","8":"post_tag-nc","9":"post_tag-netcat","10":"post_tag-python"},"_links":{"self":[{"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/posts\/837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":3,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":840,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/posts\/837\/revisions\/840"}],"wp:attachment":[{"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/security.sauer.ninja\/de\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}