<?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/f71ad3ac4c5e75b79b162c720389aa4d8f72bdd3.xml</link>
    <description>一个独立安全研究员的技术笔记和无聊日常。&#xA;(wechat feed made by @ttttmr https://wechat2rss.xlab.app)</description>
    <managingEditor> (沉隐杂谈录)</managingEditor>
    <image>
      <url>https://wx.qlogo.cn/mmhead/Q3auHgzwzM5fCXNxbxcQks5uqdaze3JBhHCDeh8zm7cOlROuvPWehA/0</url>
      <title>沉隐杂谈录</title>
      <link>https://wechat2rss.xlab.app/feed/f71ad3ac4c5e75b79b162c720389aa4d8f72bdd3.xml</link>
    </image>
    <item>
      <title>春节快乐-D2发布-新的开始</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416407&amp;idx=1&amp;sn=9b8c96ba91a0e21e291d6afc156427ae</link>
      <description>最好看的C2，没有之一</description>
      <content:encoded><![CDATA[<p>
原创 <span>老牛(L.N.)</span> <span>2025-01-27 11:27</span> <span style="display: inline-block;">四川</span>
</p>

<p>最好看的C2，没有之一</p>
<p></p>



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


<section><span leaf=""><img data-imgfileid="502932756" class="rich_pages wxw-img" data-ratio="0.5638888888888889" data-s="300,640" data-type="png" data-w="1080" type="block" src="https://wechat2rss.xlab.app/img-proxy/?k=a4423411&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPCZnQcT6HoVJhbXl6M3yh2XahibPcdkpDJQMrcFJDHaaf0kB6ljVcYX0w9OHmPicuoCVdqsgfFRcQA%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></span></section><section><span leaf=""><span textstyle="" style="font-size: 20px;font-weight: bold;">新的开始</span></span></section><section style="text-align: left;text-indent: 2em;"><span leaf=""><span textstyle="" style="font-size: 17px;font-weight: normal;">这是新的开始，D2 v0.1 bate，</span><span textstyle="" style="font-size: 17px;font-weight: bold;">好看也好用</span><span textstyle="" style="font-size: 17px;font-weight: normal;">是D2的第一原则，我基本重构了UI，应该是市面上</span><span textstyle="" style="font-size: 17px;font-weight: bold;">最好看的C2</span><span textstyle="" style="font-size: 17px;font-weight: normal;">，没有之一。CobaltStrike经过10多年的发展，有很多废弃且基本不会使用的功能依旧存在，因此D2 v0.1主要是</span><span textstyle="" style="font-size: 17px;font-weight: bold;">精简</span><span textstyle="" style="font-size: 17px;font-weight: normal;">。例如：我删除了针对msf的兼容支持，这个支持会导致</span>checksum8问题无法彻底解决。还有browserPivot、Java Applet等基本不会使用的功能，也一并删除。</span></section><section style="text-align: left;text-indent: 2em;"><span leaf="">arsenal-kit支持到了cobaltstrike 4.9，最新的4.10.1的套件后续更新兼容（todo），主要是BeaconGate的是一个不错的功能，可以融入到D2之中。</span></section><section style="text-align: left;text-indent: 2em;"><span leaf="">针对几个固定密钥做了自定义处理，以对抗各种自动分析工具，例如：配置信息xor的密钥，使用Aggressor.prop和TeamServer.prop中的settings.xor.key参数, 这2个文件都要修改。我把原始的Aggressor.prop文件移到了启动目录下，使用前请修改Aggressor.example.prop为Aggressor.prop，并自定义相关参数。关于teamserver的认证魔法字符串，通常是测绘和爆破中经常使用的判断规则，同样在Aggressor.prop和TeamServer.prop中需要自定义：</span></section><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=""><code><span leaf=""><span class="code-snippet__plaintext">teamserver.authenticate.magic=FFAABB</span></span></code><code><span leaf=""><span class="code-snippet__plaintext">aggressor.authenticate.magic=EEFF22</span></span></code></pre></section><section style="text-align: left;text-indent: 0px;"><span leaf="">其中UI界面启动的时候在根目录下需要存在Aggressor.prop和TeamServer.prop，TeamServer启动的时候根目录下需要TeamServer.prop存在。</span></section><section style="text-align: left;text-indent: 2em;"><span leaf="">最后D2会存在2个版本，社区版和商业版。社区版发展的目标是框架，插件化所有功能，仅仅保留骨架，星球小伙伴可以自定义各种功能。商业版的发展目标是OPSEC和定制培训，商业版正式上线预计2025年末。</span></section><section><span leaf=""><span textstyle="" style="font-size: 20px;font-weight: bold;">截图预览</span></span></section><section style="text-align: center;" nodeleaf=""><img data-imgfileid="502932754" class="rich_pages wxw-img" data-ratio="0.9010416666666666" data-s="300,640" data-type="png" data-w="384" type="block" src="https://wechat2rss.xlab.app/img-proxy/?k=ae10fa3a&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPCZnQcT6HoVJhbXl6M3yh2k100v0WYMmov1muT4oxqhhSnNp0GbbOXzrKf8YdG9awzlImhlZeibicQ%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></section><section style="text-align: center;" nodeleaf=""><img data-imgfileid="502932753" class="rich_pages wxw-img" data-ratio="0.562962962962963" data-s="300,640" data-type="png" data-w="1080" type="block" src="https://wechat2rss.xlab.app/img-proxy/?k=edd6c74e&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPCZnQcT6HoVJhbXl6M3yh2knqgZSEfAKO63nLw389WX1IKumRpib79rt9y1zoc9sWPWwHqfhSMnzg%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></section><section style="text-align: center;" nodeleaf=""><img data-imgfileid="502932755" class="rich_pages wxw-img" data-ratio="0.5611111111111111" data-s="300,640" data-type="png" data-w="1080" type="block" src="https://wechat2rss.xlab.app/img-proxy/?k=22710cab&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPCZnQcT6HoVJhbXl6M3yh2NL7ylkWKWvTMLA1JJqYcqK2e1duyfEIiaSPsC9dAAbFZo6MIRvyDnLQ%2F640%3Fwx_fmt%3Dpng%26from%3Dappmsg"/></section><p><span leaf=""><span textstyle="" style="font-size: 20px;font-weight: bold;">开发日志</span></span></p><p><span leaf="">【注意】(20250101 - D2 v0.1) - CobaltStrike星球专版正式更名D2更新拉......</span></p><p><span leaf="">如有BUG星球提问，最好附加报错截图和使用环境。(请在JDK11下使用)</span></p><p style="text-align: left;"><span leaf="">本版本基于cs4.5源码构建，使用idea+openjdk11+win10+vs2008+vs2012环境编译。</span></p><p><span leaf="">本项目主要用于学习研究，仅限合法合规项目使用，请勿用于非法项目，一切法律后果与本人无关。</span></p><p><span leaf="">本项目主要用于学习研究，仅限合法合规项目使用，请勿用于非法项目，一切法律后果与本人无关。</span></p><p><span leaf="">本项目主要用于学习研究，仅限合法合规项目使用，请勿用于非法项目，一切法律后果与本人无关。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20250101-----</span></span></p><p><span leaf="">1. 修复开启sleepmask的情况下，smb和tcp不能使用bug</span></p><p><span leaf="">2. 彻底删除和msf兼容导致的checksum8问题</span></p><p><span leaf="">3. 精简过时功能，例如：browserPivot、Java Applet等</span></p><p><span leaf="">4. 完全重构UI，支持黑白模式切换，更名为D2。</span></p><p><span leaf="">5. 本地配置信息文件放入程序当前目录下，防止被预测路径读取</span></p><p><span leaf="">6. 修复文件读取函数效率低下问题</span></p><p><span leaf="">7. 404页面指纹修改</span></p><p><span leaf="">8. 自定义配置常见指纹信息</span></p><p style="text-indent: 0px;margin-left: 32px;margin-right: 32px;"><span leaf="">8.1 自定义配置xor key, 分为客户端配置和服务端配置，客户端配置可以通过界面修改Aggressor.prop，服务端配置需要在启动teamserver的时候写入配置文件TeamServer.prop，服务端主要是分阶段的时候使用，客户端在生成植入体的时候使用</span></p><p style="text-indent: 2em;"><span leaf="">8.2 认证指纹自定义</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20231110----</span></span></p><p><span leaf="">1. 修复dns beacon x86文件名错误</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20231025-----</span></span></p><p><span leaf="">1. 修复CVE-2022-39197漏洞在文件浏览中依旧可以触发的问题，本次修复无脑转义所有标签。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20231023-----</span></span></p><p><span leaf="">1. 修复pre-urdl中在32位程序获取loader基地址问题</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20231012-----</span></span></p><p><span leaf="">1. 修复BOF API因顺序问题而导致的bug</span></p><p><span leaf="">2. 修复net相关命令不能使用bug</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20231011-----</span></span></p><p><span leaf="">1. 修复@slience 发现的spawn崩溃bug</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20230928-----</span></span></p><p><span leaf="">2. PROCESS_INJECT_SPAWN增加了rdl偏移参数，使得smart inject依旧正常使用</span></p><p><span leaf="">3. dllinject只能使用pre-rdl, 这个后续修改为正常dll使用。</span></p><p><span leaf="">4. post-ex完成pre-rdl改造，默认cleanup，清理所有内存，并支持自定义pre-rdl，和cs4.9的差异在自定义pre-rdl不支持browserpivot，主要是这个功能实战基本不能用，没有改的必要，c2profile中post-ex.cleanup、post-ex.transform-x64 、 post-ex.transform-x86 都没有，其中cleanup，没有必要，默认清理。transform留到下个版本。c2profile 这一块我一致想做热加载，统一修改。</span></p><p><span leaf="">5. 增加BOF函数（比4.9多加了一个函数）：</span></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="cs"><code><span leaf=""><span class="code-snippet__plaintext">BeaconInformation(BEACON_INFO * pBeaconInfo)</span></span></code><code><span leaf=""><span class="code-snippet__plaintext">BeaconAddValue(</span><span class="code-snippet__keyword">const</span><span class="code-snippet__plaintext"> </span><span class="code-snippet__built_in">char</span><span class="code-snippet__plaintext"> * key, </span><span class="code-snippet__keyword">void</span><span class="code-snippet__plaintext"> * ptr)</span></span></code><code><span leaf=""><span class="code-snippet__plaintext">BeaconGetValue(</span><span class="code-snippet__keyword">const</span><span class="code-snippet__plaintext"> </span><span class="code-snippet__built_in">char</span><span class="code-snippet__plaintext"> * key)</span></span></code><code><span leaf=""><span class="code-snippet__plaintext">BeaconRemoveValue(</span><span class="code-snippet__keyword">const</span><span class="code-snippet__plaintext"> </span><span class="code-snippet__built_in">char</span><span class="code-snippet__plaintext"> * key)</span></span></code><code><span leaf=""><span class="code-snippet__plaintext">BeaconModifyValue(</span><span class="code-snippet__keyword">const</span><span class="code-snippet__plaintext"> </span><span class="code-snippet__built_in">char</span><span class="code-snippet__plaintext"> * key, </span><span class="code-snippet__keyword">void</span><span class="code-snippet__plaintext"> * newptr)</span></span></code></pre></section><p><span leaf="">有了这个，其他的关于cs4.9在beacon中持久存储的功能都可以自定义实现，因此我就没有实现对应功能比如：cs4.9的beacon data store。这个功能可以基于以上函数自定义实现。4.8的存储token也类似。</span></p><p><span leaf="">6. beacon默认使用pre-rdl, 并支持自定义pre-rdl。支持cs4.9的导出无rdl的beacon, BEACON_RDLL_SIZE为0时，为使用无rdl的beacon。</span></p><p><span leaf="">7. 适配最新cs4.9 sleepmask kit，并使得每次sleep使用不同随机key</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20230914-----</span></span></p><p><span leaf="">1. 进程浏览增加文件路径回显</span></p><p><span leaf="">2. 针对注入行为后内存残留清理，包括自注入</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20230704（0901fix）-----</span></span></p><p><span leaf="">1.更新混淆中亦或算法的key</span></p><p><span leaf="">2.更新部分jdk11废弃的语法，因此请使用jdk11或更高版本</span></p><p><span leaf="">3.cs4.7：增加了BOF中.xdata .pdata .bbs区段的解析，并把动态调用函数提升到64个，并修复可能发送的数据位置和代码位置相差大于4G的情况。</span></p><p><span leaf="">4.cs4.8：升级sleepmask功能，使之能够使用cs最新套件。</span></p><p><span leaf="">5.配置信息加密方式改成多字节加密</span></p><p><span leaf="">6.修复BOF ___chkstk_ms未链接问题。</span></p><p><span leaf="">7.增加BOF Loader对__C_specific_handler支持</span></p><p><span leaf="">8.修复pivot中密钥bug</span></p><p><span leaf="">9.增加关闭jtable、jlist、jtree的html解析</span></p><p><span leaf="">10.修复.stage.transform-x64 results in a stage that&#39;s too large报错</span></p><p><span leaf="">11.修复忘记删除beacon以外的其他listener的水印验证</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20230612-----</span></span></p><p><span leaf="">1.cs4.6：修复了在 BOF 中调用 BeaconFormatToString 时错误地要求传递字符串长度地址的问题。</span></p><p><span leaf="">2.修复修改CheckSum8后，导致使用spawn派生到MSF6不能上线问题</span></p><p><span leaf="">3.注释掉了一些没有实际功能的测试代码，例如：TestCall</span></p><p><span leaf="">4.把黑色图标修改成白色图标，更改一些文字配色，适应暗黑主题</span></p><p><span leaf="">5.修复掉各种废弃函数，防止意外错误。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">--20230607-----</span></span></p><p><span leaf="">1. 删除破解对抗代码和水印，把代码中所有对抗相关代码全部清楚，主要包含各种javaagent检测、完整性校验，过期校验，其中很多点很是奇葩，例如执行几个小时后才出问题，或者篡改发送的命令等等。最后把beacon中和jar包中的水印功能也去掉了，但是目前这个版本没有拿掉配置中的jar包hash。</span></p><p><span leaf="">2. 更换主题flatlaf-3.1.1.jar，并修复图标问题和背景色问题。由于老主题代码实在太老在高版本中运行太多异常，因此换成了flatlaf，这个也是网上大部分人的方案。主题使用的是模仿idea的主题，但是配色和图标上个人觉得还是有点问题，后面慢慢修复。这个版本主要修复功能为主。</span></p><p><span leaf="">3. 修复CVE-2022-39197, 这个xss漏洞修复，我没有测试，修复方式是在修复主题session图标问题的时候，直接关了JLabel的html解析。</span></p><p><span leaf="">4. 默认启用TLS1.0至TLS1.2，修复无补丁Windows7的https支持。这个网上方法。</span></p><p><span leaf="">5. 修复foreign派生错误的bug，暂时不能使用自定义反射loader</span></p><p><span leaf="">这个是直接返回的原始beacondll，我在实战中确实很少用到这个，所以按照网上的方式修复了。没有深入分析。</span></p><p><span leaf="">6. 修改默认配置信息亦或密钥，这个多加了一层亦或。如果jar包被分析，找到key，还是能解。</span></p><p><span leaf="">7. 修复CVE-2022-23317和CheckSum8, 这个修复比较是改了校验值和长度，但是如果知道值，还是能被爆破出来。所以最好不用还是关了stager。原计划之间严格，想了想夜莺C2竟然在后面版本加入了分阶段，应该就是有需求的。</span></p><p><span leaf="">8. 增加自定义编码输出，这个功能比较实用感谢</span><span data-denotation-char="@" data-id="88242181488582" data-value="yougar0x00"><span leaf="">﻿</span><span leaf="">@</span><span leaf="">yougar0x00</span><span leaf="">﻿</span></span><span leaf=""> 指导，命令位charset xxx，妈妈再也不用担心乱码了。</span></p><p><span leaf="">9. 修改团队服务认证默认字符，常规操作，一个默认值，被加入规则也是不保险的。</span></p><p><span leaf="">10. bypass BeaconEye，就是为了改这儿导致卡了我好几天，最后发现才是这个问题，我开始是想直接改掉type值，从123 改成456,但是不知道为什么无情报错，导致beacon崩溃，我调试插件配置解析，是能够解出来的，不知道代码中可能有地方对type值的使用，导致不能修改。最后无奈还是用了网上1字节bypass的方法，但是我看了很多关于这个的文章，有部分是理解错误的，说type值是4字节只用了2字节是错误的说法，代码中type始终是short。</span></p><p><span leaf="">11. yara特征修改若干（肯定不完全），改了我以前主题中提到过的一个特征，这个特征后期不用sleepmask的情况下很难改，所以直接修改了。</span></p><p><span leaf="">本项目主要用于学习研究，仅限合法合规项目使用，请勿用于非法项目。</span></p><section><span leaf=""><br/></span></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416407">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=3ed3a6d6&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416407%26idx%3D1%26sn%3D9b8c96ba91a0e21e291d6afc156427ae%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Mon, 27 Jan 2025 11:27:00 +0800</pubDate>
    </item>
    <item>
      <title>要不要写个2024的总结？</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416399&amp;idx=1&amp;sn=bcb86df4fe6b4eaba88fe2499bb5095b</link>
      <description>25年欢迎多私聊讨论技术问题</description>
      <content:encoded><![CDATA[<p>
原创 <span>老牛(L.N.)</span> <span>2024-12-31 21:11</span> <span style="display: inline-block;">四川</span>
</p>

<p>25年欢迎多私聊讨论技术问题</p>
<p></p>



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


<p style="text-indent: 2em;"><span leaf="">有好几年没有写年终总结了，当生活趋于平静，对未知不再迷茫，对当下不再纠结，对过去也不再耿耿于怀，总结似乎有点多余。我想24年没有什么好总结的，但是可以记录下24年的一些感受，随着时间流逝，感受容易被淡忘，要记录下。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">10月有了一个小孩儿</span></span></p><p style="text-indent: 2em;"><span leaf="">其实并没有各种文学作品、影视作品中初为人父的激动，实际上挺累的，但是看着他一天一天的长大，当第一次和他咿咿呀呀的互动的时候，生命情感不知不觉已有了悸动，它不关乎血脉，是心的同频。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">基本完成了一套系统</span></span></p><p style="text-indent: 2em;"><span leaf="">和小伙伴一起完成了一套系统，这是第一套真正意义上按照自己想法落地的系统，赶在年末基本完成。创造是一件幸福的事情，希望25年它能实现它的价值。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">上班是不可能再上班了</span></span></p><p style="text-indent: 2em;"><span leaf="">两年的自由职业，时间并不长。勇气真的是人类最可贵的品质。在相信自己能力的同时，可能最需要的还是一丝丝的勇气。世界真的很大，被一个小小的工位锁住，有点可惜。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">以诚待人，守得本心</span></span></p><p style="text-indent: 2em;"><span leaf="">8年的职场生活，波谲云诡的人心。待人以诚似乎有点可笑，再看《阿甘正传》，终得本心。本是无一物，何处惹尘埃。</span></p><p><span leaf=""><span textstyle="" style="font-weight: bold;">你好，2025</span></span></p><p style="text-indent: 2em;"><span leaf="">我没有什么想对你说的。</span></p><hr style="border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);"/><section><span leaf="">ps：25年欢迎私聊讨论技术</span></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416399">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=7b813b23&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416399%26idx%3D1%26sn%3Dbcb86df4fe6b4eaba88fe2499bb5095b%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 31 Dec 2024 21:11:00 +0800</pubDate>
    </item>
    <item>
      <title>心经、黑客、我</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416394&amp;idx=1&amp;sn=65eaddc1096ce7e307b490f988a05ce1</link>
      <description>最近又有写点什么的冲动，但是想说的很多，也很零散，只能以小节为单元，各说各话，心经、黑客与我。</description>
      <content:encoded><![CDATA[<p>
原创 <span>老牛(L.N.)</span> <span>2024-08-28 15:51</span> <span style="display: inline-block;">四川</span>
</p>

<p>最近又有写点什么的冲动，但是想说的很多，也很零散，只能以小节为单元，各说各话，心经、黑客与我。</p>
<p></p>



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


<p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-imgfileid="502932743" data-ratio="0.5712962962962963" data-s="300,640" style="" data-type="webp" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=2091e773&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2Fccwfy6ibNqVMeBGQop6ibMVj1yvScFIvhd6suG3nFLLm26kFibicXTwzPYWAia4caQiauHgic4ciaBrC97zMXFUP4yByiag%2F640%3Fwx_fmt%3Dwebp%26from%3Dappmsg"/></p><section style="text-indent: 2em;text-align: left;"><span style="font-size: 18px;">距离上一篇公众号已不知多久，最近又有写点什么的冲动，但是想说的很多，也很零散，只能以小节为单元，各说各话。</span></section><p><strong><span style="font-size: 20px;">心经</span></strong></p><section style="text-align: left;text-indent: 2em;"><span style="font-size: 18px;">有天老婆给我推荐一个视频，是《十三邀》中的一期，嘉宾是项飙，视频中聊到了很多社会现象，其中聊到邻里关系淡漠与数字化生活的时候，我突然想到了《心经》中“诸法空相”四个字。看似合理的用一种现象解释另外一种现象，或者互为因果。用当下数字化生活的发展去作为邻里关系淡漠化的一种原因，以前我也会觉得有道理，但是“诸法空相，不生不灭，不垢不净，不增不减”。如果思维总是停留在相中，<span style="text-decoration: underline;">总是以一种相解释另外一种相</span>，你只是在找借口自我安慰而已，永远不得真我。</span></section><section style="text-align: left;text-indent: 2em;"><span style="font-size: 18px;">心经说：“以无所得故，菩提萨埵”，“依般若波罗蜜多故，得阿耨多罗三藐三菩提”。读佛经挺有意思，它用另外的方式来给你解构一切，总能给你耳目一新的感觉。</span></section><p><strong><span style="font-size: 20px;">黑客</span></strong></p><section style="text-align: left;text-indent: 2em;"><span style="font-size: 18px;">我很少用这个词，我对这个词始终抱有一种尊敬，但并不能解释清楚我心中黑客应该是什么样子。最近很多事情，突然有了一些明悟，黑客一定是在做他们认为硬核且有趣的事情，虽然别人可能不那么认为，但无所谓，总会有业余时间做。在家这一年半，认识了不少年轻人，他们有激情，有想法，也有硬核的成果，低调且谦逊，也有年轻人的迷茫和拧巴，但怎么都难掩<span style="text-decoration: underline;">热爱中的那丝丝兴奋</span>，也许拥有这丝丝兴奋的才是我认为的黑客的底色。</span></section><section style="text-align: left;text-indent: 2em;"><span style="font-size: 18px;">最近开发了一个项目，成功给小伙伴试用的那刻，我突然感受到了那丝丝兴奋，有点久违了，上一次可能是在大学。</span></section><section style="text-align: left;text-indent: 2em;"><span style="font-size: 18px;">说到黑客，不得不提一下网络安全这个行业，大势之下，裁员的消息接连不断，每个月都能听到老伙计单干的消息。同时朋友圈也不乏有陶醉在<span style="text-decoration: underline;">“没有网络安全就没有国家安全”</span>的鼓励中的人，但他们似乎只看到了<strong>网络安全</strong>没有看到<strong>国家安全。</strong>而往往重点在后面，不服务于国家安全的网络安全，可能没有那么重要。在大势之下你会发现那些越直接服务于国家安全的网络安全，似乎依旧坚挺，随着世界形势的动荡，反而更加坚挺。那些离国家安全较远的可能只能慢慢消失。所以我妄言做一个论断，<span style="text-decoration: underline;">以后网络安全行业只有两种公司：一种是直属于国家或附属于国企的公司，一种是有独有秘技的小公司或工作室</span><span style="text-decoration: none;">。你可能会说不是还有一些大甲方的安全团队呢？我可能把他们划入了运维行业，不属于网络安全行业。</span></span></section><p><strong><span style="text-decoration: none;font-size: 20px;">我</span></strong></p><section style="text-align: left;text-indent: 2em;"><span style="text-decoration: none;font-size: 18px;">用心经的话说，我与黑客皆相。用道德经的话说，我可道，非常我。哈哈，这里的我真的就只是想说说我自己。在家一年半多了，算上2021年的半年，总的来说2年了。一切挺好，读书、编码、Happy Hacking。总是有小伙伴问收入、钱、财务自由之类的问题，这个问题没法回答，不沉迷于诸相之中，不在公司与医院之间徘徊，不在鸡娃与放养之间较量，仅仅一日三餐四季，我想没有太大问题，只要你是个黑客。</span></section><section style="text-align: left;text-indent: 2em;"><span style="text-decoration: none;font-size: 18px;">我想做硬核且有趣的事情，有那丝丝的兴奋，淡淡的就好。已不是个性张扬的20岁，已过了雄心勃勃的30岁，当下刚好。</span></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416394">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=ffd19c7d&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416394%26idx%3D1%26sn%3D65eaddc1096ce7e307b490f988a05ce1%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Wed, 28 Aug 2024 15:51:00 +0800</pubDate>
    </item>
    <item>
      <title>一个星球中关于攻防学习的提问</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416377&amp;idx=1&amp;sn=cf92c76578d8f25aa2896f25ff6a678b</link>
      <description>老牛师傅好，我想提个问题。有一些web基础和内网基础。作为一个普通的驻场安服怎么进阶到红队？没有实战项目打，很多知识点学了没多久就忘记了（公司内护网项目一般也只能打点，内网不需要我们操作）。老牛师傅一般怎么样学习？</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-08-29 13:34</span> <span style="display: inline-block;">四川</span>
</p>

<p>老牛师傅好，我想提个问题。有一些web基础和内网基础。作为一个普通的驻场安服怎么进阶到红队？没有实战项目打，很多知识点学了没多久就忘记了（公司内护网项目一般也只能打点，内网不需要我们操作）。老牛师傅一般怎么样学习？</p>
<p></p>



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


<p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.562962962962963" data-s="300,640" style="" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=0df52675&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEwKdxdBRDI3JW1DFO6wUKXjHhUSD7NKSYeJJ6BhjJ83phPjI3JdBFHiaecYohPs4icxRUJsL4JiasA%2F640%3Fwx_fmt%3Dpng"/></p><blockquote cid="n215" mdtype="blockquote" style="margin-top: 0.8em;margin-bottom: 0.8em;border-left-width: 4px;border-left-color: rgb(223, 226, 229);padding-top: 0px;padding-right: 15px;padding-left: 15px;color: rgb(119, 119, 119);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><p cid="n2" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.8em;white-space-collapse: preserve;"><span style="font-size: 17px;">向你提问：</span></p><p cid="n3" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;white-space-collapse: preserve;"><span style="font-size: 17px;">老牛师傅好，我想提个问题。有一些web基础和内网基础。作为一个普通的驻场安服怎么进阶到红队？没有实战项目打，很多知识点学了没多久就忘记了（公司内护网项目一般也只能打点，内网不需要我们操作）。老牛师傅一般怎么样学习？</span></p></blockquote><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span style="font-size: 17px;">在回答你的提问之前，我们需要明白<strong>技术学习</strong>和<strong>技术工作学习</strong>的区别。我们先说技术学习，技术学习的动力有很多种，例如：想找一份工作；想赚更多钱；想要炫耀等等，但<strong>唯有热爱，可抵岁月漫长；唯有热爱，不畏世间无常</strong>。说人话就是如果你想在技术领域做到顶尖，唯有热爱才能让你轻松度过漫长又枯燥的过程，因为你不会觉得这个过程枯燥，反而很是享受。而你如果仅仅把技术作为工作或者是其他事情的一种工具，那么你学习技术的方式是不一样的，这就是技术工作的学习。技术工作学习首要的目的是<strong>为了有一份工作或者在当下的工作中你能发挥的更好</strong>。在工作中要获得更好的绩效，或者更高的职位，亦或是薪资更高的岗位，这是一件复杂的事情，技术仅仅是一只叩门手，你只有叩门的机会，不代表门会开。明白了技术学习和技术工作学习的差异，我们首先来看下在攻防领域（红队）方向的技术学习。</span></section><p cid="n10" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">在攻击领域（offensive），当下大家大多自称Red Team Operator，以前是Penetration Tester。不管叫什么，offensive领域的底层学习逻辑是没有变化的：<strong>知识学习---&gt;操练（自己搭建测试环境）---&gt;实战</strong>，这3个环节，每个环节都需要做<strong>笔记</strong>（建议写文章并发表）。</span></p><p cid="n16" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;font-size: 17px;"><img class="rich_pages wxw-img" data-ratio="0.3490740740740741" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=4c3e9d6c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEwKdxdBRDI3JW1DFO6wUKAvyY1HTKPxpuWibbofIOvibCDL2Re2zEFLyAXtV03GJrI2ggE6Zn8uUg%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n17" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">这个过程中有<strong>新手</strong>和<strong>老手</strong>的区别，新手刚开始最好是<span style="text-decoration: underline;">利用系统性资料学习</span>，可以站在前人的肩上，快速掌握知识。老手需要跟进前沿技术成果和开始技术拓展的研究。说回攻击领域的学习无外乎两块儿：打点、内网。</span></p><p cid="n18" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;font-size: 17px;"><img class="rich_pages wxw-img" data-ratio="0.5103550295857988" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="676" src="https://wechat2rss.xlab.app/img-proxy/?k=135e1bc0&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEwKdxdBRDI3JW1DFO6wUKyhvDV8ELNMeiay9sQkMxE57Tu0PrOpANZicOEnQw5CViaynElEK9Q6nDw%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n20" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">在星球有用户提过这样一个问题：匿名用户 提问：</span></p><blockquote cid="n25" mdtype="blockquote" style="margin-top: 0.8em;margin-bottom: 0.8em;border-left-width: 4px;border-left-color: rgb(223, 226, 229);padding-top: 0px;padding-right: 15px;padding-left: 15px;color: rgb(119, 119, 119);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><p cid="n23" mdtype="paragraph" style="line-height: inherit;orphans: 4;white-space-collapse: preserve;"><span style="font-size: 17px;">师傅，现在攻防比较多，一个客户一年可能要做好几次攻防，以前的漏洞都打没了，请问在前期信息收集时，除了子域名 c段 子公司 公众号之外还有哪些思路可以收集到更多的信息，寻找到更多的突破口？我刚打攻防，现在也只会爆破子域名 扫c段 用一些软件查一下子公司，一旦这些方式获取不到有效信息，我就有点不知所措了</span></p></blockquote><p cid="n26" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">我的回答：</span></p><blockquote cid="n173" mdtype="blockquote" style="margin-top: 0.8em;margin-bottom: 0.8em;border-left-width: 4px;border-left-color: rgb(223, 226, 229);padding-top: 0px;padding-right: 15px;padding-left: 15px;color: rgb(119, 119, 119);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><p cid="n171" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.8em;white-space-collapse: preserve;"><span style="font-size: 17px;">从你的问题中，我想应该拆分为2个问题，1个是除了漏洞还有其他打点方式么？2个是信息收集的方式除了子域名、C段、子公司还有其它的么？先说第一个问题：我大致把打点分为以下5种方式：</span></p><ol class="list-paddingleft-1" cid="n139" mdtype="list" style="margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;"><li style="font-size: 17px;"><p cid="n141" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">互联网可利用漏洞（T1190）</span></p></li><li style="font-size: 17px;"><p cid="n143" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">钓鱼(T1192、T1193、T1194)</span></p></li><li style="font-size: 17px;"><p cid="n145" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">滥用认证机制(T113、T1078)</span></p></li><li style="font-size: 17px;"><p cid="n147" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">供应链攻击（T1195、T1199）</span></p></li><li style="font-size: 17px;"><p cid="n149" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">近源攻击（T1200、T1091）</span></p></li></ol><p cid="n94" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space-collapse: preserve;"><span style="font-size: 17px;">具体描述可以根据后面编号在ATT&amp;&amp;CK框架网站中查询。使用这5种方式之前都涉及到信息收集。就是第二个问题，关于信息收集的方式上。上面的5种打点方式需要收集的信息侧重点不同</span></p><ol class="list-paddingleft-1" cid="n151" mdtype="list" style="margin-top: 0.8em;padding-left: 30px;"><li style="font-size: 17px;"><p cid="n154" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">漏洞：主要是目标网络边界资产测绘IP、端口、域名、应用以及详细指纹，这的应用是一个泛指，例如：常见的web、WEB容器、中间件、设备、协议等等，一切暴露在边界的。这些方式不稀奇，现在拼的已经不是方式的多少，而是数据大小、指纹深度、扫描周期等公司级投入了。</span></p></li><li style="font-size: 17px;"><p cid="n155" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">钓鱼：钓鱼主要针对的是人，因此人员的信息收集渠道和能力就非常重要的，这块儿信息主要分为：身份信息（姓名、性别、年龄、职位等）、交流方式（手机、邮件、即时通讯等）、兴趣爱好（各种社交平台）。当然收集方式就涉及到各种小技巧，需要个人尝试整理，因为涉及到的各种平台的机制在不停变化。</span></p></li><li style="font-size: 17px;"><p cid="n158" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">认证：认证是网络的门锁，账号密码是钥匙，先通过测绘找到各种锁，例如：web登录、VPN、各种服务协议的认证入口等等。然后就是了解这些认证所需要的钥匙样式，有账号密码、有的只需要密钥、有的可能天生未授权，有的可能固定密钥或密码。根据密码的策略，账号的样式，然后通过信息收集涉及目标的各种关键字、以及常见密码设置的规则，来生成密码。其实很多设备类资产，特别是复杂架构类设备，例如会议系统，涉及到多个组件功能，内置了很多默认密码。实在不行咸鱼买账号登录内网也不是没发生过。</span></p></li><li style="font-size: 17px;"><p cid="n161" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;"> 供应链：供应链有上游下游，有物理网络上的供应链关系、也有业务逻辑上的供应链关系。这些信息收集例如：常见的企查查、招投标、财报、新闻等等 。</span></p></li><li style="font-size: 17px;"><p cid="n164" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">近源：这里主要收集目标办公点、机房、安保信息，以及涉及到的wifi、门禁、自助设备等，主要根据场地实际情况突破安保和监控找到网络接入点。</span></p></li></ol></blockquote><p cid="n175" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">以上是关于打点，再说到内网渗透，有人说渗透的本质是信息收集，这个说法个人觉得比较片面，我还是比较喜欢@Jackson_T用<strong>OODA循环</strong>来阐述渗透的过程。OODA是一个军事理论，Observe观察、Orient定位、Decide决策、Action行动。有兴趣的同学可以自己搜索学习下。说回内网，我个人认为内网的知识大致分为：</span></p><ol class="list-paddingleft-1" cid="n180" mdtype="list" style="margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><li style="font-size: 17px;"><p cid="n182" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">系统设备操作：你要学会各种系统（windows、linux、交换机OS、路由器OS等等）的各种命令操作。</span></p></li><li style="font-size: 17px;"><p cid="n185" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">网络架构理解：内网内网，庞大的网络结构，你需要理解网络结构，定位自身所处位置，找到目标位置。</span></p></li><li style="font-size: 17px;"><p cid="n188" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">权限提升：一步一步把自身权限提升到管理人员层级，你需要权限才能走到你目标的位置。</span></p></li><li style="font-size: 17px;"><p cid="n191" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">横向移动：找到你自身到目标的路径，通过不管是RPC协议，还是运维工具，打通这条路径。</span></p></li><li style="font-size: 17px;"><p cid="n194" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span style="font-size: 17px;">影响评估：找到目标如何获取目标。1T的数据如何出来？</span></p></li></ol><p cid="n196" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">以上只是一个笼统的分类，其中每个分类所涉及的知识都是海量的。在内网渗透中还有一个<strong>三</strong><strong>通道的理论</strong>：<strong>命令通道、潜伏通道、数据通道</strong>。一切的技术围绕着这3个通道的创建，在内网中如果你不能建立起这3种通道，你的任务就很难完成和抵御风险，这个不多说。</span></p><p cid="n197" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">在学习了知识过后，<strong>操练</strong>是必不可少的，我建议自己搭建测试环境，这样能让你对系统设备的操作有深入理解。纸上得来的不一定完全正确，信息的传递也存在失效和误差，操练是一个纠偏的过程。</span></p><p cid="n198" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">最后就是实战，实战是检验一切技术的标准，不管是刷SRC还是H1，亦或是HW项目还是渗透测试项目，也可以把眼光看向外边的世界。我个人对目前行业里的技术人员分为3种：只学习了知识的嘴炮选手，通过了操练的实验室黑客，以及正在实战的一线人员。当然这是从纯技术角度出发的视角，并不包含工作属性。</span></p><p cid="n202" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">除了以上，还有2点我没说到：</span></p><p cid="n204" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;"><strong>一点是防御对抗</strong>，不实战时仅仅学习和操练是不会遇到防御对抗的，不管是WAF、还是内网的流量对抗、终端对抗。对抗是一个此消彼长的过程，不停地在演进。不管是在打点还是在内网，都涉及到对抗，所以对抗我一般单独拿出来看。做个比喻就好比知识的学习和操练就是你在靶场实弹打靶，靶是没有防弹衣的，靶也是不会反击的，而实战中目标是有防弹衣或者也会反击你的。突破防御和做好自身防御，使自己操作根据实际环境做OPSEC，这些都是所谓的经验和感觉，是需要实战才能练出来的。因此当操练过后，学习一些前沿的对抗技术，然后在实战中不断打磨。对抗技术的时效性很强，需要技术人员在实战中不停摸索，这可能也是实战中别人搞不定你搞得定的关键。同样也是很多老手不愿意给新手分享的核心技术。被防御方知晓就会失效。</span></p><p cid="n206" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;"><strong>二点是笔记！笔记！还TM是笔记</strong>。没有人能记住所有，随时做好笔记，定期做梳理，时不时写成文章，是非常有必要的。这个过程比较枯燥，把笔记写成文章发表，是一个不错的抵御枯燥的方法。比较值得学习的是我遇到一个同学，在向我提问的时候，把自己的问题写成了一个文档给我，我看完就很快找到了他问题所在，这样非常的高效。可能你会觉得写文档浪费时间，其实写文档的过程就是梳理你问题的过程，可能你在梳理的过程中你自己都找到了问题的原因。</span></p><p cid="n208" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">以上是技术学习，而<strong>技术工作学习</strong>，可能和以上思路有很多不一样的地方。<strong>技术学习可以让你在技术领域比较突出，但并不一定让你在工作中突出</strong>。</span></p><p cid="n210" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">技术工作学习要注意2个问题：<strong>技术适配</strong>和<strong>技术溢出</strong>。岗位JD、实际工作内容、实际工作目标这3者往往并不是一致的，而<strong>你的技术能不能让你完成你的工作目标</strong>，或者你技术学习的方向是不是在跟着你的工作目标而变化。当然完成工作目标，技术只是其中一部分，打XX打的也是人情世故。因此你的技术工作学习是跟你的实际工作目标相关的，和纯技术学习是不一样的。所以你必须做好技术适配。举个例子：如果工作需要的是嘴炮，你学习学习知识就行了，更多的专研向上管理可能会让你在工作中混的更好。如果你想混甲方，多写写操练文章，扩大扩大影响力，混点会议，做做社交，不需要实战，不注意可能你就是负责人了。当然我这里并不是嘲讽，因为<strong>岗位的需求是不一样的，摸清楚真实的职责和价值，才是技术工作学习的正确方向</strong>。至于技术溢出，目前很多岗位其实不需要太深入的技术，很多核心的赚钱部门，同样并不需要所谓的高深技术，也就是<strong>赚钱的技术并不一定高深，高深的技术并不一定赚钱</strong>。</span></p><p cid="n212" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span style="font-size: 17px;">技术工作学习的话题很大，涉及技术人员的职业发展，今天就说到这儿了，后续有机会再聊。也欢迎加入星球向我提问，不管是攻击领域（offensive）的技术问题，还是工作求职问题。下面是3天体验卡。</span></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="1.6092436974789917" data-s="300,640" style="" data-type="png" data-w="714" src="https://wechat2rss.xlab.app/img-proxy/?k=507f6d21&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEwKdxdBRDI3JW1DFO6wUKrJbxKhxY9uVTH47pl3I9ZIr254T7xzxbTacA0jncStYVVuic5TmzmEw%2F640%3Fwx_fmt%3Dpng"/></p><p><br/></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416377">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=32dc0d33&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416377%26idx%3D1%26sn%3Dcf92c76578d8f25aa2896f25ff6a678b%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 29 Aug 2023 13:34:00 +0800</pubDate>
    </item>
    <item>
      <title>一些关于CobaltStike的闲言碎语</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416369&amp;idx=1&amp;sn=cfd7d7f8e97fb5a72ed24859b5acf549</link>
      <description>今天看见了 CobaltStrike 博客最新一篇文章，于是有了一些闲言碎语。</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-07-20 12:53</span> <span style="display: inline-block;">四川</span>
</p>

<p>今天看见了 CobaltStrike 博客最新一篇文章，于是有了一些闲言碎语。</p>
<p></p>



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


<h3 cid="n8" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.562962962962963" data-s="300,640" style="text-align: center;font-size: 1.5em;" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=ba12090f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmE3pPQR0EwxGvvK3Ngus7YOlJSZQT0S5K0otjIosAibq5XiaYCWt7tLMkg%2F640%3Fwx_fmt%3Dpng"/></h3><h3 cid="n8" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x00 历史闲话</span></h3><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">今天看见了 CobaltStrike 博客最新一篇文章：</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://www.cobaltstrike.com/blog/cobalt-strike-and-outflank-friends-evasive-places/" target="_blank">https://www.cobaltstrike.com/blog/cobalt-strike-and-outflank-friends-evasive-places/</a></span><span md-inline="plain"> 提到 Outflank 公司也被 Fortra 收了，Fortra 也是 CobaltStrike 的母公司。这儿有段历史，Fortra 以前叫HelpSystems，旗下有款类似 msf 的产品叫 Core Impact。Core Impact 主要是为渗透测试提供辅助的工具。后来 HelpSystems 收购了 <span style="color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;text-indent: 32px;white-space: pre-wrap;">CobaltStrike </span>，<span style="color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;text-indent: 32px;white-space: pre-wrap;">CobaltStrike </span>主要为红队评估提供辅助。再后来 HelpSystems 改名 Fortra ，现在又收购了 Outflank，Outflank 是一个实战型的公司，从 OST 这个工具箱就能看出都是他们实战中总结出来的对抗经验和交付流程。</span></section><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">这一系列的收购真的很牛逼，在渗透测试很流行的时候有 Core Impact ，随着红队评估慢慢的流行，收购了 <span style="color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;text-indent: 32px;white-space: pre-wrap;">CobaltStrike </span>，现在红队评估中对抗的不断升级，收购了Outflank。目前就形成了 Cobaltstrike 专注于c2框架的灵活性和稳定性，Outflank专注于对抗。</span></section><h3 cid="n16" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x01 技术碎语</span></h3><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">虽然这篇 CobaltStrike 博客还是一如既往的画饼文章，主要是面向 <span style="color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;white-space: pre-wrap;">CobaltStrike </span>团队的领导和客户，但是还是能从中看出不少有意思的东西。</span></section><p cid="n20" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202307201054902.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.25925925925925924" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=aade4455&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmE8OFByX61lZHas1H47zhQ4e7bzjeXgYDjTP8xRQg38E9fAiaQRA1cRHQ%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n22" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">怎么说呢，嘴上说的听 Raphael Mudge 的话，把开发重点放在 Stability（稳定性）和 Flexibility（灵活性），实际上从4.5到4.8，灵活性上虽有增强，例如：在sleepmask和UDRL上都有改造和完善，把反射DLL的1M大小限制也增加了，但稳定性明显下降，在4.6中写bug，在4.7中修bug，4.8还搞些非必要功能（就是可以通过扩展实现的功能，非要集成到框架中），例如：增加系统调用。看看别人 mdsec 的 nighthawk ，积极解决 fork&amp;run 问题和提升 bof 等 beacon 内扩展执行的稳定性，最后还增加了实战性超强的 HVNC 功能。</span></p><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">以上略带个人情绪，虽然我一个盗版用户，也没吐槽资格。不过 CobaltStrike 依然是我最喜欢的 C2，官方不行，只能我自己上手改造了。</span></section><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">反观 </span><span md-inline="strong"><strong>Outflank 的 OST</strong></span><span md-inline="plain">，暂且不说它在对抗技术上有多少创新，但是工作流上是牛逼的。关于对抗我个人分为2个角度，一个是空间上的，也就是我们常说的终端对抗、流量对抗等等具体到某个地点；另外一个是时间上的，也就是工作流，以最快的时间生成针对目标的植入体或投递物。文章中所展示的是 OST 自动化了 UDRL的编译和 yara 的扫描，和国内的自动免杀平台有点像，在前公司我也让小伙伴做过类似的东西，但大部分是做类似artifact kit的loader方案，做 UDRL 和SleepMask 以及 Resource Kit 的比较少。</span></section><p cid="n30" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202307201136585.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.5439453125" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1024" src="https://wechat2rss.xlab.app/img-proxy/?k=22426953&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmEgAdBJBOepianZDMMLYR1xOYt3BNEFD5by3fKwWnOCrjnbibAibMHLOUBQ%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n34" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">当然这2个 UDRL 用到的技术，都是公开的技术：</span><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202307201151673.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;"><img class="rich_pages wxw-img" data-ratio="0.16132075471698112" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: inline-block;" data-type="png" data-w="1060" src="https://wechat2rss.xlab.app/img-proxy/?k=2a26aa32&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmEq3ZOAjKVWD3UKk3zaEzUJTMfWnokQ7XQfmHQeS7QNNnMCTKFUI6Fbw%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n37" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">后面的投递物的定制自动化生成，真的是看见自己一直想实现的东西，被工程化的这么好，略有遗憾的心情中还是很激动的：</span></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.6046296296296296" data-s="300,640" style="" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=45c7dcaf&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmEQ5uibicJYVdAKicoREiaJ3YAIqsfED7yaqibt8zz0lcePdkZ6oOMmbwhDaQ%2F640%3Fwx_fmt%3Dpng"/></p><p cid="n39" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">后面的信息视频中就打码了。稍微瞟到部分东西，感觉是一些对抗技术细节。总的来说 Outflank 的东西做的很实战，我很喜欢。</span></p><h3 cid="n40" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x02 干啥啥不行，防”盗“第一名</span></h3><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">OST平台是saas的，从 Outflank 角度来说有很多好处，方便更新，也一定程度防止了被“二开”。但是给 CobaltStrike 做了一个“不好”的示范，激起了 CobaltStrike 团队继续深入防盗版的想法：</span></section><p cid="n44" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202307201211505.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.06842619745845552" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1023" src="https://wechat2rss.xlab.app/img-proxy/?k=c3623e88&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVPx7tyBJob0UjpoY5zJGYmEJOhIE25jn5lZJXwBhbicBPqNJZxkQqyOhNZkyQpPsIAUJdAXVdfialYQ%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n47" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这个竟然加入到了”</span><span md-inline="strong"><strong>The Road Ahead</strong></span><span md-inline="plain">“中，我只能说：CobaltStrike v4.5 是最后的C2。（ps：有没有哪天出个国产替代，哈哈哈！）</span></p><h3 cid="n49" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x03 总结</span></h3><section style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-indent: 2em;"><span md-inline="plain">CobaltStrike 毕竟是后渗透阶段集大成的工具，深入学习每个细节以及各种插件，应该是每个红队操作手的必备课程。在这儿我不得不说有个知识星球叫：公鸡队之家。学挖掘机到蓝翔，学CobaltStrike到公鸡队之家。</span></section><p style="text-align: center;"><img class="rich_pages wxw-img" data-ratio="0.549074074074074" data-s="300,640" style="" data-type="jpeg" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=1886d53f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5HgMpxc5ofZ81YMUMKxuGIm0oVic3edFyWECDCUcELu7FsqjE5xtjFbg%2F640%3Fwx_fmt%3Djpeg"/></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416369">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=19c9b328&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416369%26idx%3D1%26sn%3Dcfd7d7f8e97fb5a72ed24859b5acf549%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Thu, 20 Jul 2023 12:53:00 +0800</pubDate>
    </item>
    <item>
      <title>关于yara各种检测cobaltstrike</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416358&amp;idx=1&amp;sn=1fc61cbcb2da71ef0cab50419145b61a</link>
      <description>这几天有好多小伙伴使用了星球版的cobaltstrike 4.5。昨天有个小伙伴遇到一个奇怪问题，不用他自定义的c2profile，微步云沙箱一个yara都没匹配到，但是使用了它自定义的c2profile，被沙箱的yara疯狂匹配。</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-06-13 10:45</span> <span style="display: inline-block;">四川</span>
</p>

<p>这几天有好多小伙伴使用了星球版的cobaltstrike 4.5。昨天有个小伙伴遇到一个奇怪问题，不用他自定义的c2profile，微步云沙箱一个yara都没匹配到，但是使用了它自定义的c2profile，被沙箱的yara疯狂匹配。</p>
<p></p>



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


<h2 cid="n38" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain"><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.562962962962963" data-s="300,640" style="" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=667cef89&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5AFJPfPOqBiaqDy6viaGydLBzhgeqibibQYInibTGfoLlnnIae5kdvbRBRBA%2F640%3Fwx_fmt%3Dpng"/></p></span></h2><h2 cid="n38" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x00 前言</span></h2><p cid="n3" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这几天有好多小伙伴使用了星球版的cobaltstrike 4.5。昨天有个小伙伴遇到一个奇怪问题，不用他自定义的c2profile，微步云沙箱一个yara都没匹配到，但是使用了他自定义的c2profile，被沙箱的yara疯狂匹配。</span></p><ul class="list-paddingleft-1" cid="n4" mdtype="list" data-mark="-" style="margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><li><p cid="n6" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">默认生成：</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://s.threatbook.com/report/file/76e6e86b5850229c8bdc5e2b1e617240dc885c606c9ebc82c1f8fbfb87c57325" target="_blank">https://s.threatbook.com/report/file/76e6e86b5850229c8bdc5e2b1e617240dc885c606c9ebc82c1f8fbfb87c57325</a></span></p></li><li><p cid="n8" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">自定义profile：</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://s.threatbook.com/report/file/0ec7e263d3b540d1c71042a7ae6111b5ea2f641c0d7c08426f5f4f361f105af1" target="_blank">https://s.threatbook.com/report/file/0ec7e263d3b540d1c71042a7ae6111b5ea2f641c0d7c08426f5f4f361f105af1</a></span></p></li></ul><p cid="n9" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这个我也不知道为什么，按理说我没有过多针对yara规则做bypass，只把几个不好用c2profile篡改的点给patch掉了，剩余的地方应该很容易会被yara规则扫描到。（这里主要是stageless的exe，静态扫描）。</span></p><p cid="n11" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">我为什么没有直接patch掉所有yara规则呢？我是不可能patch完的，yara有开源的规则，有闭源的规则，太多了，授人以鱼不如授人以渔，掌握了方法，自己在实际目标中，针对特定防御软件自行patch才是可取之道。</span></p><p cid="n12" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这种静态的规则检测，对抗其实很简单。这段时间有2篇不错的文章可以参考：</span></p><p cid="n42" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">《Unleashing The Unseen: Harnessing The Power Of Cobalt Strike Profiles For EDR Evasion》</span></p><p cid="n40" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://whiteknightlabs.com/2023/05/23/unleashing-the-unseen-harnessing-the-power-of-cobalt-strike-profiles-for-edr-evasion/" target="_blank">https://whiteknightlabs.com/2023/05/23/unleashing-the-unseen-harnessing-the-power-of-cobalt-strike-profiles-for-edr-evasion/</a></span></p><p cid="n47" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">《Cobalt Strike and YARA: Can I Have Your Signature?》</span></p><p cid="n45" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://www.cobaltstrike.com/blog/cobalt-strike-and-yara-can-i-have-your-signature/" target="_blank">https://www.cobaltstrike.com/blog/cobalt-strike-and-yara-can-i-have-your-signature/</a></span></p><p cid="n13" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">我这儿拾人牙慧，使用微步云沙箱做做测试，微步云沙箱是国内使用最广泛的沙箱，非常优秀，本文测试不代表任何观点。</span></p><h2 cid="n14" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x01 使用transform-x64替换特征码</span></h2><p cid="n15" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">我使用</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://www.red-team.cn/index.php?tools" target="_blank">https://www.red-team.cn/index.php?tools</a></span><span md-inline="plain">随机生成一个c2profile。并生成一个stageless的exe上传微步云沙箱</span></p><p cid="n16" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://s.threatbook.com/report/file/28681c38b237a86bf584a503bbc9117b35c39e097ac9949001121b63adc4d0e0" target="_blank">https://s.threatbook.com/report/file/28681c38b237a86bf584a503bbc9117b35c39e097ac9949001121b63adc4d0e0</a></span></p><p cid="n17" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130909644.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.6058252427184466" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1030" src="https://wechat2rss.xlab.app/img-proxy/?k=7eb466b1&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH57wUbhTaLuaN0YhW7qJZE6HoovzFMejdJBXiaySQicMeHoB1BXmxHPg9w%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n18" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">被疯狂扫出来了，点击查看匹配项特征如下：</span></p><pre spellcheck="false" lang="" cid="n19" mdtype="fences" style="overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;"><span role="presentation" style="padding-right: 0.1px;">050405040507050d05070504050704be0506050705010505378605010507050105106ff90500050405070537</span><br/><span role="presentation" style="padding-right: 0.1px;">%02d/%02d/%02d %02d:%02d:%02d</span><br/><span role="presentation" style="padding-right: 0.1px;">%s as %s\%s: %d</span><br/><span role="presentation" style="padding-right: 0.1px;">48895c240848896c24104889742418574883ec204c8b5108418bf0488bea488bd9458b0a458b5a044d8d52084585c9</span><br/><span role="presentation" style="padding-right: 0.1px;">4d5a4152554889e54881ec20000000488d1d</span><br/><span role="presentation" style="padding-right: 0.1px;">e9d3fdffffeb0ab801000000e9ad030000</span><br/><span role="presentation" style="padding-right: 0.1px;">3bc7750dff15ee8f01003d33270000</span><br/><span role="presentation" style="padding-right: 0.1px;">4183c9ff33d2ff1525e101004c63c04983f8ff</span><br/><span role="presentation" style="padding-right: 0.1px;">488d4d97e8f8cbffff4c8d9c24d0000000418bc7498b5b20498b7328498b7b30</span><br/><span role="presentation" style="padding-right: 0.1px;">488b4c24208b04018b4c240833c88bc189442408</span><br/><span role="presentation" style="padding-right: 0.1px;">49c1e002e821e4000003f34d8d349e3bf57d13</span><br/><span role="presentation" style="padding-right: 0.1px;">752c4c8d45af488d55af488d4d27</span><br/><span role="presentation" style="padding-right: 0.1px;">bd0800000085d27459ffcf4d85ed</span><br/><span role="presentation" style="padding-right: 0.1px;">4c8b5308458b0a458b5a044d8d52084585c975054585db7433453bcb73e6498bf94c8b03</span></pre><p cid="n21" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">其中有字符，有指令，字符一般都是print之类函数中的，删除肯定是不行的，所以替换下其中无关紧要的字符就行了：</span></p><pre spellcheck="false" lang="" cid="n22" mdtype="fences" style="overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;"><span role="presentation" style="padding-right: 0.1px;">strrep &#34;%02d/%02d/%02d %02d:%02d:%02d&#34; &#34;%02d-%02d-%02d %02d:%02d:%02d&#34;;</span><br/><span role="presentation" style="padding-right: 0.1px;">strrep &#34;%s as %s\\%s: %d&#34; &#34;%s - %s\\%s: %d&#34;;</span></pre><p cid="n23" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">剩余的指令就是反射loader的头，默认的sleepmask。直接用</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://defuse.ca/online-x86-assembler.htm" target="_blank">https://defuse.ca/online-x86-assembler.htm</a></span><span md-inline="plain"> 网站，把特征码转成指令，举1个例子：</span></p><p cid="n24" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130909402.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.9177489177489178" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="924" src="https://wechat2rss.xlab.app/img-proxy/?k=05b487c6&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5pew1yPHYoO28lncoq5fupyNgffuBagZlMtiaLGkOFL2ECdzH0foydibg%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n25" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这个是默认的sleepmask，然后复制下面的指令，把一些和顺序无关的mov指令调换下顺序：</span></p><pre spellcheck="false" lang="" cid="n26" mdtype="fences" style="overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;"><span role="presentation" style="padding-right: 0.1px;">mov    QWORD PTR [rsp+0x10],rbp</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    QWORD PTR [rsp+0x8],rbx</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    QWORD PTR [rsp+0x18],rsi</span><br/><span role="presentation" style="padding-right: 0.1px;">push   rdi</span><br/><span role="presentation" style="padding-right: 0.1px;">sub    rsp,0x20</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    r10,QWORD PTR [rcx+0x8]</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    rbp,rdx</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    esi,r8d</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    rbx,rcx</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    r11d,DWORD PTR [r10+0x4]</span><br/><span role="presentation" style="padding-right: 0.1px;">mov    r9d,DWORD PTR [r10]</span><br/><span role="presentation" style="padding-right: 0.1px;">lea    r10,[r10+0x8]</span><br/><span role="presentation" style="padding-right: 0.1px;">test   r9d,r9d</span></pre><p cid="n27" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">然后再用上边的网站转换成16进制：</span></p><p cid="n28" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130909236.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.9036796536796536" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="924" src="https://wechat2rss.xlab.app/img-proxy/?k=8210133b&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5Vic8Lz8kxw7CwzoMUnBZQfKMdEclsj392TsmRHKYrC9hJa5CclOF4jg%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n29" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">最后修改c2profile替换下就OK了。</span></p><pre spellcheck="false" lang="" cid="n30" mdtype="fences" style="overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;"><span role="presentation" style="padding-right: 0.1px;">strrep                  &#34;\x4D\x5A\x41\x52\x55\x48\x89\xE5\x48\x81\xEC\x20\x00\x00\x00\x48\x8D\x1D\xEA\xFF\xFF\xFF\x48\x89\xDF\x48\x81\xC3\xA4\x6E\x01\x00\xFF\xD3\x41\xB8\xF0\xB5\xA2\x56\x68\x04\x00\x00\x00\x5A\x48\x89\xF9\xFF\xD0&#34; &#34;\x4D\x5A\x48\x8D\x1D\xF8\xFF\xFF\xFF\x41\x52\x48\x83\xEC\x28\x48\x89\xDF\x48\x81\xC3\x52\xB7\x00\x00\x48\x81\xC3\x52\xB7\x00\x00\xFF\xD3\x48\xC7\xC2\x04\x00\x00\x00\x48\x89\xF9\xFF\xD0&#34;;</span><br/><span role="presentation" style="padding-right: 0.1px;">  </span><br/><span role="presentation" style="padding-right: 0.1px;">strrep &#34;\x48\x89\x5C\x24\x08\x48\x89\x6C\x24\x10\x48\x89\x74\x24\x18\x57\x48\x83\xEC\x20\x4C\x8B\x51\x08\x41\x8B\xF0\x48\x8B\xEA\x48\x8B\xD9\x45\x8B\x0A\x45\x8B\x5A\x04\x4D\x8D\x52\x08\x45\x85\xC9&#34; &#34;\x48\x89\x6C\x24\x10\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x18\x57\x48\x83\xEC\x20\x4C\x8B\x51\x08\x48\x89\xD5\x44\x89\xC6\x48\x89\xCB\x45\x8B\x5A\x04\x45\x8B\x0A\x4D\x8D\x52\x08\x45\x85\xC9&#34;;</span></pre><p cid="n31" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">微步云沙箱yara就扫不出来了：</span><span md-inline="url" spellcheck="false" style="word-break: break-all;"><a href="https://s.threatbook.com/report/file/db7f83d07fb51933d97763ac99ff252e66c6282ffcb4e4ba955fe8c570f35177" target="_blank">https://s.threatbook.com/report/file/db7f83d07fb51933d97763ac99ff252e66c6282ffcb4e4ba955fe8c570f35177</a></span></p><p cid="n32" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">但是其中还有一个命名管道被检测到，这个是artifact kit中的，自己编译一个新的artifactkit就OK了。在bypass-pipe.c中：</span></p><p cid="n33" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130909011.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.1712962962962963" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=17674557&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5oX8ElIxcqg1Pb2yibgVhyrkoib4oOgrbmQd4UOldbXTpBMcm0kkLyRbg%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n50" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这仅仅是过了一些规则的检测，但是依旧有一半的引擎被检测出，很多商业规则，比较难以测试，因此作为一个红队选手，编写一些自己的独自使用的loader很有必要，本文不具体阐述如何写loader，但是分析下cobaltstrike的植入体结构，有利于大家做对抗。</span></p><h2 cid="n34" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x02 CobaltStrike植入体结构分析</span></h2><p cid="n35" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">其实我们生成的stageless文件包含4部分（按对抗点分）：artifact、rdll loader、beacon、sleepmask。对应到cobaltstrike中的功能：</span></p><pre spellcheck="false" lang="" cid="n55" mdtype="fences" style="overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding: 8px 4px 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;"><span role="presentation" style="padding-right: 0.1px;">artifact -&gt; artifact kit</span><br/><span role="presentation" style="padding-right: 0.1px;">rdll loader -&gt; UDRL kit</span><br/><span role="presentation" style="padding-right: 0.1px;">beacon -&gt; resource或sleeve目录下的beacon.xx.dll</span><br/><span role="presentation" style="padding-right: 0.1px;">sleepmask -&gt; sleepmask kit</span></pre><p cid="n53" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">这是当前的CS的植入体结构，这个结构不是一蹴而就的，最开始只有artifact和beacon(包含rdll loader、sleepmask功能)，artifact其实就是一个loader，你可以在其中加入各种对抗手法。慢慢的随着对抗升级，UDRL和sleepmask代码被从beacon中拆分了出来，让用户可以以BOF的形式自定义。</span></p><p cid="n56" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130957105.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.34962406015037595" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="798" src="https://wechat2rss.xlab.app/img-proxy/?k=e18f08fd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5ib0nsu3uLJjh7klzXFNsEthIoGpP0xjOEcNCsTic8cNZ8WbRX6gL2r6Q%2F640%3Fwx_fmt%3Dpng"/></span></p><p cid="n58" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">目前的执行流程就变成了如下图：</span></p><p cid="n59" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="image" data-src="https://mypic-1258570641.cos.ap-chengdu.myqcloud.com/markdown/202306130958349.png" style="min-width: 10px;min-height: 10px;word-break: break-all;font-family: monospace;display: inline-block;width: 964px;"><img class="rich_pages wxw-img" data-ratio="0.6247689463955638" style="border-width: 0px 4px 0px 2px;border-top-style: initial;border-right-style: solid;border-bottom-style: initial;border-left-style: solid;border-top-color: initial;border-right-color: transparent;border-bottom-color: initial;border-left-color: transparent;vertical-align: middle;image-orientation: from-image;cursor: default;display: block;margin: auto;" data-type="png" data-w="541" src="https://wechat2rss.xlab.app/img-proxy/?k=6c5f3121&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5R5n1STRtsaia0kcjenTUicOAnpGKq5Jb4gOWZCntic7mQxsrs6DgzA8pQ%2F640%3Fwx_fmt%3Dpng"/></span></p><ol class="list-paddingleft-1" cid="n61" mdtype="list" style="margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;"><li><p cid="n63" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">artifact加载beacon.dll，beacon.dll被加载后触发DLL_PROCESS_ATTACH，执行配置解密并放入堆上（ps:这也是beaconeye检测原理）。然后执行导出函数ReflectiveLoader。</span></p></li><li><p cid="n67" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">rdll loader执行一系列的pe操作，把beacon在内存中安置好，然后执行清理，把自己清理掉。</span></p></li><li><p cid="n73" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">把执行权给到beacon。</span></p></li><li><p cid="n70" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">beacon就开始组装metadata回连，然后根据sleep时间执行sleepmask加密堆和beacon。</span></p></li><li><p cid="n76" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">sleep时间到就解密beacon和堆，执行beacon中代码，执行完成又回到sleepmask。</span></p></li><li><p cid="n79" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;"><span md-inline="plain">4-5这个循环中，sleepmask的代码一直在内存中裸露的。（这个也是为什么当下内存查杀对抗点到了sleepmask上）</span></p></li></ol><h3 cid="n82" mdtype="heading" style="white-space: pre-wrap;break-after: avoid-page;break-inside: avoid;orphans: 4;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;letter-spacing: normal;text-align: start;"><span md-inline="plain">0x03 总结</span></h3><p cid="n87" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">本文是因一个小伙伴私聊微步云沙箱的yara检测而起，第一部分简单对抗了一下已有yara规则，步骤比较详细，适合新手小伙伴，但是好的做法还是自定义，在知己知彼的情况下自定义，适合有一定基础的小伙伴，于是引入第二部分，cs植入体可能被提取yara规则的地方，其中beacon目前代码没有公开，无法自定义，其他部分均可以自定义。当前情况下，基本把暴露的点都留给了使用者自定义了，因此CS在不同人手动，可能威力就不同了，同时对使用者的要求也提高了很多。</span></p><p cid="n89" mdtype="paragraph" style="line-height: inherit;orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &#34;Open Sans&#34;, &#34;Clear Sans&#34;, &#34;Helvetica Neue&#34;, Helvetica, Arial, &#34;Segoe UI Emoji&#34;, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;"><span md-inline="plain">目前星球版的4.5在sleepmask这块功能要弱于4.8，后续会改进到4.8类似的功能。星球也有4.8和最新的配套kit，可以直接使用。</span></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5493333333333333" data-s="300,640" style="" data-type="jpeg" data-w="1125" src="https://wechat2rss.xlab.app/img-proxy/?k=1886d53f&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_jpg%2Fccwfy6ibNqVMEcYkjEuaB3rcubdCm2XH5HgMpxc5ofZ81YMUMKxuGIm0oVic3edFyWECDCUcELu7FsqjE5xtjFbg%2F640%3Fwx_fmt%3Djpeg"/></p><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416358">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=d8927a21&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416358%26idx%3D1%26sn%3D1fc61cbcb2da71ef0cab50419145b61a%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 13 Jun 2023 10:45:00 +0800</pubDate>
    </item>
    <item>
      <title>权力、责任、自由</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416346&amp;idx=1&amp;sn=9a9971c252627a0b1de2926534d75e68</link>
      <description>记录一下在做技术之余脑袋里面的一些清奇的脑回路。一些胡言乱语的思考，看官们且看过笑过就行，不必深究。3月离职</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-06-09 19:45</span> <span style="display: inline-block;">四川</span>
</p>

<p>记录一下在做技术之余脑袋里面的一些清奇的脑回路。一些胡言乱语的思考，看官们且看过笑过就行，不必深究。3月离职</p>
<p></p>



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


<p style="text-align: center;"><img class="rich_pages wxw-img js_insertlocalimg" data-ratio="0.562962962962963" data-s="300,640" data-type="png" data-w="1080" style="height: auto !important;" src="https://wechat2rss.xlab.app/img-proxy/?k=c1be91eb&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fsz_mmbiz_png%2Fccwfy6ibNqVP71dlo23iczDiaSRBbFSD00nHKVmahicwI5qOTbDO3iayLziaLHIBa1x8WgawnchOI9HaTSJyfHLicuYFA%2F640%3Fwx_fmt%3Dpng"/></p><section style="text-indent: 2em;">记录一下在做技术之余脑袋里面的一些清奇的脑回路。一些胡言乱语的思考，看官们且看过笑过就行，不必深究。</section><section style="text-indent: 2em;">3月离职在家比较有时间，于是关于丈母娘和老丈人来成都买房的计划提上了日程。我和我老婆都是独生子女，双方父母也都在60岁左右，马上进入退休年纪，或已经退休。于是关于他们的养老问题，我们提出了分别都到成都来买房定居的提议。三方分开住但又离得不远，各有各的生活，有什么事情也能及时照应。不出意外的必然是有点波折，具体不细究，我老婆父母和我们想法是一致的但是具体实施中有了一些意外和分歧，引出如下的思考。<br/></section><section style="text-indent: 2em;">在父母养老问题上的责任与权力，应该是我们这代独生子女面临的一大难题。我们有责任给父母养老但在养老的问题上我们是否也同时具备如何给父母养老的权力？两代人必然会存在认知的差异，也就是所谓的代沟，所以在养老问题上无法达成共识的时候听谁的？我想是否是有多大的责任则应该有多大的权力？</section><section style="text-indent: 2em;">我们这代人所处的家庭的权力关系转移真的很奇妙。小时候权力在父亲或母亲身上，大事面前，他或者她拍板，小孩儿基本没有权力，当然小孩儿也没有责任。随着时间推移，孩子慢慢长大成人，在这个过程中权力在不停地让渡，小孩儿从争取自身的权力到最后争取家庭的权力，因为小孩儿慢慢承担了家庭的责任。如果权力的让渡出现问题，这可能就是孩子和父母矛盾的根源吧。<br/></section><section style="text-indent: 2em;">事虽有波折，但还算顺利。接下来的是这几天的一个脑回路，权力与自由。</section><section style="text-indent: 2em;">昨天看见一个新闻，深圳x租房18-40岁可以签约，过40你懂的。互联网人的35、深圳的40，这些无形或有形的年龄限制，似乎在说明一些问题，似乎在告诉你，35岁或40岁不能自由，可能你就麻烦了。这个自由可以是物质上的自由，也可以是精神上的自由，可以是无形的，也可以是有形。不管是什么，我们大部分人似乎都在追求某种自由，但是却说不出自由是什么？如果非要问，可能会说是财务自由。足够的有钱带来的是自由么？我想可能它带来的不是自由，而是权力。</section><section style="text-indent: 2em;">政治学中权力的实施方式分为3种：暴力、信仰、金钱。也就是说你足够的有钱，获得的不是自由，而是权力。如果这样的话，暴力和信仰是否能给你带来自由？我想了想，好像能。侠客的自由是一种暴力的自由。剃度出家是一种信仰的自由。</section><section style="text-indent: 2em;">我们还是回到权力，如果我们想要的自由，实际上是一种权力。这种权力是一种具有社会属性的权力，它必须生存于群体之中，如果没有群体，你的钱就是废纸。这突然让我想明白了，人们为什么向往李子柒似的生活，因为她跳出了大众社会，也就不被大众社会的权力所奴役。而我们大部分人被这种权力的自由所魅惑，苦苦挣扎。但群体中是不可能人人获得这种权力的，因为这种权力是具有阶级属性的。</section><section style="text-indent: 2em;">不能再想再写下去了，怕发不出去，无知是一种幸福。我们把当下就当成是一群小孩儿游泳过河的故事吧！游在前面的先上岸，对着河里撒尿，阻止后面的小孩儿上岸，旁边的大人有的阻止岸上的小孩儿，有的在一旁煽风点火。<br/></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416346">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=b0185fae&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416346%26idx%3D1%26sn%3D9a9971c252627a0b1de2926534d75e68%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 09 Jun 2023 19:45:00 +0800</pubDate>
    </item>
    <item>
      <title>【必读】做技术必看-知识吸收快人一步</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416340&amp;idx=1&amp;sn=94f67423aaee67323ef5e36c7415cde5</link>
      <description>做安全的同学应该都有一个痛点（可能计算机技术相关的同学也有类似痛点）：最新的知识绝大多数是英文的，吸收很慢，国内的翻译或解读文档质量太低，这里的质量不是说深浅，而是对错，很多入门的小伙伴应该都有一个经历就是把错误的理解学了很久才发现是错的。</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-05-26 13:36</span> <span style="display: inline-block;">四川</span>
</p>

<p>做安全的同学应该都有一个痛点（可能计算机技术相关的同学也有类似痛点）：最新的知识绝大多数是英文的，吸收很慢，国内的翻译或解读文档质量太低，这里的质量不是说深浅，而是对错，很多入门的小伙伴应该都有一个经历就是把错误的理解学了很久才发现是错的。</p>
<p></p>



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


<p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5625" data-s="300,640" style="" data-type="png" data-w="1280" src="https://wechat2rss.xlab.app/img-proxy/?k=aa551f75&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUhesOZI2g7vDicKMBuUXyyPj3ib0yyMOquXaBKwC3SbmHF64wwJsK60WA%2F640%3Fwx_fmt%3Dpng"/></p><section style="text-align: left;text-indent: 2em;">做网络安全相关的同学应该都有一个痛点（可能计算机技术相关的同学也有类似痛点）：最新的知识绝大多数是英文的，吸收很慢，国内的翻译或解读文档质量太低，这里的质量不是说深浅，而是对错，很多入门的小伙伴应该都有一个经历就是把错误的理解学了很久才发现是错的。</section><section style="text-align: left;line-height: normal;margin-bottom: 8px;text-indent: 2em;">我分享下我的知识沉淀流程，当然必须感谢OPENAI，真的是人类的又一次科技革命。废话不多少说，我用到的工具和网站如下：<br/></section><ul class="list-paddingleft-1" style="list-style-type: disc;"><ul class="list-paddingleft-1" style="list-style-type: square;"><ul class="list-paddingleft-1" style="list-style-type: circle;"><li><p style="text-align: left;text-indent: 0em;line-height: normal;"><span style="font-size: 17px;letter-spacing: 0.578px;text-decoration: none;">【免费】沉浸式双语网页翻译：<a href="https://github.com/immersive-translate/immersive-translate/" target="_blank">https://github.com/immersive-translate/immersive-translate/</a></span></p></li><li><p style="text-align: left;text-indent: 0em;line-height: normal;"><span style="font-size: 17px;letter-spacing: 0.578px;text-decoration: none;">【￥89/永久】Typora：<a href="https://typora.io" target="_blank">https://typora.io</a></span></p></li><li><p style="text-align: left;text-indent: 0em;line-height: normal;"><span style="letter-spacing: 0.578px;">【$5起/按量计费】OpenAI API：<a href="https://openai.com" target="_blank">https://openai.com</a></span></p></li><li><p style="text-align: left;text-indent: 0em;line-height: normal;"><span style="letter-spacing: 0.578px;">【免费】PicGo：<a href="https://github.com/Molunerfinn/PicGo" target="_blank">https://github.com/Molunerfinn/PicGo</a><br/></span></p></li><li><p style="text-align: left;text-indent: 0em;line-height: normal;"><span style="letter-spacing: 0.578px;">【需购买】腾讯云COS：<a href="https://cloud.tencent.com/product/cos" target="_blank">https://cloud.tencent.com/product/cos</a><br/></span></p></li><li><p style="text-indent: 0em;line-height: normal;"><span style="letter-spacing: 0.578px;">【充值】nobepay：<a href="https://www.nobepay.com" target="_blank">https://www.nobepay.com</a></span></p></li></ul></ul></ul><p style="text-indent: 0em;line-height: normal;"><br/></p><p style="text-indent: 0em;line-height: normal;text-align: left;"><span style="letter-spacing: 0.578px;">当然一切的前提是你能够科学的上网。首先我们肯定是要购买OpenAI API的Key，免费的基本不能用，太慢了。购买需要信用卡，因此我们要用到nobepay，这个网站需要实名注册，这个注册我就不写了，怕公众号发不出去，这个链接有教程：<a href="https://juejin.cn/post/7214635327406293051，我开的卡是" target="_blank">https://juejin.cn/post/7214635327406293051，我开的卡是</a></span><span style="letter-spacing: 0.034em;text-align: justify;">489683号段的。</span></p><p style="text-indent: 0em;line-height: normal;text-align: left;"><span style="letter-spacing: 0.034em;text-align: justify;">然后到<a href="https://platform.openai.com/account/billing/payment-methods填上信用卡信息，会马上冻结$5，因此你卡上最好有$6以上，因为还有手续费之类的。" target="_blank">https://platform.openai.com/account/billing/payment-methods填上信用卡信息，会马上冻结$5，因此你卡上最好有$6以上，因为还有手续费之类的。</a></span></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.7060629316960859" data-s="300,640" style="" data-type="png" data-w="1303" src="https://wechat2rss.xlab.app/img-proxy/?k=728d088c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUJibptsxDX0llJeEgjzoOibXhsfUBrqwibOD9TDxeegQEjTRnMAHBic1KlA%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-indent: 0em;line-height: normal;text-align: left;"><span style="letter-spacing: 0.578px;">然后你就有Key了<a href="https://platform.openai.com/account/api-keys，生成一个：" target="_blank">https://platform.openai.com/account/api-keys，生成一个：</a></span></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5758597437626433" data-s="300,640" style="" data-type="png" data-w="1483" src="https://wechat2rss.xlab.app/img-proxy/?k=f426cf04&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUsR8uGmvPGicR7e471OOenRwX7qXbuMiaHY4rWeibbwLtsI7f5rlG5KCrg%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-indent: 0em;line-height: normal;text-align: left;"><span style="letter-spacing: 0.578px;"></span></p><section style="line-height: normal;text-indent: 2em;">接下来是安装<strong><span style="letter-spacing: 0.578px;text-align: left;">沉浸式双语网页翻译</span></strong><span style="letter-spacing: 0.578px;text-align: left;">的google插件。</span><br/></section><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.482779827798278" data-s="300,640" style="" data-type="png" data-w="1626" src="https://wechat2rss.xlab.app/img-proxy/?k=f7c1331d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUbhmia5jHx5pPX3fQvbqPz6NnfGibUhwEqTXKpeydiaibYkjmEpV6jQf4xw%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">然后设置中填上key，模型选择gpt-3.5-turbo,大部分人应该只有这个，用不了GPT4，运气好的小伙伴申请到了GPT4 API试用可以选GPT4.<br/></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.7246753246753247" data-s="300,640" style="" data-type="png" data-w="1155" src="https://wechat2rss.xlab.app/img-proxy/?k=b473b781&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUK2bB2BMZIPF86W4U7JHIr7MVTyZZ367JUblVAIzV4JDBoMrtNl8qyA%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">然后打开一个技术博客看后看看效果：</p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5846625766871165" data-s="300,640" style="" data-type="png" data-w="1630" src="https://wechat2rss.xlab.app/img-proxy/?k=b473fbd2&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryU5EdeWzib3MEbvlCQ4tQOWzCv2ltT3BZ8fMIaYalWcY29aXwKKoH3MrA%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">双语阅读，毕竟技术文章，即使是GPT也可能有一些不准确的地方，但是比google翻译、DeepL好太多。发现拗口的地方可以对照原文，随便学习英文。这极大的提升了我的阅读效率。</p><p style="text-align: left;">那为什么需要typora呢？好的技术文章不是一遍就能吃透的，有些比较深入的技术文章，需要很多前置知识，你必须阅读完或学习完一些前置知识才能看懂，不然看了也是白看。所以好文章需要存储，一定不要相信它发表在网上就一直在网上，很多好文章过一段时间就没了。保存为PDF落在你的硬盘上才是稳当的。<br/></p><p style="text-align: left;">typora具有非常牛逼的格式转换能力，你只需要粘贴复制，我试过很多工具，在复制后格式都会乱，但typora很牛逼。看效果（无任何改动）：<br/></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.6559561128526645" data-s="300,640" style="" data-type="png" data-w="1276" src="https://wechat2rss.xlab.app/img-proxy/?k=c027c39d&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUKd7qYoCGiaNfrH2CE7nvqsmchbn2QwHvHmOzRWBictyujEITXbiazbj3Q%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">其中图片是重点，typora自动上传图片到我的腾讯云COS了</p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.3028169014084507" data-s="300,640" style="" data-type="png" data-w="1278" src="https://wechat2rss.xlab.app/img-proxy/?k=16aa07e7&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUyLRnfmiarrHH1KMRbiam7BrysJcOLw7vbI7aib94U9ib0LdEwy2JTDbFCA%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">这个配置在typora偏好设置中：<br/></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.47959866220735786" data-s="300,640" style="" data-type="png" data-w="1495" src="https://wechat2rss.xlab.app/img-proxy/?k=f19f200c&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUZhTZGx7rRrrA41Tn9MRZRlic60ibBZGKuYQ95M23WNs6wH09jnqqcbEQ%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">这里就用到了picgo。picgo的图床我用的腾讯云的COS，你也可以选用其他的：</p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5473790322580645" data-s="300,640" style="" data-type="png" data-w="992" src="https://wechat2rss.xlab.app/img-proxy/?k=0a3e5bdd&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUKuuCJS5tn47A62kialwgaicmqjMNByrEfvf1VlKfd1hkmnJcjNDUWKrA%2F640%3Fwx_fmt%3Dpng"/></p><p style="text-align: left;">最后记得用typora导出文档为pdf，这才是最稳当的。</p><section style="text-align: left;text-indent: 2em;">整体费用应该是在1000人民币以下，其中图片你可以找免费的，typora是永久的89元，主要花费还是openai，我看了openai按量计费的费率，其实很便宜50刀你如果只是看文章翻译，要用很久。</section><section style="text-align: left;text-indent: 2em;">最后的最后我会把我看到的好文档保存到知识星球，方便大家和我查阅。星球是一个提问互动、知识沉淀、资源发布以及攻防前沿技术讨论的地方。成熟攻击者可以掌握最新的技术、入门攻击者可以看清学习的方向以及向我提问、防御者可以知己知彼，掌握攻击的前沿态势才能更好的防御。很多公司都有知识学习经费，不要犹豫，买买买！（我现在时间充裕，欢迎找我聊技(吹)术（牛））</section><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.5493333333333333" data-s="300,640" style="" data-type="jpeg" data-w="1125" src="https://wechat2rss.xlab.app/img-proxy/?k=05cf0994&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fccwfy6ibNqVMZzJu6gIoGSAficl8iaWQryUlAoocb0QlU2sDLfWicjOQrwpUO0HjLax3qqb2TyD26TRqTnia87f0SyA%2F640%3Fwx_fmt%3Djpeg"/></p><p style="text-align: left;">有个一个微信群，人近300了，可以找我和认识的且在群里的朋友拉。满了我再建2群。<br/></p><section style="line-height: normal;text-indent: 2em;"><span style="letter-spacing: 0.578px;text-align: left;"></span></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416340">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=64876c30&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416340%26idx%3D1%26sn%3D94f67423aaee67323ef5e36c7415cde5%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Fri, 26 May 2023 13:36:00 +0800</pubDate>
    </item>
    <item>
      <title>没有睡意，起床写写近况</title>
      <link>https://mp.weixin.qq.com/s?__biz=MzIxMDI0MzQzNQ==&amp;mid=2650416323&amp;idx=1&amp;sn=dabab7125b84a567dba94efe6d88a3c1</link>
      <description>现在是0:18，躺在床上毫无睡意，突然想写写公众号。离职在家快3个月了。可能有的小伙伴会好奇，你21年不就说</description>
      <content:encoded><![CDATA[<p>
原创 <span>我需要的是坚持</span> <span>2023-05-23 01:48</span> <span style="display: inline-block;">四川</span>
</p>

<p>现在是0:18，躺在床上毫无睡意，突然想写写公众号。离职在家快3个月了。可能有的小伙伴会好奇，你21年不就说</p>
<p></p>



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


<p><br/></p><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.562962962962963" data-s="300,640" style="" data-type="png" data-w="1080" src="https://wechat2rss.xlab.app/img-proxy/?k=0f2ad020&amp;u=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_png%2Fccwfy6ibNqVP3xr7YgjFibhVDfZq9K1oFMmiahdUZOF5icOICCGxZ79LcfYXxXvCOvuPgyicvEO5ar54bW2GFEicpG2g%2F640%3Fwx_fmt%3Dpng"/><span style="letter-spacing: 0.034em;text-align: justify;"></span></p><p><br/></p><section style="text-indent: 2em;">现在是0:18，躺在床上毫无睡意，突然想写写公众号。离职在家快3个月了。</section><section style="text-indent: 2em;">可能有的小伙伴会好奇，你21年不就说在家独立安全研究了么？其实中途我到微步在线上班了1年，原因很多，总的来说可能是钱给的太多，心动了。那为什么又离职了呢？可能是新冠后身体素质不好，总反复感冒，也可能是干的不爽，还可能是备孕一直没有效果，回家养身体，亦或是太卷了，反正不是自由了。<br/></section><section style="text-indent: 2em;">现在的事实就是已经在家3个月了。当然这3个月也没闲着，每周2次的健身，目前身体恢复了不少，但备孕还在努力中。找朋友接了几个项目做，过程曲折，磕磕碰碰遇到不少问题，目前的结果就是没有结果。不过也让我意识到了一些问题，例如：一年的以开会扯皮为主的工作，让一线的技术感觉丢掉了不少，需要多打几个项目恢复下。工具都得重新弄一弄，才能趁手。<br/></section><section style="text-indent: 2em;">这3个月发生了很多事，外婆的突然离世是我第二次经历亲人的离世，上一次是近10年前。脑溢血，非常的突然，我无法用语言形容我的心情，可能是一种平静中的难过。30多年的人生，意识告诉我人终究一死，能在90岁的高龄，在没有病痛的折磨下离开，也是一种幸运。但血浓于水的亲情，那些儿时的记忆，都会让泪水模糊我的双眼。<br/></section><section style="text-indent: 2em;">时间真的很快，有些时候想的太多没有意义，与其勾心斗角，不如一心一意。平心静气的做做技术研究，虽没有财务自由，但至少时间自由。<br/></section><section style="text-indent: 2em;">时间自由有个好处是能有大块的时间读书，没有人打扰你，关闭手机，世界是如此的安静。人需要构建自己内心的秩序，阅读是最低成本，也是最好的方式。在顺境中做事，在逆境中读书。最近的确有点小焦虑，项目的不顺利，几月没有收入。不过也还好，事要一件一件做，饭要一口一口吃，我需要的是坚持，结果需要的是时间，生活需要的是体验，生命需要的是自由。<br/></section><section style="text-indent: 2em;">一晃一个小时过去了，睡觉，天亮后，还要写代码、读书、健身、感受幸福。<br/></section><p style="display: none;"><mp-style-type data-value="3"></mp-style-type></p>



<p><a href="2650416323">阅读原文</a></p>
<p><a href="https://wechat2rss.xlab.app/link-proxy/?k=764df36a&amp;r=1&amp;u=https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzIxMDI0MzQzNQ%3D%3D%26mid%3D2650416323%26idx%3D1%26sn%3Ddabab7125b84a567dba94efe6d88a3c1%26subscene%3D0">跳转微信打开</a></p>
]]></content:encoded>
      <pubDate>Tue, 23 May 2023 01:48:00 +0800</pubDate>
    </item>
  </channel>
</rss>