语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,9 +3,9 @@
<h2 id="补充说明">补充说明</h2>
<p><strong>smbclient命令</strong> 属于samba套件它提供一种命令行使用交互式方式访问samba服务器的共享资源。</p>
<h3 id="语法">语法</h3>
<pre><code>smbclient(选项)(参数)</code></pre>
<pre><code class="language-bash">smbclient(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code>-B&lt;ip地址&gt;传送广播数据包时所用的IP地址
<pre><code class="language-bash">-B&lt;ip地址&gt;传送广播数据包时所用的IP地址
-d&lt;排错层级&gt;:指定记录文件所记载事件的详细程度;
-E将信息送到标准错误输出设备
-h显示帮助
@@ -28,18 +28,18 @@
<p>smb服务器指定要连接的smb服务器。</p>
<h3 id="实例">实例</h3>
<p><strong>列出某个IP地址所提供的共享文件夹</strong></p>
<pre><code>smbclient -L 198.168.0.1 -U username%password</code></pre>
<pre><code class="language-bash">smbclient -L 198.168.0.1 -U username%password</code></pre>
<p><strong>像ftp客户端一样使用smbclient</strong></p>
<pre><code>smbclient //192.168.0.1/tmp -U username%password</code></pre>
<pre><code class="language-bash">smbclient //192.168.0.1/tmp -U username%password</code></pre>
<p>执行smbclient命令成功后进入smbclient环境出现提示符<code>smb:/&gt;</code></p>
<p>这里有许多命令和ftp命令相似如cd 、lcd、get、megt、put、mput等。通过这些命令我们可以访问远程主机的共享资源。</p>
<p><strong>直接一次性使用smbclient命令</strong></p>
<pre><code>smbclient -c &quot;ls&quot; //192.168.0.1/tmp -U username%password</code></pre>
<pre><code class="language-bash">smbclient -c &quot;ls&quot; //192.168.0.1/tmp -U username%password</code></pre>
<p></p>
<pre><code>smbclient //192.168.0.1/tmp -U username%password
<pre><code class="language-bash">smbclient //192.168.0.1/tmp -U username%password
smb:/&gt;ls</code></pre>
<p>功能一样的。</p>
<p><strong>创建一个共享文件夹</strong></p>
<pre><code>smbclient -c &quot;mkdir share1&quot; //192.168.0.1/tmp -U username%password</code></pre>
<pre><code class="language-bash">smbclient -c &quot;mkdir share1&quot; //192.168.0.1/tmp -U username%password</code></pre>
<p>如果用户共享<code>//192.168.0.1/tmp</code>的方式是只读的,会提示<code>NT_STATUS_ACCESS_DENIED making remote directory /share1</code></p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->