sclient: updated docs for v1.2

This commit is contained in:
AJ ONeal 2018-09-03 22:27:45 +00:00
parent 00ad13efc7
commit c2165578e1
1 changed files with 9 additions and 5 deletions

View File

@ -14,10 +14,13 @@
(think <code>telnet</code>, <code>netcat</code>, <code>ssh</code>, <code>openvpn</code>, etc).</p> (think <code>telnet</code>, <code>netcat</code>, <code>ssh</code>, <code>openvpn</code>, etc).</p>
<h2>Usage</h2> <h2>Usage</h2>
<pre><code>$ sclient [-k] &lt;remote&gt; &lt;local&gt;</code></pre> <pre><code>$ sclient [flags] &lt;remote&gt; &lt;local&gt;</code></pre>
<pre><code>$ sclient example.com:443 localhost:3000</code></pre>
<h3>Flags</h3> <h3>Flags</h3>
<ul> <ul>
<li><kbd>-k, --insecure</kbd> ignore invalid tls certificates</li> <li><kbd>-k, --insecure</kbd> ignore invalid tls certificates</li>
<li><kbd>--servername &lt;string&gt;</kbd> spoof SNI
(to disable use IP as &lt;remote&gt; and do not use this option)</li>
</ul> </ul>
<h3>Arguments</h3> <h3>Arguments</h3>
<ul> <ul>
@ -25,7 +28,7 @@
<li><kbd>&lt;local&gt;</kbd> the local address and port to bind to (default bind address is 127.0.0.1 or ::1) <li><kbd>&lt;local&gt;</kbd> the local address and port to bind to (default bind address is 127.0.0.1 or ::1)
<ul> <ul>
<li><code>-</code> may be used to read from stdin (like netcat)</li> <li><code>-</code> may be used to read from stdin (like netcat)</li>
<li>may be omitted when piping. Example: <code>printf "GET / HTTP/1.1\r\n\r\n" | sclient telebit.cloud</code></li> <li>may be omitted when piping (see pipe example below)</li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -51,10 +54,11 @@
&gt; Connection: close &gt; Connection: close
&gt; &gt;
</code></pre> </code></pre>
</code></pre>
<h2>Downloads (standalone) <small>v1.1</small></h2> <h3>pipe</h3>
<pre><code>$ printf "GET / HTTP/1.1\r\nHost: telebit.cloud\r\n\r\n" | sclient telebit.cloud</code></pre>
<h2>Downloads (standalone) <small>v1.2</small></h2>
<ul> <ul>
<li>Windows 7/8/10 <li>Windows 7/8/10
<a href="dist/windows/amd64/sclient.exe">Download</a> <a href="dist/windows/amd64/sclient.exe">Download</a>