<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>NotionNext BLOG</title>
        <link>https://kaishu.i9x.cn//</link>
        <description>这是一个由NotionNext生成的站点</description>
        <lastBuildDate>Sun, 06 Jul 2025 02:28:30 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2025, 凯叔有点卷</copyright>
        <item>
            <title><![CDATA[Ngrok 部署]]></title>
            <link>https://kaishu.i9x.cn//article/ec349ef6-56da-4033-a233-ff3d0aa9e387.html</link>
            <guid>https://kaishu.i9x.cn//article/ec349ef6-56da-4033-a233-ff3d0aa9e387.html</guid>
            <pubDate>Mon, 29 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[将本地运行的网络应用程序通过一个公共 URL 暴露到互联网，方便开发、测试和共享应用。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-ec349ef656da4033a233ff3d0aa9e387"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0600dbd4c5f84398bc017ffad8615de8" data-id="0600dbd4c5f84398bc017ffad8615de8"><span><div id="0600dbd4c5f84398bc017ffad8615de8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0600dbd4c5f84398bc017ffad8615de8" title="安装方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安装方式</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-68805e8c968341009527b6df0088f326"><li><b>下载和安装：</b></li><ol class="notion-list notion-list-numbered notion-block-68805e8c968341009527b6df0088f326"><ul class="notion-list notion-list-disc notion-block-ec37c5cbd4584d3fb72e81c77e0b72de"><li>首先，你需要到 ngrok 的官方网站（https://ngrok.com/）上下载 ngrok 的客户端。</li></ul><ul class="notion-list notion-list-disc notion-block-8cf2b546d65e4a8390e2979f88e910ac"><li>解压下载的文件，并将 ngrok 客户端保存到一个方便访问的位置。</li></ul><ul class="notion-list notion-list-disc notion-block-dcf8380ddb1a435796394060f9507060"><li>MAC 上安装</li></ul></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1dbb9bc86c38467da4b0f9893d25131e"><li><b>获取 Authtoken：</b></li><ol class="notion-list notion-list-numbered notion-block-1dbb9bc86c38467da4b0f9893d25131e"><ul class="notion-list notion-list-disc notion-block-1a60374fdbf34a8a9d70f5d4267ba22c"><li>在使用 ngrok 之前，你需要注册 ngrok 帐户并获取 Authtoken。这个 Authtoken 是用来验证你的 ngrok 客户端的身份的。</li></ul><ul class="notion-list notion-list-disc notion-block-3ff937d1edd14913af28e1d04b31d8b4"><li>在终端中运行以下命令以进行身份验证：<code class="notion-inline-code"><b>./ngrok authtoken your_auth_token</b></code>（将 <code class="notion-inline-code"><b>your_auth_token</b></code> 替换为你的 Authtoken）。</li></ul></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-e8db6b1ccf8243bc804fc835bd47826e"><li><b>启动 ngrok：</b></li><ol class="notion-list notion-list-numbered notion-block-e8db6b1ccf8243bc804fc835bd47826e"><ul class="notion-list notion-list-disc notion-block-f60c55a638254d068f87c106b8a7dc63"><li>打开终端，并导航到保存 ngrok 客户端的目录。</li></ul><ul class="notion-list notion-list-disc notion-block-c513be3afc964b5e9d6ec40496d68572"><li>运行 <code class="notion-inline-code"><b>./ngrok http port_number</b></code> 命令，其中 <code class="notion-inline-code"><b>port_number</b></code> 是你本地服务器运行的端口号。</li></ul><ul class="notion-list notion-list-disc notion-block-634abd7280e74da4991b3afd8954ef54"><li>例如，如果你的本地服务器在端口 3000 上运行，你可以运行 <code class="notion-inline-code"><b>./ngrok http 3000</b></code>。</li></ul></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-4f948ecb976f4e48b2126b0c0a420f03"><li><b>使用 ngrok：</b></li><ol class="notion-list notion-list-numbered notion-block-4f948ecb976f4e48b2126b0c0a420f03"><ul class="notion-list notion-list-disc notion-block-e00b9f1b161145569b31684355eca156"><li>运行上述命令后，ngrok 将会生成一个随机的公共 URL，用于访问你的本地服务器。</li></ul><ul class="notion-list notion-list-disc notion-block-90182efa515c40dda5ff4f4b9344ebb1"><li>在终端窗口中，你会看到一个类似 <code class="notion-inline-code"><b>Forwarding http://randomstring.ngrok.io -&gt; localhost:3000</b></code> 的消息。这个 ngrok 提供的 URL 就是你的本地服务器的公共访问地址。</li></ul><ul class="notion-list notion-list-disc notion-block-0590d0c5cbaa44fcb36c6ddd23e32e07"><li>现在，你可以使用这个 ngrok 提供的 URL 来访问你的本地服务器，以便测试你的 Web 应用程序。</li></ul><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-27a939b82f1f4e65bc08a84a00fad0f3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F71b8f383-904b-490f-8212-8e54968c647b%2FUntitled.png?table=block&amp;id=27a939b8-2f1f-4e65-bc08-a84a00fad0f3&amp;t=27a939b8-2f1f-4e65-bc08-a84a00fad0f3&amp;width=680&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mitmproxy 偷偷抓取你的信息]]></title>
            <link>https://kaishu.i9x.cn//article/89231568-f35b-41e9-a571-40ecb16ed151.html</link>
            <guid>https://kaishu.i9x.cn//article/89231568-f35b-41e9-a571-40ecb16ed151.html</guid>
            <pubDate>Thu, 18 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[强大的交互式HTTPS代理工具，可用于拦截、修改和查看HTTP和HTTPS流量。它提供了一个简单的命令行界面，允许用户实时查看和编辑网络流量，并支持脚本化和扩展性，使其成为渗透测试、安全审计和网络调试的理想工具]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-89231568f35b41e9a57140ecb16ed151"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-55bda50dc07742089020964005b95d30" data-id="55bda50dc07742089020964005b95d30"><span><div id="55bda50dc07742089020964005b95d30" class="notion-header-anchor"></div><a class="notion-hash-link" href="#55bda50dc07742089020964005b95d30" title="Mitmproxy 功能介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mitmproxy 功能介绍</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-5a7a17a9c9c34b09b79777cda2528f21"><li>实时拦截，修改 HTTP/HTTPS 请求和相应</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-5d2f8f12d2ae43d8ba2737dd099686b7"><li>可保存完整的 Http 会话，方便后续分析和重放</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-f2299d7875b749e58d0e68cda4a1541a"><li>支持反向代理模拟将流量转发到指定服务器</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-18c8505cffbd487a8afd0f23645b326c"><li>支持 macOS 和 Linux 上的透明代理模式</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-60a5468fe79b4b8ea631b82ca0f28e65"><li>支持用Python 脚本对 HTTP 通信进行修改</li></ol><div class="notion-blank notion-block-b91c89369a3b485f86a088f61c5dffa9"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-bb08e72dc8764d3bb3f3193399231e38" data-id="bb08e72dc8764d3bb3f3193399231e38"><span><div id="bb08e72dc8764d3bb3f3193399231e38" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bb08e72dc8764d3bb3f3193399231e38" title="Mitmproxy 通信原理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mitmproxy 通信原理</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-56851bf67130472cb3e06457617a09ec" data-id="56851bf67130472cb3e06457617a09ec"><span><div id="56851bf67130472cb3e06457617a09ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#56851bf67130472cb3e06457617a09ec" title="一. 显示HTTP"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一. 显示HTTP</span></span></h4><hr class="notion-hr notion-block-b73a4c0f93224c499bb9ea8fde709409"/><div class="notion-text notion-block-1bd5d9ebe946422e9f7359c911db3de2">配置客户端以使用mitmproxy作为显式代理是拦截流量的最简单，最可靠的方法。代理协议已在<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://tools.ietf.org/html/rfc7230">HTTP RFC</a>中进行了编码，因此客户端和服务器的行为都得到了很好的定义，并且通常是可靠的。在与mitmproxy进行的最简单的交互中，客户端直接连接到代理，并发出如下所示的请求：</div><div class="notion-text notion-block-5ecbc0987210444a97693bb46fe202b3">这是一个代理<code class="notion-inline-code">GET</code>请求-原始<code class="notion-inline-code">HTTP GET</code>请求的扩展形式，包括模式和主机规范，并且它包含所有需要继续进行的信息<code class="notion-inline-code">mitmproxy</code>。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-5a7fc1472bef4771b548ab53d6245567"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:568px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F6d7e6823-15a3-4451-adfe-ac0d51d2fc6e%2FUntitled.png?table=block&amp;id=5a7fc147-2bef-4771-b548-ab53d6245567&amp;t=5a7fc147-2bef-4771-b548-ab53d6245567&amp;width=568&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-584db32807ba41298eb51cb2c657f3e1">客户端连接到代理并发出请求。</div><div class="notion-text notion-block-fbf3e359d90342989e2db6235f7d938d">Mitmproxy连接到上游服务器，然后继续转发请求。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ed2448e3b2064686b8fd9c20ff930d22" data-id="ed2448e3b2064686b8fd9c20ff930d22"><span><div id="ed2448e3b2064686b8fd9c20ff930d22" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ed2448e3b2064686b8fd9c20ff930d22" title="二. 显式HTTPS"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二. 显式HTTPS</span></span></h4><hr class="notion-hr notion-block-e12dd15f1d4744cd9ae112af2a71f26e"/><div class="notion-text notion-block-bc7277e13cc04c3b998f7dc0a7746927">显式代理<code class="notion-inline-code">HTTPS</code>连接的过程是完全不同的。客户端连接到代理并发出如下请求：</div><div class="notion-text notion-block-3fbdcf98dcf04230b5fa2ddfad92278d">传统的代理既不能查看也不能操纵TLS加密的数据流，因此CONNECT请求只是要求代理打开客户端和服务器之间的管道。这里的代理只是一个促进者-它在两个方向上都盲目转发数据，而对内容一无所知。TLS连接的协商是通过此管道进行的，随后的请求和响应流对于代理是完全不透明的。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3bed4a92ba9b468a914c8c44f05673ce"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:572px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fda987c8e-bada-4e97-8f90-c2e324fbad6f%2FUntitled.png?table=block&amp;id=3bed4a92-ba9b-468a-914c-8c44f05673ce&amp;t=3bed4a92-ba9b-468a-914c-8c44f05673ce&amp;width=572&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-54aac4b1ade3421ca0de5aa693e1aa90">1、客户端建立与mitmproxy的连接，并发出HTTP CONNECT请求。</div><div class="notion-text notion-block-f4a5b1e3d1a9482d8f095ba2a704b78c">2、Mitmproxy响应为200 Connection Established，就好像它已经设置了CONNECT管道一样。</div><div class="notion-text notion-block-eb6836f6a10e4ed7a6be71aa26b3154a">3、客户端认为它正在与远程服务器通信，并启动TLS连接。它使用SNI指示要连接的主机名。</div><div class="notion-text notion-block-47d8067479bf4716b51e539a8752a95a">4、Mitmproxy连接到服务器，并使用客户端指示的SNI主机名建立TLS连接。</div><div class="notion-text notion-block-a935b1a7c8f6491ba3340ec7fdaf8133">5、服务器以匹配的证书作为响应，该证书包含生成拦截证书所需的CN和SAN值。</div><div class="notion-text notion-block-a3dd1b1f18814082b5caaec8c6ae1995">6、Mitmproxy生成拦截证书，并继续在步骤3中暂停的客户端TLS握手。</div><div class="notion-text notion-block-f2497c4eb9204ef1b47c65d978b8982a">7、客户端通过已建立的TLS连接发送请求。</div><div class="notion-text notion-block-bbf77e73dcc24aceac9d98c2fa8e4637">8、Mitmproxy通过在步骤4中启动的TLS连接将请求传递到服务器。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-a632d3aed3b14b55ba7d3d5577d5d913" data-id="a632d3aed3b14b55ba7d3d5577d5d913"><span><div id="a632d3aed3b14b55ba7d3d5577d5d913" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a632d3aed3b14b55ba7d3d5577d5d913" title="三.透明HTTP"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三.<b><b>透明HTTP</b></b></span></span></h4><div class="notion-text notion-block-6d786ac6f30d4c519bef1480dc135e2a">使用透明代理时，连接将重定向到网络层的代理中，而无需任何客户端配置。这使得透明代理非常适合那些您无法更改客户端行为的情况-代理不兼容的<code class="notion-inline-code">Android</code>应用程序是一个常见示例。</div><div class="notion-text notion-block-3b2c4672635f437e819afa926a613c3d">为此，我们需要引入两个额外的组件。第一种是重定向机制，可以透明地将发往<code class="notion-inline-code">Internet</code>上服务器的<code class="notion-inline-code">TCP</code>连接重新路由到侦听代理服务器。这通常采用与代理服务器位于同一主机上的防火墙的形式-<code class="notion-inline-code">Linux</code>上的<code class="notion-inline-code">iptables</code>或<code class="notion-inline-code">OSX上的 pf</code>。客户端启动连接后，它将发出原始的<code class="notion-inline-code">HTTP</code>请求，该请求可能类似于以下内容：</div><div class="notion-text notion-block-5c1597c62100465da30508b3ecfbd3b1">请注意，此请求与显式代理变体不同，因为它忽略了方案和主机名。那么，我们如何知道将请求转发到哪个上游主机呢？执行重定向的路由机制为我们跟踪了原始目的地。每种路由机制都有一种公开此数据的不同方法，因此引入了透明代理工作所需的第二个组件：一个主机模块，该主机模块知道如何从路由器检索原始目标地址。在mitmproxy中，这采取一组内置模块的形式，这些 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/mitmproxy/mitmproxy/tree/master/mitmproxy/platform">模块</a> 知道如何与每个平台的重定向机制进行通信。一旦获得了这些信息，这个过程就很简单了。</div><ul class="notion-list notion-list-disc notion-block-b8eedc92dec1429abef39892cba41d61"><li>客户端与服务器建立连接。</li></ul><ul class="notion-list notion-list-disc notion-block-ee2d284611bc4f60ad974139056f2a4d"><li>路由器将连接重定向到<code class="notion-inline-code">mitmproxy</code>，后者通常在同一主机的本地端口上侦听。然后，<code class="notion-inline-code">Mitmproxy</code>会咨询路由机制以建立原始目的地。</li></ul><ul class="notion-list notion-list-disc notion-block-8a0d3c46fe1b42038d97ef042dcb11cd"><li>现在，我们只需阅读客户的请求...</li></ul><ul class="notion-list notion-list-disc notion-block-cabbec92610c447ebeb3296a91e7f69b"><li>…并将其转发到上游。</li></ul><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-4d2e7d93196f4d7f8ac1492237b28cec" data-id="4d2e7d93196f4d7f8ac1492237b28cec"><span><div id="4d2e7d93196f4d7f8ac1492237b28cec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4d2e7d93196f4d7f8ac1492237b28cec" title="四.透明的HTTPS"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四.<b><b>透明的HTTPS</b></b></span></span></h4><div class="notion-text notion-block-911a47d1f19144179e42b62529fc41e0">第一步是确定我们是否应将传入连接视为<code class="notion-inline-code">HTTPS</code>。这样做的机制很简单-我们使用路由机制找出原始目标端口是什么。所有传入的连接都通过不同的层，这些层可以确定要使用的实际协议。通过在每个连接的开头查找<code class="notion-inline-code">ClientHello</code>消息，自动<code class="notion-inline-code">TLS</code>检测可用于<code class="notion-inline-code">SSLv3，TLS 1.0，TLS 1.1</code>和<code class="notion-inline-code">TLS 1.2</code>。这独立于所使用的TCP端口起作用。</div><div class="notion-text notion-block-5fcfe8e68b2b44759ad3846ba41415fa">从这里开始，该过程是我们描述的透明代理<code class="notion-inline-code">HTTP</code>和<code class="notion-inline-code">显式代理HTTPS</code>方法的合并。我们使用路由机制来建立上游服务器地址，然后像进行显式<code class="notion-inline-code">HTTPS</code>连接一样建立<code class="notion-inline-code">CN和SAN</code>，并处理<code class="notion-inline-code">SNI</code>。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-f46e7efef69d4019b4cb0545808885c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:572px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F0b953596-6e34-43e2-a702-412ee2cb9973%2FUntitled.png?table=block&amp;id=f46e7efe-f69d-4019-b4cb-0545808885c1&amp;t=f46e7efe-f69d-4019-b4cb-0545808885c1&amp;width=572&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ul class="notion-list notion-list-disc notion-block-ad2aeb6b4e7f446b94a693d2028d1b9d"><li>客户端与服务器建立连接。</li></ul><ul class="notion-list notion-list-disc notion-block-e50cde5ce68f4899836f1fab690cd72d"><li>路由器将连接重定向到<code class="notion-inline-code">mitmproxy</code>，后者通常在同一主机的本地端口上侦听。然后，<code class="notion-inline-code">Mitmproxy</code>会咨询路由机制以建立原始目的地。</li></ul><ul class="notion-list notion-list-disc notion-block-d9259ba3f94c492b94860cfdc70bed63"><li>客户端认为它正在与远程服务器通信，并启动<code class="notion-inline-code">TLS</code>连接。它使用<code class="notion-inline-code">SNI</code>指示要连接的主机名。</li></ul><ul class="notion-list notion-list-disc notion-block-71d9e829a20d47118ca2e44345a4daaf"><li><code class="notion-inline-code">Mitmproxy</code>连接到服务器，并使用客户端指示的<code class="notion-inline-code">SNI</code>主机名建立<code class="notion-inline-code">TLS</code>连接。</li></ul><ul class="notion-list notion-list-disc notion-block-16423f1dab4a4d2a9fa37528a9bcc741"><li>服务器以匹配的证书作为响应，该证书包含生成拦截证书所需的<code class="notion-inline-code">CN和SAN值</code>。</li></ul><ul class="notion-list notion-list-disc notion-block-3451a49cea68488e91dc82934f47c821"><li><code class="notion-inline-code">Mitmproxy</code>生成拦截证书，并继续在步骤3中暂停的客户端<code class="notion-inline-code">TLS</code>握手。</li></ul><ul class="notion-list notion-list-disc notion-block-c85d8696b4f944f79b556062044e0d77"><li>客户端通过已建立的<code class="notion-inline-code">TLS</code>连接发送请求。</li></ul><ul class="notion-list notion-list-disc notion-block-11c38452b633476b987278ee76b7c406"><li><code class="notion-inline-code">Mitmproxy</code>通过在步骤4中启动的<code class="notion-inline-code">TLS</code>连接将请求传递到服务器。</li></ul><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-a22866a6b7e84f45a5cf24ce3ec8ae66" data-id="a22866a6b7e84f45a5cf24ce3ec8ae66"><span><div id="a22866a6b7e84f45a5cf24ce3ec8ae66" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a22866a6b7e84f45a5cf24ce3ec8ae66" title="Mitmproxy 安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mitmproxy 安装</span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-37d74a05f3604edf8c3ce821354a1e28" data-id="37d74a05f3604edf8c3ce821354a1e28"><span><div id="37d74a05f3604edf8c3ce821354a1e28" class="notion-header-anchor"></div><a class="notion-hash-link" href="#37d74a05f3604edf8c3ce821354a1e28" title="PIP 安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PIP 安装</span></span></h4><div class="notion-text notion-block-6a9563d05e544c1abea74e3eaf20aaef">最简单的安装方式还是使用pip，直接执行如下命令即可安装：</div><div class="notion-text notion-block-eb855e21cee245188c3d41748a18f64d">这是最简单和通用的安装方式，执行完毕之后即可完成mitmproxy的安装，另外还附带安装了mitmdump和mitmweb这两个组件。如果不想用这种方式安装，也可以选择后面列出的专门针对各个平台的安装方式或者Docker安装方式。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-b3df3e3b425d459b9bcb09087c1e696d" data-id="b3df3e3b425d459b9bcb09087c1e696d"><span><div id="b3df3e3b425d459b9bcb09087c1e696d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b3df3e3b425d459b9bcb09087c1e696d" title="Windows下的安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Windows下的安装</span></span></h4><div class="notion-text notion-block-369c55109bd44b02964e581b0b35c2a5">可以到GitHub上的Releases页面（链接为：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/mitmproxy/mitmproxy/releases/">https://github.com/mitmproxy/mitmproxy/releases/</a>）获取安装包，如图1-59所示。</div><div class="notion-text notion-block-5b0ff492d2ef43d29bb808ef2240e728">图1-59 下载页面</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-25ddfff6b605499f95b71d1e943a2937"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F069cf254-50dc-40be-8c46-392df176c963%2FUntitled.png?table=block&amp;id=25ddfff6-b605-499f-95b7-1d1e943a2937&amp;t=25ddfff6-b605-499f-95b7-1d1e943a2937&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-61e5223b163d4ece93816f97e870d243"> </div><div class="notion-text notion-block-3f6e9052a2784323b125346ac7b4521b">比如，当前的最新版本为10.3.0，则可以选择下载Windows下的exe安装包mitmproxy-10.3.0-windows-installer.exe，下载后直接双击安装包即可安装。</div><div class="notion-text notion-block-059050ba253341a48ecf12a775d78250">注意，在Windows上不支持mitmproxy的控制台接口，但是可以使用mitmdump和mitmweb。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-87ebadb0222343c69b41299fa86ee836" data-id="87ebadb0222343c69b41299fa86ee836"><span><div id="87ebadb0222343c69b41299fa86ee836" class="notion-header-anchor"></div><a class="notion-hash-link" href="#87ebadb0222343c69b41299fa86ee836" title="Mac 下安装"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mac 下安装</span></span></h4><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-64187388e7604ff19a666d0ef319a3d3" data-id="64187388e7604ff19a666d0ef319a3d3"><span><div id="64187388e7604ff19a666d0ef319a3d3" class="notion-header-anchor"></div><a class="notion-hash-link" href="#64187388e7604ff19a666d0ef319a3d3" title="Mitmproxy 使用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Mitmproxy 使用</span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-44c0dd9dc2614e1ab0fe5009e892165e" data-id="44c0dd9dc2614e1ab0fe5009e892165e"><span><div id="44c0dd9dc2614e1ab0fe5009e892165e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#44c0dd9dc2614e1ab0fe5009e892165e" title="一.启动服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一.启动服务</span></span></h4><div class="notion-text notion-block-b7173fbeaa5d480c95d79b6c1969f474">输入以下命令</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-b57a7a2f0a7b44e8a2b1b564f23791a6" data-id="b57a7a2f0a7b44e8a2b1b564f23791a6"><span><div id="b57a7a2f0a7b44e8a2b1b564f23791a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b57a7a2f0a7b44e8a2b1b564f23791a6" title="二.配置代理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二.配置代理</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-a9f7f2f4c8da44209048b12507bd365f"><li>获取电脑IP</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-d938c91c1a7340568a663bf889d630ef"><li>配置代理</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2a9773ee7ec6476d991c6bbcf6c95ee6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F31cffecf-4009-4f14-9ae9-778330435353%2FUntitled.png?table=block&amp;id=2a9773ee-7ec6-476d-991c-6bbcf6c95ee6&amp;t=2a9773ee-7ec6-476d-991c-6bbcf6c95ee6&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-ff9f446499b944e2b5e21d59e02406a8" data-id="ff9f446499b944e2b5e21d59e02406a8"><span><div id="ff9f446499b944e2b5e21d59e02406a8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ff9f446499b944e2b5e21d59e02406a8" title="三.配置证书"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">三.配置证书</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-5b0058996d084330a674d8cbc6eb7450"><li>在 Safari 地址栏输入 mitm.it</li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e29baa301fac4bcbba9bfe19a688921a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F1fc4e9ae-af43-4a65-8855-66420a3a0861%2FUntitled.png?table=block&amp;id=e29baa30-1fac-4bcb-ba9b-fe19a688921a&amp;t=e29baa30-1fac-4bcb-ba9b-fe19a688921a&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ol start="1" class="notion-list notion-list-numbered notion-block-603da4f394c147fb9759dec88995a12e"><li>点击 <code class="notion-inline-code">Get mitmproxy-ca-cert.pem</code> 下载证书</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-31b8d85bab9846db8541c20e7268dff2"><li>设置 - 通用 - VPN 与设备管理 - 安装证书</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-7b48ea3522204e3081448115c0e405d7"><li>设置 - 通用 - 关于本机 - 证书信任设置 - 勾选 mitmproxy</li></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-a348250079e14fde9332e2f2340be053" data-id="a348250079e14fde9332e2f2340be053"><span><div id="a348250079e14fde9332e2f2340be053" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a348250079e14fde9332e2f2340be053" title="四.网络抓包"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">四.网络抓包</span></span></h4><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0e22d867d3db466a8ca0a3d3ba8cec09"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F84a0256d-0580-4276-9f4e-e7f4e4d2f4b2%2FUntitled.png?table=block&amp;id=0e22d867-d3db-466a-8ca0-a3d3ba8cec09&amp;t=0e22d867-d3db-466a-8ca0-a3d3ba8cec09&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2c90c99a61084b879597d7d9562edf9a" data-id="2c90c99a61084b879597d7d9562edf9a"><span><div id="2c90c99a61084b879597d7d9562edf9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c90c99a61084b879597d7d9562edf9a" title="五.Mitmproxy 命令行方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">五.Mitmproxy 命令行方式</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-7de1e418cccc4b9a8d08c88aa2cfc148" data-id="7de1e418cccc4b9a8d08c88aa2cfc148"><span><div id="7de1e418cccc4b9a8d08c88aa2cfc148" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7de1e418cccc4b9a8d08c88aa2cfc148" title="六.Docker 中抓包"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">六.Docker 中抓包</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-1d332890e4ab41888154f2e93e4ab09e"><li>下载证书: mitm.it</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-43f6c7af676143aeb378358a86d8fd55"><li>复制证书到docker</li><ol class="notion-list notion-list-numbered notion-block-43f6c7af676143aeb378358a86d8fd55"></ol></ol><div class="notion-text notion-block-cacd18d89f08440fab348bc1034da837">3.登录容器<div class="notion-text-children"></div></div><ol start="1" class="notion-list notion-list-numbered notion-block-a8365d6005a24868a8acc85b27c24d82"><li>复制证书到对应目录</li><ol class="notion-list notion-list-numbered notion-block-a8365d6005a24868a8acc85b27c24d82"></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1927cb163eea42db883f8bd55f6d8037"><li>安装证书</li><ol class="notion-list notion-list-numbered notion-block-1927cb163eea42db883f8bd55f6d8037"></ol></ol><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-964b1c925af34f5294e6ba968659edfd" data-id="964b1c925af34f5294e6ba968659edfd"><span><div id="964b1c925af34f5294e6ba968659edfd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#964b1c925af34f5294e6ba968659edfd" title="七.代码抓包"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">七.代码抓包</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-76f95aaafe844530aab71f4fd37fe720"><li>下载证书: mitm.it</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-43bdec6babfc4c6ea2a8633418436b49"><li>将证书移动到公用文件夹, /opt/homebrew/etc/openssl@1.1</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-83d6e0fbd0a64d018fba8cf2eb4af420"><li>PHP 抓包, 修改 php.ini</li><ol class="notion-list notion-list-numbered notion-block-83d6e0fbd0a64d018fba8cf2eb4af420"></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-a7f43998823c467492c885432b348d9a"><li>NodeJS 抓包,导入全局变量</li><ol class="notion-list notion-list-numbered notion-block-a7f43998823c467492c885432b348d9a"></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-556ccc3f819f4302bf173abcdd5aa302" data-id="556ccc3f819f4302bf173abcdd5aa302"><span><div id="556ccc3f819f4302bf173abcdd5aa302" class="notion-header-anchor"></div><a class="notion-hash-link" href="#556ccc3f819f4302bf173abcdd5aa302" title="常用技巧"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">常用技巧</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-85c4bbfb0a7048e1a7e2d5697a722e16"><li><b>功能页面说明</b></li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e56fc5382afb4f178a0116286943ecbd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F53d210ee-85d5-4041-98eb-0088ec5fd222%2FUntitled.png?table=block&amp;id=e56fc538-2afb-4f17-8a01-16286943ecbd&amp;t=e56fc538-2afb-4f17-8a01-16286943ecbd&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-5af892124f524c06ac364d8e9b9e60c8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F8b05e1fa-bba8-433b-b0ec-68dc3eb101e2%2FUntitled.png?table=block&amp;id=5af89212-4f52-4c06-ac36-4d8e9b9e60c8&amp;t=5af89212-4f52-4c06-ac36-4d8e9b9e60c8&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2ed799342264422f88550b4821496e5f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F95b62423-95be-43a5-a982-0babf60c5b10%2FUntitled.png?table=block&amp;id=2ed79934-2264-422f-8855-0b4821496e5f&amp;t=2ed79934-2264-422f-8855-0b4821496e5f&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-98685bfc7e0f4e15acf4299c31e2f02f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fc0f9b73f-2ad6-40b3-8e80-bd5b4f89c1e9%2FUntitled.png?table=block&amp;id=98685bfc-7e0f-4e15-acf4-299c31e2f02f&amp;t=98685bfc-7e0f-4e15-acf4-299c31e2f02f&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-35bf5b93880d40c799844c2b4d493387"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fab241042-f188-469c-961c-df615105ae70%2FUntitled.png?table=block&amp;id=35bf5b93-880d-40c7-9984-4c2b4d493387&amp;t=35bf5b93-880d-40c7-9984-4c2b4d493387&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-bb275f565fc643949bb696ea96c0fb6e">2.<b>快捷键</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-46788fb2039c4263a081ee8796e4be18"><li><b>数据包过滤</b></li></ol><div class="notion-text notion-block-89f7904e2e984e0cab994fde4bcbcbd4">当有很多数据包请求时，我们需要对数据包进行筛选。在界面中输入f，根据匹配规则进行筛选即可。如筛选所有域名blog.bbskali.cn的请求，我们需要输入规则~d <a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://blog.bbskali.cn/">blog.bbskali.cn</a></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-9cb81b835ce547a8a52f5a090cba603d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:684px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Ffc010aa0-eb19-410b-96f4-105d02f546b6%2FUntitled.png?table=block&amp;id=9cb81b83-5ce5-47a8-a52f-5a090cba603d&amp;t=9cb81b83-5ce5-47a8-a52f-5a090cba603d&amp;width=684&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ol start="1" class="notion-list notion-list-numbered notion-block-828db5b440764d61af9c68a57d7e46a8"><li><b>常用过滤表达式</b></li></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4610880635b2493d8f829ce585ca8375"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F79bdfac8-53d7-4051-8cae-813e032c5d69%2FUntitled.png?table=block&amp;id=46108806-35b2-493d-8f82-9ce585ca8375&amp;t=46108806-35b2-493d-8f82-9ce585ca8375&amp;width=1184&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-5b40210a5183471a872bd4a1493b27e2" data-id="5b40210a5183471a872bd4a1493b27e2"><span><div id="5b40210a5183471a872bd4a1493b27e2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5b40210a5183471a872bd4a1493b27e2" title="📎 参考文章"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📎 参考文章</span></span></h2><ul class="notion-list notion-list-disc notion-block-31067445ac81486ebc76481d96d2b0c8"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.mitmproxy.org/">mitmproxy 官网</a></li></ul><ul class="notion-list notion-list-disc notion-block-392dfa07104d4b27aed7b0b519c796ad"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://docs.mitmproxy.org/stable/">mitmproxy 官方文档</a></li></ul><ul class="notion-list notion-list-disc notion-block-5cedce487ee9439c97201da873af5f3f"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://docs.mitmproxy.org/stable/addons-examples/">mitmproxy 官方脚本 demo</a></li></ul><ul class="notion-list notion-list-disc notion-block-09beb527aed34f9ea1938ac41ad2ec4a"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://docs.mitmproxy.org/stable/concepts-filters/">常用过滤方式</a></li></ul><div class="notion-blank notion-block-b59a033293624af9a45d936e32dca587"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[白话讲解ChatGPT实现原理]]></title>
            <link>https://kaishu.i9x.cn//article/6944b841-9f9c-4b41-bdb1-10baad718e78.html</link>
            <guid>https://kaishu.i9x.cn//article/6944b841-9f9c-4b41-bdb1-10baad718e78.html</guid>
            <pubDate>Sun, 14 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[想要理解大型语言模型ChatGPT，却被复杂的技术语言难倒？这篇文章以白话的方式，详细讲解了ChatGPT的工作原理，让你即便是技术小白，也能轻松掌握。来看看吧，你也可以成为AI语言模型的行家！]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-6944b8419f9c4b41bdb110baad718e78"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-6f503b0e48e6452e959f9c6e82407885" data-id="6f503b0e48e6452e959f9c6e82407885"><span><div id="6f503b0e48e6452e959f9c6e82407885" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6f503b0e48e6452e959f9c6e82407885" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h3><div class="notion-text notion-block-56a9752cccfd493dbf38eb84425b31e8">大语言模型是一种强大的工具，但很少有人了解它们如何工作。通常，我们知道它们可以预测下一个词，但具体细节却像个谜。这是因为它们的开发方式与传统软件截然不同,为计算机提供明确的逐步的指令。大语言模型不是由人类编写的，而是建立在数十亿个词汇的神经网络上。因此，即使是专家也不完全理解其内部工作原理。研究人员正在努力理解这些模型，但这是一个漫长的过程。凯叔的目标是以易懂的方式向大众解释这些模型的工作原理，而不涉及复杂的技术术语或高级数学。</div><hr class="notion-hr notion-block-8126efb956d64036b427efcbb941835a"/><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-6cfb155fb76b457faa8af075add2b4ec" data-id="6cfb155fb76b457faa8af075add2b4ec"><span><div id="6cfb155fb76b457faa8af075add2b4ec" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6cfb155fb76b457faa8af075add2b4ec" title="常见名词解释"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">常见名词解释</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-23fb3752256741c8983d2e0757b86c5b"><li><b>🔠 Token（标记）</b>：就像书中的字一样，文本数据的最小单元。例如，一本书中的每个字就是一个标记。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-a1db34e87244412ab1858b3a436412ea"><li><b>🔢 Vector（向量）</b>：可以想象成是一种编码方式，就像每个词都有一个数字表示(注:GPT-3最强大的版本使用了有12,288个纬度的词向量，也就是说每一个词由一个包含了12,288个数字序列表示)。比如，我们可以用一个向量来表示一个水果的特征，如[红色, 圆形, 甜味]。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-9351702bb77549fb82046648420421e3"><li><b>🌌 词空间（Word Space）</b>：词空间是指将词语映射到向量空间中的过程，其中每个词都用一个向量来表示，这些向量之间的距离和角度反映了词语之间的语义关系。在自然语言处理中，词空间是表示词语语义的重要工具，常用于词语相似度计算、文本分类、信息检索等任务中。</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-9902cc065a604c529668d8021d79f1a8"><li><b>🎯 Embedding（嵌入）</b>：就像把一个水果放在特定的盒子里一样，用来表示词语在向量空间中的位置和含义。例如，将单词“苹果”嵌入到一个向量空间中，使得其在该空间中与其他水果的位置和关系能够被准确表示。</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-379b6429d5cb4efab5a845b946844385"><li><b>🧠 Attention（注意力）</b>：就像是在聊天中更加关注对方说的重要信息一样，在模型中表示词语在上下文中的重要性。比如，在阅读一段文字时，我们会更加关注一些关键词，这些关键词就像是引起我们注意力的焦点。</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-471689e2b0a744e18a65a56d5aa946c8"><li><b>🛠 Encoder（编码器）</b>：就像是把一段对话录入到计算机中一样，用来将输入文本序列编码成连续向量表示的部分。例如，在自动回复消息的应用中，编码器负责将接收到的消息转换成计算机能够理解的向量表示。</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-f05999f048f74620b24a0d46bfbe48ea"><li><b>🖥 Decoder（解码器）</b>：就像是把计算机的回复翻译成自然语言一样，用来将连续向量表示解码成输出文本序列的部分。比如，在聊天机器人中，解码器负责将计算机生成的向量表示翻译成自然语言文本并回复给用户。</li></ol><ol start="8" class="notion-list notion-list-numbered notion-block-4dbc3150006d4334bc59424e6b88c9aa"><li><b>🔄 Transformer（变换器）</b>：就像是一种处理信息的机器，可以处理大量的文本数据。比如，我们可以将变换器比作一个文本编辑器，可以处理大量的文字信息并进行编辑、排版等操作。</li></ol><ol start="9" class="notion-list notion-list-numbered notion-block-202d62ad4517498aa91b46627edabe17"><li><b>🔧 Fine-tuning（微调）</b>：就像是给一辆汽车进行调整，使其更适合特定的道路和环境一样，通过在预训练模型上进行额外训练，使其适应特定任务或领域。例如，将预训练的语言模型在特定领域进行微调，以提高其在该领域的性能。</li></ol><ol start="10" class="notion-list notion-list-numbered notion-block-a41bc2beee984488ab8a48ad34959839"><li><b>💡 Generation（生成）</b>：就像是一台智能写作机器，可以根据输入的提示生成相应的文本。比如，输入“写一篇关于夏天的短文”，模型可以生成一篇关于夏天的描述性文章。</li></ol><ol start="11" class="notion-list notion-list-numbered notion-block-59b275156cfc4558b5950d7cc06289ae"><li><b>💬 Prompt（提示）</b>：就像是对话中提出的问题一样，用于向 ChatGPT 模型提供初始文题，以启动文本生成过程。例如，在与聊天机器人交流时，用户提出的问题就是提示。</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-96b0fffe673549e2bb0e5300248b3487" data-id="96b0fffe673549e2bb0e5300248b3487"><span><div id="96b0fffe673549e2bb0e5300248b3487" class="notion-header-anchor"></div><a class="notion-hash-link" href="#96b0fffe673549e2bb0e5300248b3487" title="ChatGPT 开发难点"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ChatGPT 开发难点</span></span></h3><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-0f8844a2c8c44d66bfee1babaf6f7128"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F8d776db8-0d8f-4e5c-b988-86aba68684b4%2FUntitled.png?table=block&amp;id=0f8844a2-c8c4-4d66-bfee-1babaf6f7128&amp;t=0f8844a2-c8c4-4d66-bfee-1babaf6f7128&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><ol start="1" class="notion-list notion-list-numbered notion-block-0baab81770e948a9b06bc472e70f9434"><li><b>🔍 理解词的语境</b>：模型需要准确理解词语在不同语境下的含义。例如，在描述天气时，“大雨”在夏季可能表示清凉的天气，但在冬季可能表示寒冷的天气。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-a1eed91c01ed4eb0bf37a92f4d6500f5"><li><b>🧩 处理复杂的语法结构</b>：自然语言具有多种语法结构，模型需要能够处理这些复杂结构。比如，在复合句中，模型需要正确区分主句和从句，并理解它们之间的逻辑关系。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-2d60f7149cbc4386a9b1fb2353eb47e5"><li><b>🤔 处理歧义和模糊性</b>：语言中常常存在歧义和模糊性，模型需要能够根据上下文进行推断。例如，“他看着她走”中的“她”可能指的是任何一个女性或者是上下文中的一个角色,这个在自然语言中我们就需要根据上下文需要确定具体指代的是谁。</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-b4d21839f056490daf3ec473b89204f4"><li><b>🌐 长距离依赖建模</b>：模型需要能够捕捉句子中远距离词语之间的关系。例如，在描述一部小说情节时，模型需要能够理解前文中提到的角色和事件，并将其与后文进行连接，以推测剧情发展。</li></ol><ol start="5" class="notion-list notion-list-numbered notion-block-997fff2518694d32bf6b31a0ed90b001"><li><b>💻 数据量和计算资源</b>：训练一个强大的语言模型需要大量数据和计算资源。例如，如果要训练一个能够生成优质文本的 ChatGPT 模型，就需要大量的文本语料和高性能的GPU。</li></ol><ol start="6" class="notion-list notion-list-numbered notion-block-9ed08f6aca7147d7bc6015b139fc5f75"><li><b>🛡️ 避免过拟合</b>：模型需要避免在训练数据上表现良好但在测试数据上表现不佳的情况。例如，训练一个用于自动文摘的模型时，需要确保模型在处理新文本时能够准确地提取重要信息，而不是简单地复制训练样本的内容。</li></ol><div class="notion-text notion-block-dd58b7dacc46402bb3603cf852c069d1">ChatGPT 在处理语言时面临多个挑战。首先，它需要理解词语的语境，以准确理解用户的意图。例如，当用户说“今天好热啊”，ChatGPT 需要理解“热”指的是温度高，而不是受到的夸奖。其次，模型必须处理复杂的语法结构，正确区分主语、谓语和宾语。例如，当用户询问“谁是莎士比亚作品中最著名的角色？”时，ChatGPT 需要识别并回答问题。此外，模型还需要处理歧义和模糊性，根据上下文推断含义。长距离依赖建模是另一个挑战，ChatGPT 需要捕捉句子中远距离词语之间的关系。最后，训练一个强大的语言模型需要大量数据和计算资源，同时需要避免过拟合。通过克服这些难点，ChatGPT 能够生成准确、流畅的文本，满足用户的需求。</div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-24116e8e39b64eb48c095ec58867843d" data-id="24116e8e39b64eb48c095ec58867843d"><span><div id="24116e8e39b64eb48c095ec58867843d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#24116e8e39b64eb48c095ec58867843d" title="模型实现逻辑推理"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模型实现逻辑推理</span></span></h3><div class="notion-text notion-block-c1a3d3890c3b46538605bddcab26964b">在传统软件的设计中数据处理是明确的，比如:让计算器处理 5+6，关于2,加号,3的含义都不存在歧义问题。但是，自然语言中的歧义远不止于同义词和多义词。比如：今天好热,我吃了一个热狗。</div><div class="notion-text notion-block-a783a526190a4ce78fe0b265c6911584">里面的热到底是很热情还是天气好热，热狗到底是个名词还是一个动词？在现实中人们可以根据上下文来解决歧义。但是，并没有一个简单或明确的规则。相反这就需要一个理解关于这个世界的实际情况，你要知道我们吃的东西是热狗,热狗也不会飞行。词向量为大语言模型提供了一个灵活的方式，用来在特定的上下文中表示不同的含义。</div><div class="notion-text notion-block-23fdab3a4d6045b7a82de2d6ca35ef41">ChatGPT 3版本是由数十个神经网络层组成的，因为输入文本中的每一个词会对应一个向量。所以神经网络中的每一层都会接受一系列的向量作为输入并添加一些信息来帮助澄清这个词的含义(<b>注：神经网络中的每一层都扮演着不同的角色，就像一个加工工厂中的不同部门一样。输入层接收原始材料，隐藏层负责加工和提取特征，输出层产出最终产品。举个例子，想象一家糖果工厂，输入层就像是原材料的接收站，将糖浆、糖粉等转换为机器可处理的格式。隐藏层就像是生产线上的各个工序，一层一层地处理原材料，提取出颜色、形状等特征。最后，输出层就像是包装部门，将加工好的糖果包装成最终的产品，准备出售。这样，每一层都在神经网络中承担着重要的角色，共同完成任务</b>)。从而更好的来预测接下来可能出来的词。例如，基于前文，模型可能会预测下一个词是“苹果”，因为通常人们在谈论食物时会使用“吃”这个词。这样，通过多个神经网络层的处理，ChatGPT能够理解输入文本的语义并生成连贯的文本回复。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-55a57cf8810d416894defee74907b035"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:600px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fc289c375-b7a0-4ad8-bd23-2e1b4a760805%2FUntitled.png?table=block&amp;id=55a57cf8-810d-4168-94de-fee74907b035&amp;t=55a57cf8-810d-4168-94de-fee74907b035&amp;width=600&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-bb5e5ace367e4f99ac367c88a0c8e257" data-id="bb5e5ace367e4f99ac367c88a0c8e257"><span><div id="bb5e5ace367e4f99ac367c88a0c8e257" class="notion-header-anchor"></div><a class="notion-hash-link" href="#bb5e5ace367e4f99ac367c88a0c8e257" title="模型的计算方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">模型的计算方式</span></span></h3><div class="notion-text notion-block-2305020a48dd41e586e48a891843a4af">需要早期的机器学习算法都需要人工标记示例来实现监督学习，比如：训练数据需要带动物的照片来训练。这使得训练强大的模型这件事变得困难而且贵,目前的创新之处在于不需要显示的标记数据了，他们尝试通过预测文本段落中的下一个单词来学习几乎任何的书面材料都可以用来训练这些模型从网站内容,代码等等(注:ChatGPT 3学习了很多的文本来并且调整了文本关系的权重值,使得预测更加的准确)。例如：我要洗澡,第一次使用这个热水器哪我就需要不停的调整阀门并用水来感知温度是不是刚刚好；但是在生成模型中，首先你想象一下有50万个水龙头。每个水龙头对应着一个不同的单词，我的目标是只让与序列中的下一个单词相对应的水龙头里出水。其次水龙头后面有一大堆互连的管道。并且这一堆的管道中还有一堆的阀门，如果水从错误的水龙头流出来了；你不能只调整出水的这个水龙头，而是要派一个机器人去追踪沿途的管道并对错误的阀门进行调整。这样就变得很复杂了，需要仔细思考如何确定要拧紧还是松开哪些阀门。这些如果人类来理解就变的复杂，但是计算机可以并且确实在以这种规模在运行。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-d886a8c34fb142f79de9c57ff3b69d57"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fee64c417-1ead-4c5d-b809-b12f25838faa%2FUntitled.png?table=block&amp;id=d886a8c3-4fb1-42f7-9de9-c57ff3b69d57&amp;t=d886a8c3-4fb1-42f7-9de9-c57ff3b69d57&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-197e6e4788d04f04a06cf79279caf11f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F8b365eb1-86b1-4a4c-b3c8-556cc1bae9a4%2FUntitled.png?table=block&amp;id=197e6e47-88d0-4f04-a06c-f79279caf11f&amp;t=197e6e47-88d0-4f04-a06c-f79279caf11f&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-c764d06fc7464835a81f0ab0f4ccf685"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F958543fe-2bd2-4327-83cf-83874ed510d5%2FUntitled.png?table=block&amp;id=c764d06f-c746-4835-a81f-0ab0f4ccf685&amp;t=c764d06f-c746-4835-a81f-0ab0f4ccf685&amp;width=1500&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-7528537d57ee4b0ebcf69e9d837a9f80" data-id="7528537d57ee4b0ebcf69e9d837a9f80"><span><div id="7528537d57ee4b0ebcf69e9d837a9f80" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7528537d57ee4b0ebcf69e9d837a9f80" title="向量数据库"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">向量数据库</span></span></h3><div class="notion-text notion-block-bd0f202357654e9ca2aa666c98af0bbe"><b>向量数据库介绍:</b></div><div class="notion-text notion-block-42d09834b87d4be4a49792eca136f8f7">向量数据库中的向量指的是具有多个数值组成的数学对象。这些数值可以代表任何东西，例如文本、图像、声音等。向量数据库将这些向量存储在一起，并使用它们之间的相似度来进行搜索和分析。</div><div class="notion-text notion-block-6c1e446c5a73408fb4621f67afe3ce8f">举个生活中的例子来理解向量数据库，假设你有一个音乐收藏的向量数据库。每首歌曲都可以表示为一个向量，其中每个维度代表着歌曲的特征，比如歌曲的流行程度、节奏、旋律等。当你想要找到与某首歌曲相似的其他歌曲时，向量数据库会通过计算这些向量之间的相似度来帮助你找到最相似的歌曲。这就像是在一个多维空间中寻找相似的点，而这些点就是我们的音乐向量</div><hr class="notion-hr notion-block-66af6a27a6214e2288b30686c98c7731"/><div class="notion-text notion-block-4bf112f843f24253a34ed12dcc2b62de"><b>实例讲解: </b></div><div class="notion-text notion-block-75abc315d4d24ea1a910e2482e3eff22">以下《图片一》有很多狗，我们如何来找到他们对应的名称？在我们现实生活中如果要快速区分出狗的名称，肯定就需要更多维度的特征来进行区别，例如体型大小但是拉布拉多和金毛的体型比较接近《图片二》，哪我们就需要其他的特性来区分比如毛发每个狗都对应了一个二维图坐标点《图片三》这样就很容易的区分出了拉布拉多和金毛。但是，还是不能区分出德国牧羊犬和罗威纳犬。依据上面的经验哪我们需要一个思维坐标点鼻子，来根据其他的类型区分《图片四》；虽然作为三维生物我们没法在四维上做图，但是在坐标点上就很容易实现我们向后追加比如毛发，腿的粗壮度等等《图片五》；不仅是狗世界上所有的事物都可以用这种坐标点来表达，不同的事物在不同的特征都有不同的表现和特征，以及不同的数值所以最终都会在一个高纬的特征空间中用一个坐标点来表示也就是在更大的特点内我们就需要一个更高的维度对事物进行区分《图片六》；可能几百几千甚至上万，但由于我们无法作出超出三维的图，所以后续我们用二维图形来描述。 </div><div class="notion-text notion-block-b77404cd5666488795c8449ad24200fb">图片一：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-bd0259b0242c4609844f1e80f566d4fa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F8a4441a8-3e75-4849-92b8-f83cf82fd0a7%2FUntitled.png?table=block&amp;id=bd0259b0-242c-4609-844f-1e80f566d4fa&amp;t=bd0259b0-242c-4609-844f-1e80f566d4fa&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-deafb6f18a774bd4b8fff17ae626a2a9">图片二: </div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-f866c5322b4c466995aa243d7e061f0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F11a32510-08d0-45fb-add9-c33cf9151b2d%2FUntitled.png?table=block&amp;id=f866c532-2b4c-4669-95aa-243d7e061f0e&amp;t=f866c532-2b4c-4669-95aa-243d7e061f0e&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-5babb54a0843428caba5a27112321fea">图片三：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-dc3de6c60a40430380ff723033b8af54"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fee4c961d-9be4-4c82-981d-d2608a388eb6%2FUntitled.png?table=block&amp;id=dc3de6c6-0a40-4303-80ff-723033b8af54&amp;t=dc3de6c6-0a40-4303-80ff-723033b8af54&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-9f037937195c4fbb937ec22233691cf2">图片四：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-03de3fc50d2944d4bfdf4d1faeac71de"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F73fa2b9c-2520-44cc-9e36-6b17f1f14ddc%2FUntitled.png?table=block&amp;id=03de3fc5-0d29-44d4-bfdf-4d1faeac71de&amp;t=03de3fc5-0d29-44d4-bfdf-4d1faeac71de&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-124434c9b41d47e2acfae53e11366beb">图片五：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-42c09d8f7c334768ba7403e1df847386"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fe6f1da6b-c75c-43a4-bba6-89d978be12b0%2FUntitled.png?table=block&amp;id=42c09d8f-7c33-4768-ba74-03e1df847386&amp;t=42c09d8f-7c33-4768-ba74-03e1df847386&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-0f3ce2c320a141a5b74e5d883fbfe88f">图片六：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-7977c0d3b43f4a7b90c9f1f9d76a8594"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Ff4a38bc2-97c6-4ab0-82bc-f65ee9dd00e5%2FUntitled.png?table=block&amp;id=7977c0d3-b43f-4a7b-90c9-f1f9d76a8594&amp;t=7977c0d3-b43f-4a7b-90c9-f1f9d76a8594&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-a287ef2b754945ddbb45effd6a031230"> </div><hr class="notion-hr notion-block-b0ae560480a1448ba1c7ac71842adae4"/><div class="notion-text notion-block-82e7fc77eaaa4027aa46097abd4de2af">如图片七所示, 警察减去小偷的向量与猫和老鼠向减的值非常接近；那样我们以图搜图或以视频搜索视频就很容易实现；如果对文字做向量化，哪我们就可以通过输入问题找到相近答案；今年来我们对词汇进行向量化，也就是ChatGPT的应用场景；我们根据输入问答问题又ChatGPT找出我们最想的得到的答案《图片八》；</div><div class="notion-text notion-block-5ce425235e6442108e7560caaa611f22">图片七：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-34b78fd58ead4499a97549c257cdae6f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F45446a73-b43b-46a4-ac69-9373bf224774%2FUntitled.png?table=block&amp;id=34b78fd5-8ead-4499-a975-49c257cdae6f&amp;t=34b78fd5-8ead-4499-a975-49c257cdae6f&amp;width=3432&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-36c756e66ab7405aa15264ea1513c785">图片八：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2291b25a2ec8436fa8ee3faef933c67d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F190b6386-c7d5-4343-ae85-b19e4bd9ad5c%2FUntitled.png?table=block&amp;id=2291b25a-2ec8-436f-a8ee-3faef933c67d&amp;t=2291b25a-2ec8-436f-a8ee-3faef933c67d&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-97c1d4f03b85469c9eed8a6b2b31a960" data-id="97c1d4f03b85469c9eed8a6b2b31a960"><span><div id="97c1d4f03b85469c9eed8a6b2b31a960" class="notion-header-anchor"></div><a class="notion-hash-link" href="#97c1d4f03b85469c9eed8a6b2b31a960" title="总结归纳"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结归纳</span></span></h2><div class="notion-text notion-block-d5b3710203684ea5bca6d69a5d930d6c">ChatGPT是一个基于数十亿词汇神经网络的大语言模型，其开发方式与传统软件截然不同。模型需要理解词语的语境，处理复杂的语法结构，处理歧义和模糊性，捕捉句子中远距离词语之间的关系，并需要大量数据和计算资源。其实现逻辑推理的主要方式是通过词向量在特定的上下文中表示不同的含义。模型的计算方式是通过预测文本段落中的下一个单词来学习，几乎所有的书面材料都可以用来训练模型。虽然人类难以理解其复杂的计算过程，但计算机可以并且确实在大规模运行。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-c134ae0a21a2499aa8e2f5d93e327dfd" data-id="c134ae0a21a2499aa8e2f5d93e327dfd"><span><div id="c134ae0a21a2499aa8e2f5d93e327dfd" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c134ae0a21a2499aa8e2f5d93e327dfd" title="📎 参考文章"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📎 参考文章</span></span></h2><ul class="notion-list notion-list-disc notion-block-7d62e96c571341bba1e75bb73b252443"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://openai.com/blog/chatgpt/">ChatGPT 简写</a></li></ul><ul class="notion-list notion-list-disc notion-block-1b0a8a5cbeb94a079ebcd7cfb6ba6f3c"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://openai.com/blog/instruction-following/">调整语言模型以遵循指令</a></li></ul><ul class="notion-list notion-list-disc notion-block-9a76fa1a5ec2456db8c76d4f6fda8c08"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.inside.com.tw/article/30032-chatgpt-possible-4-steps-training">ChatGPT 如何炼成</a></li></ul><div class="notion-blank notion-block-87ee3ae86cf94d2d9afc414e458e5511"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用Vercel反向代理]]></title>
            <link>https://kaishu.i9x.cn//article/354ecdfe-53e4-4988-b0b7-c6e52ff82139.html</link>
            <guid>https://kaishu.i9x.cn//article/354ecdfe-53e4-4988-b0b7-c6e52ff82139.html</guid>
            <pubDate>Sun, 21 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Vercel 的代理能力允许用户轻松访问被墙或受限制的内容，从而免去了科学上网的需求。通过 Vercel 的全球分布式网络，用户可以在不同地区的服务器上部署应用程序，实现内容的分发和加速。这意味着用户可以利用 Vercel 的代理功能，将内容托管在世界各地的服务器上，并通过 Vercel 提供的 CDN（内容分发网络）来加速内容的传输，同时绕过地理限制和网络审查。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-354ecdfe53e44988b0b7c6e52ff82139"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-4a7fbe24fa834b9c837085f933944fd9" data-id="4a7fbe24fa834b9c837085f933944fd9"><span><div id="4a7fbe24fa834b9c837085f933944fd9" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4a7fbe24fa834b9c837085f933944fd9" title="Vercel 是什么?"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Vercel 是什么?</b></span></span></h3><div class="notion-text notion-block-e78ac3289e964f7f8d73b317f5b36b7e">Vercel 是一个面向开发人员的平台，旨在简化部署和托管现代 Web 应用程序的过程。它最初是作为一个名为 &quot;Now&quot; 的静态站点托管服务启动的，后来发展成为一个更全面的部署平台。Vercel 支持各种类型的应用程序，包括静态网站、单页面应用、服务端渲染应用等，而且提供了简单易用的工具和界面，帮助开发者将他们的应用程序快速部署到全球各地的服务器上。Vercel 还与 Git 和 GitHub 等版本控制系统集成，使得部署过程更加自动化和流畅。</div><div class="notion-text notion-block-26fd09540aaa40ebbea56d348b76e788">使用 vercel 能为我们带来什么？关于 vercel 能力优势，这里我根据我个人使用体验简单罗列：</div><ul class="notion-list notion-list-disc notion-block-d04d6cd6ff4347ec9eee2df62143e35c"><li>个人版永久免费，每个月 100G 带宽（别人访问你的项目所耗费的流量），个人项目部署完全够用，需要注意的是团队模式收费，所以要协作你只能付费。</li></ul><ul class="notion-list notion-list-disc notion-block-a6bdb838402d4d7a953637a19835573c"><li>内置 CI CD，你可以理解成一个黑盒，项目丢进去，只需要将项目导入 vercel ，一句命令自动部署。</li></ul><ul class="notion-list notion-list-disc notion-block-ae102c75e6ec40979f7c68dcd8344929"><li>因为内置构建流程，支持代码推送、PR 自动触发构建，不同分支唯一地址，方便测试。</li></ul><ul class="notion-list notion-list-disc notion-block-fdcca85af8b14ca0aae55f17327887f0"><li>支持本地、测试、生产三种环境部署，仅仅是命令区别，上手成本极低。</li></ul><ul class="notion-list notion-list-disc notion-block-42d2ebb70fa948119ae641c64cb89d38"><li>丰富的集成能力，项目部署自动监控，端到端自动化测试等等，当然这些并并属于 vercel 自身的能力，但它可以为你提供集成入口，让这些成为你自动部署中自动进行的一步，比如构建生产后自动完成性能指标输出，自动化测试，以及后续项目监控等等。</li></ul><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0771bd43b7894e56952d34d0dd9ef8ff" data-id="0771bd43b7894e56952d34d0dd9ef8ff"><span><div id="0771bd43b7894e56952d34d0dd9ef8ff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0771bd43b7894e56952d34d0dd9ef8ff" title="部署方式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">部署方式</span></span></h3><div class="notion-text notion-block-10f6b1ed35e44485a2b832add53fc505"><b>部署前准备账户</b><div class="notion-text-children"><ol start="1" class="notion-list notion-list-numbered notion-block-c2710cd4763b4bcdaf8721dd9f879d83"><li>开通 Github 账户:</li></ol><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-104bf42270f549e589ce62adeb75f19c" href="https://github.com/signup?return_to=https://github.com/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F&amp;source=header-home&amp;source=login"><div><div class="notion-bookmark-title">GitHub</div><div class="notion-bookmark-description">GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://github.com/fluidicon.png?t=104bf422-70f5-49e5-89ce-62adeb75f19c" alt="GitHub" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://github.com/signup?return_to=https://github.com/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F&amp;source=header-home&amp;source=login</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://github.githubassets.com/assets/github-logo-55c5b9a1fe52.png?t=104bf422-70f5-49e5-89ce-62adeb75f19c" alt="GitHub" loading="lazy" decoding="async"/></div></a></div><ol start="1" class="notion-list notion-list-numbered notion-block-db6caf96758842f6afc53b6527cd85b3"><li>开通 Vercel 账户: </li></ol><div class="notion-row"><a target="_blank" rel="noopener noreferrer" class="notion-bookmark notion-block-14ba429a70534ceb9707ec3012a53ba7" href="https://vercel.com/"><div><div class="notion-bookmark-title">Vercel: Build and deploy the best Web experiences with The Frontend Cloud</div><div class="notion-bookmark-description">Vercel&#x27;s Frontend Cloud gives developers the frameworks, workflows, and infrastructure to build a faster, more personalized Web.</div><div class="notion-bookmark-link"><div class="notion-bookmark-link-icon"><img src="https://assets.vercel.com/image/upload/front/favicon/vercel/180x180.png?t=14ba429a-7053-4ceb-9707-ec3012a53ba7" alt="Vercel: Build and deploy the best Web experiences with The Frontend Cloud" loading="lazy" decoding="async"/></div><div class="notion-bookmark-link-text">https://vercel.com/</div></div></div><div class="notion-bookmark-image"><img style="object-fit:cover" src="https://assets.vercel.com/image/upload/contentful/image/e5382hct74si/4JmubmYDJnFtstwHbaZPev/23caf8c05363419bb2b94c6c53299cb0/og-dark.png?t=14ba429a-7053-4ceb-9707-ec3012a53ba7" alt="Vercel: Build and deploy the best Web experiences with The Frontend Cloud" loading="lazy" decoding="async"/></div></a></div></div></div><div class="notion-text notion-block-d19a31196ec14a7a8df52643d124d835"><b>部署步骤</b><div class="notion-text-children"><ol start="1" class="notion-list notion-list-numbered notion-block-384b6a7497cd4b58b77ca34db2496022"><li>访问仓库地址: </li></ol><ol start="1" class="notion-list notion-list-numbered notion-block-5672f025f89241e69204ee1cf97514f0"><li>点击界面中的 Deploy</li><ol class="notion-list notion-list-numbered notion-block-5672f025f89241e69204ee1cf97514f0"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-94f74dab27804240ac76b4b1e494d915"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F2957872b-a7c5-4921-9b75-56bdad8c07b2%2FUntitled.png?table=block&amp;id=94f74dab-2780-4240-ac76-b4b1e494d915&amp;t=94f74dab-2780-4240-ac76-b4b1e494d915&amp;width=657.5&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-4a8ee33a20bb495c960fa54cb5e81fe4"><li>跳转到 Vercel 创建项目</li><ol class="notion-list notion-list-numbered notion-block-4a8ee33a20bb495c960fa54cb5e81fe4"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-4cfcca8e4ed24834b1c1f75f9a8ae3b4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F8ecc86a5-fa20-428a-9f31-683755ceed3c%2FUntitled.png?table=block&amp;id=4cfcca8e-4ed2-4834-b1c1-f75f9a8ae3b4&amp;t=4cfcca8e-4ed2-4834-b1c1-f75f9a8ae3b4&amp;width=3402&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-752b981c36ad49e094f2ede767776c9d"><li>填入自己的 Github 项目已经 Reposito Name 创建项目</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-06cc7494c7df4444be97354d1b07c81a"><li>添加自己的域名地址</li><ol class="notion-list notion-list-numbered notion-block-06cc7494c7df4444be97354d1b07c81a"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-f7fb42950f7642608728d15be8dfdf0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F914cca96-b41b-4993-9ca0-cc706b2520ba%2FUntitled.png?table=block&amp;id=f7fb4295-0f76-4260-8728-d15be8dfdf0e&amp;t=f7fb4295-0f76-4260-8728-d15be8dfdf0e&amp;width=657.5&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-ad5856d7dc8545dc873331910ee3abdf"><li>域名解析，添加下图中的 CNAME 信息到域名管理中进行解析</li><ol class="notion-list notion-list-numbered notion-block-ad5856d7dc8545dc873331910ee3abdf"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-5e1df31b88c649aa8b0787ca8b4d779c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fcf3b4c45-eaf6-4e8b-a360-b78ef66d0d83%2FUntitled.png?table=block&amp;id=5e1df31b-88c6-49aa-8b07-87ca8b4d779c&amp;t=5e1df31b-88c6-49aa-8b07-87ca8b4d779c&amp;width=2098&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-5adab27d9d8748989e869acee694ee97"><li>访问方式: 访问<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://xn--siqv1a12i0te8ojzoi8qgiy8akpv.com/proxy/www.google.com/search?q=vercel-reverse-proxy">https://替换为你自己的域名.com/proxy/www.google.com/search?q=vercel-reverse-proxy</a> 实际上会替换为<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.google.com/search?q=vercel-reverse-proxy">https://www.google.com/search?q=vercel-reverse-proxy</a></li></ol><div class="notion-blank notion-block-3167e7dce91c4d14913d18db0e4d9ee2"> </div></div></div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[不再求人,快速充值ChatGPT]]></title>
            <link>https://kaishu.i9x.cn//article/aacf3c73-d6b5-4b8d-bb07-cbe90a01dce4.html</link>
            <guid>https://kaishu.i9x.cn//article/aacf3c73-d6b5-4b8d-bb07-cbe90a01dce4.html</guid>
            <pubDate>Fri, 01 Dec 2023 00:00:00 GMT</pubDate>
            <description><![CDATA[ChatGPT 目前无需注册已可以免费使用, 你还在为充值 OpenAI接口或开通 ChatGPT 4.0 烦恼嘛？ 恭喜你，本次教程将带领大家快速解决以上问题…..]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-aacf3c73d6b54b8dbb07cbe90a01dce4"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-4411b81955ff40b299d0e8c203486356">ChatGPT 目前无需注册已可以免费使用, 你还在为充值 OpenAI接口或开通 ChatGPT 4.0 烦恼嘛？ 恭喜你，本次教程将带领大家快速解决以上问题,能提供以下服务：</div><ol start="1" class="notion-list notion-list-numbered notion-block-9c1dc7482e1841a48d0feb3fa58baeef"><li>为用户提供海外手机号</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-093a60119f3a4e6297059d1b075b4fc6"><li>为用户提供真实的美国账单地址</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-76c5d38df54140bfbc9b676d5685db7f"><li>为用户提供真实的美国国家IP地址</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-eb1d7293d19949f5b7d9ba6667d85fe5"><li>支持支付宝和云闪付充值,避免外海限制</li></ol><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-3ff2d29ef5eb4bf5a224056782ef910b" data-id="3ff2d29ef5eb4bf5a224056782ef910b"><span><div id="3ff2d29ef5eb4bf5a224056782ef910b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3ff2d29ef5eb4bf5a224056782ef910b" title="WildCard 教程"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">WildCard 教程</span></span></h3><div class="notion-text notion-block-06f4b7d6bca945778c5cf68d431ea6e2">国内的一个技术团队为了解决自身要大量使用OpenAI的服务所开发的一个方案，目前只能通过邀请方式注册，大家可以通过我的邀请码来进行注册: <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://bewildcard.com/i/KAISHU">https://bewildcard.com/i/KAISHU</a> 同时注册成功也能节省2美元的卡开费用(目前开发费用是:9.9美金,预估70人名币根据汇率会变动);</div><ol start="1" class="notion-list notion-list-numbered notion-block-06e3870a2baa4709af604cdbb40f76ce"><li>注册账户, 输入国内手机号验证码方式注册</li><ol class="notion-list notion-list-numbered notion-block-06e3870a2baa4709af604cdbb40f76ce"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-e2467fdd5ae8472592fe9d0859514397"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fced6e472-9e10-4d05-99e8-cff1292faf08%2FUntitled.png?table=block&amp;id=e2467fdd-5ae8-4725-92fe-9d0859514397&amp;t=e2467fdd-5ae8-4725-92fe-9d0859514397&amp;width=450&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-107126d324394046902e88b35b18c24e"><li>绑定开卡，开卡界面通过支付宝支付后就开卡成功</li><ol class="notion-list notion-list-numbered notion-block-107126d324394046902e88b35b18c24e"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-98b9089f2ea344e2aeac509d80855ae6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F77150d14-9229-4ee8-84ac-85536b3f9628%2FUntitled.png?table=block&amp;id=98b9089f-2ea3-44e2-aeac-509d80855ae6&amp;t=98b9089f-2ea3-44e2-aeac-509d80855ae6&amp;width=450&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-096291febd1e4f65b036d59bd6896fd0"><li>ChatGPT 绑定虚拟信用卡</li><ol class="notion-list notion-list-numbered notion-block-096291febd1e4f65b036d59bd6896fd0"><li>访问chatGPT地址: <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://platform.openai.com/settings/organization/billing/overview">https://platform.openai.com/settings/organization/billing/overview</a> </li><li>添加信用卡</li><ol class="notion-list notion-list-numbered notion-block-0aafebd5045844879e35face9d8a60aa"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-cf5161501a414cb8aadac9440c26d6bd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F51533b90-a5da-436c-8f47-84d9da2342e6%2FUntitled.png?table=block&amp;id=cf516150-1a41-4cb8-aada-c9440c26d6bd&amp;t=cf516150-1a41-4cb8-aada-c9440c26d6bd&amp;width=422&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol><li>选择个人卡，并且填入虚拟信用卡信息</li><ol class="notion-list notion-list-numbered notion-block-c7266b06bf364fe8b137048d85229fee"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a95dab5324b0461491e3bfd2cab9f526"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F5e076ebd-3c9d-41da-87d3-2434999a1ce2%2FUntitled.png?table=block&amp;id=a95dab53-24b0-4614-91e3-bfd2cab9f526&amp;t=a95dab53-24b0-4614-91e3-bfd2cab9f526&amp;width=422&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol><li>填入充值金额进行充值</li><ol class="notion-list notion-list-numbered notion-block-a4a427e3cdcf4909978126bc2b5cd80b"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a2a3eb537f724cd883252e85e11d4763"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fbca5f687-3927-4323-802b-cead242832fb%2FUntitled.png?table=block&amp;id=a2a3eb53-7f72-4cd8-8325-2e85e11d4763&amp;t=a2a3eb53-7f72-4cd8-8325-2e85e11d4763&amp;width=422&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol><li>充值成功</li><ol class="notion-list notion-list-numbered notion-block-29e2936613c34447affee5e97acc0123"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-c9460e171bfa44ab961b7ee012b6ec42"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F57bf6098-b534-4515-bb92-ee24968d79a9%2FUntitled.png?table=block&amp;id=c9460e17-1bfa-44ab-961b-7ee012b6ec42&amp;t=c9460e17-1bfa-44ab-961b-7ee012b6ec42&amp;width=422&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-4861ba826bba44ac907fb8acd2fbc98f"><li>海外手机号，用来接收海外短信</li><ol class="notion-list notion-list-numbered notion-block-4861ba826bba44ac907fb8acd2fbc98f"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a2de553fb7b44e79a334529390b43b06"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2F526199d5-dba1-4313-8792-25e2db7ae0c0%2FUntitled.png?table=block&amp;id=a2de553f-b7b4-4e79-a334-529390b43b06&amp;t=a2de553f-b7b4-4e79-a334-529390b43b06&amp;width=450&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-7480497e721742b9a47bbb89b2614ba4"><li>海外网络，通过海外网络来访问解决科学上网问题</li><ol class="notion-list notion-list-numbered notion-block-7480497e721742b9a47bbb89b2614ba4"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-6b7c518451d34b099943d0200573f111"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Faf83e63d-d0f6-40f3-8e15-cf523bd85bb0%2FUntitled.png?table=block&amp;id=6b7c5184-51d3-4b09-9943-d0200573f111&amp;t=6b7c5184-51d3-4b09-9943-d0200573f111&amp;width=450&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><div class="notion-blank notion-block-5c26c03a2bdd42c08f2858535a651398"> </div><div class="notion-text notion-block-d9f24e8f6fd743c89eb20430445b9b08">如果在上述操作过程中遇到问题，请随时联系我。我可以提供进一步的帮助和指导，以解决你的疑问或困难。</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chrome 安装插件]]></title>
            <link>https://kaishu.i9x.cn//article/26241c8d-46b7-4acd-9c58-7aaec343a3ba.html</link>
            <guid>https://kaishu.i9x.cn//article/26241c8d-46b7-4acd-9c58-7aaec343a3ba.html</guid>
            <pubDate>Wed, 10 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[Chrome插件是一种可通过Chrome浏览器安装的软件，用于增强浏览器功能和用户体验。它们可以添加新的功能、修改网页内容、提供快捷操作等。例如，广告拦截插件可以阻止网页上的广告显示，密码管理器插件可以帮助用户管理登录凭据，而屏幕截图插件可以方便用户快速截取网页内容。总的来说，Chrome插件可以根据用户的需求和偏好，定制化地扩展浏览器的功能，提升浏览和工作效率。]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-26241c8d46b74acd9c587aaec343a3ba"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-baece732539948249df4b4e7dea61298" data-id="baece732539948249df4b4e7dea61298"><span><div id="baece732539948249df4b4e7dea61298" class="notion-header-anchor"></div><a class="notion-hash-link" href="#baece732539948249df4b4e7dea61298" title="Chrome 手动安装插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>Chrome 手动安装插件</b></span></span></h2><div class="notion-text notion-block-b4542a0fa020411ea34b315610af2514">下载 Chrome 插件压缩包并解压(不能科学上网用户)<div class="notion-text-children"><ol start="1" class="notion-list notion-list-numbered notion-block-cd787e220f36448fa8f8094fd7de60a0"><li>国内下载地址:<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://crxdl.com/">https://crxdl.com/</a></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-fb1eb75b2f2745f69148dfee370ec3c6"><li>输入名称搜索下载</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-5a43fe75fa2f41bab9eb6dee8e9f5455"><li>解压安装包</li></ol></div></div><div class="notion-text notion-block-9608deefc9c442eb9aeff47017a47efe">在 Chrome 浏览器地址栏输入 <b>chrome://extensions/</b>，进入插件管理界面，打开「开发者模式」</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-a5080879f5a64c24812d5b8de82e6c2a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Feb30ae55-5636-4c3d-8ef9-1c10fad8f8ae%2FUntitled.png?table=block&amp;id=a5080879-f5a6-4c24-812d-5b8de82e6c2a&amp;t=a5080879-f5a6-4c24-812d-5b8de82e6c2a&amp;width=3374&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-4ed0f24cf75246b88739637d8cde5de0">拖拽之前解压得到的文件夹到浏览器的插件管理界面上即可安装成功</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-82ec501fbd4549839178a7353756f215"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F1d28835d-630c-4211-9154-289ea7fe1c27%2Fab41f369-f515-4d11-8807-7779ac92b155%2FUntitled.png?table=block&amp;id=82ec501f-bd45-4983-9178-a7353756f215&amp;t=82ec501f-bd45-4983-9178-a7353756f215&amp;width=708&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-45ecefac2e15429b8e7ac841df99db06"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-0ce12fd69955431a852ec60556f499cc" data-id="0ce12fd69955431a852ec60556f499cc"><span><div id="0ce12fd69955431a852ec60556f499cc" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0ce12fd69955431a852ec60556f499cc" title="自动安装插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">自动安装插件</span></span></h3><div class="notion-text notion-block-2cca6e985280438889e7fe9add4ade08">参考官网链接:<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://support.google.com/chrome_webstore/answer/2664769?hl=zh-Hans">https://support.google.com/chrome_webstore/answer/2664769?hl=zh-Hans</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-ec698156676c4d6c859890ddafaef564" data-id="ec698156676c4d6c859890ddafaef564"><span><div id="ec698156676c4d6c859890ddafaef564" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ec698156676c4d6c859890ddafaef564" title="总结归纳"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">总结归纳</span></span></h2><div class="notion-text notion-block-7e8a8a1790694ba38223b09254eb9a2f">Chrome插件是一种可通过Chrome浏览器安装的软件，用于增强浏览器功能和用户体验。它们可以添加新的功能、修改网页内容、提供快捷操作等。例如，广告拦截插件可以阻止网页上的广告显示，密码管理器插件可以帮助用户管理登录凭据，而屏幕截图插件可以方便用户快速截取网页内容。总的来说，Chrome插件可以根据用户的需求和偏好，定制化地扩展浏览器的功能，提升浏览和工作效率。</div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>