{"id":250,"date":"2025-12-15T05:20:33","date_gmt":"2025-12-14T21:20:33","guid":{"rendered":"https:\/\/blog.ecve.cn\/?p=250"},"modified":"2026-06-23T09:11:55","modified_gmt":"2026-06-23T01:11:55","slug":"%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/","title":{"rendered":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8be5\u8bbe\u7f6e\u80fd\u8ba9\u4e00\u4e9b\u6d41\u91cf\u8ba1\u8d39\u6a21\u5f0f\u7684\u670d\u52a1\u5668\u88ab\u6076\u610f\u653b\u51fb\u65f6\u63d0\u4f9b\u6d41\u91cf\u6d41\u51fa\u8fc7\u91cf\u4fdd\u62a4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 \/usr\/local\/bin\/monitor.sh\u521b\u5efa\u811a\u672c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\n# \u914d\u7f6e\u53c2\u6570\nINTERFACE=\"ens5\"          # \u4fee\u6539\u6210\u4f60\u8981\u76d1\u542c\u7684\u7f51\u5361\u540d\u79f0\uff08\u4f7f\u7528 ip a \u547d\u4ee4\u67e5\u8be2\uff09\nTHRESHOLD_MB=500          # \u8bbe\u7f6e\u9608\u503c\uff0c\u5355\u4f4d MB\uff0c\u6839\u636e\u5e26\u5bbd\u586b\u5199\nINTERVAL=3                # \u91c7\u6837\u95f4\u9694\uff08\u79d2\uff09\nWINDOW_SEC=60             # \u65f6\u95f4\u7a97\u53e3\uff08\u79d2\uff09\n\n# \u8ba1\u7b97\u7a97\u53e3\u5185\u9700\u8981\u7684\u91c7\u6837\u70b9\u6570\nWINDOW_SIZE=$(( WINDOW_SEC \/ INTERVAL ))\nTHRESHOLD_BYTES=$(( THRESHOLD_MB * 1024 * 1024 ))\n\n# \u521d\u59cb\u5316\u6ed1\u52a8\u7a97\u53e3\u6570\u7ec4\u548c\u603b\u6d41\u91cf\u53d8\u91cf\ndeclare -a tx_history\nindex=0\ntotal_tx=0\n\n# \u83b7\u53d6\u6307\u5b9a\u7f51\u5361\u5f53\u524d\u7684\u4e0a\u4f20\u5b57\u8282\u6570\nget_tx_bytes() {\n    awk -v iface=\"$INTERFACE:\" '$1 == iface {print $10}' \/proc\/net\/dev\n}\n\n# \u83b7\u53d6\u521d\u59cb\u4e0a\u4f20\u5b57\u8282\u6570\nprev_tx=$(get_tx_bytes)\nif &#91;&#91; -z \"$prev_tx\" ]]; then\n    echo \"Error: Interface $INTERFACE not found.\"\n    exit 1\nfi\n\necho \"Monitoring upload on $INTERFACE. Threshold: ${THRESHOLD_MB} MB in ${WINDOW_SEC}s.\"\n\nwhile true; do\n    sleep $INTERVAL\n    \n    current_tx=$(get_tx_bytes)\n    if &#91;&#91; -z \"$current_tx\" ]]; then\n        echo \"Interface $INTERFACE disappeared. Exiting.\"\n        exit 1\n    fi\n    \n    if (( current_tx >= prev_tx )); then\n        diff=$(( current_tx - prev_tx ))\n    else\n        diff=$(( (2**64 - prev_tx) + current_tx ))\n    fi\n    \n    # \u6ed1\u52a8\u7a97\u53e3\u7b97\u6cd5\n    if (( ${#tx_history&#91;@]} >= WINDOW_SIZE )); then\n        old_val=${tx_history&#91;$index]}\n        total_tx=$(( total_tx - old_val ))\n    fi\n    \n    tx_history&#91;$index]=$diff\n    total_tx=$(( total_tx + diff ))\n    prev_tx=$current_tx\n    index=$(( (index + 1) % WINDOW_SIZE ))\n    \n    # \u5224\u65ad\u662f\u5426\u8d85\u9608\u503c\n    if (( total_tx >= THRESHOLD_BYTES )); then\n        echo \"$(date): Upload threshold exceeded (${total_tx} bytes >= ${THRESHOLD_BYTES}). Shutting down...\"\n        \/sbin\/shutdown -h now \"Upload limit exceeded on $INTERFACE\"\n        exit 0\n    fi\n    \n    # \u8c03\u8bd5\u8f93\u51fa\uff08\u53d6\u6d88\u6ce8\u91ca\u53ef\u67e5\u770b\u5b9e\u65f6\u6d41\u91cf\uff09\n    # echo \"Current ${WINDOW_SEC}s upload: $((total_tx \/ 1024 \/ 1024)) MB\"\ndone\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e\u81ea\u5df1\u9700\u6c42\u4fee\u6539\u4ee5\u4e0a\u53c2\u6570\u3002\u8be5\u4ee3\u7801\u53ea\u7edf\u8ba1\u6d41\u51fa\u6d41\u91cf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6267\u884c<code>sudo chmod +x \/usr\/local\/bin\/monitor.sh<\/code> \u6388\u6743<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa <code>\/etc\/systemd\/system\/monitor.service<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription= \u76d1\u63a7\u7f51\u5361\u4e0a\u4f20\u60c5\u51b5\uff0c\u82e5\u8d85\u51fa\u9608\u503c\u5219\u5173\u9e21\nAfter=network.target\n\n&#91;Service]\nType=simple\nExecStart=\/usr\/local\/bin\/monitor.sh\nRestart=on-failure\nRestartSec=10\n\n&#91;Install]\nWantedBy=multi-user.target\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u542f\u52a8<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo systemctl daemon-reexec<br>sudo systemctl enable --now <code>monitor.service<\/code><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770b\u65e5\u5fd7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>journalctl -u monitor -f<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5efa\u8bae\u90e8\u7f72\u540e\u8fdb\u884c\u6d4b\u8bd5\u3002\u628a<code>THRESHOLD_MB=300 <\/code>\u53c2\u6570\u6539\u5c0f\u7136\u540e\u4e0b\u8f7d\u5927\u4e8e\u8be5\u6570\u503c\u7684\u6587\u4ef6\u67e5\u770b\u670d\u52a1\u5668\u662f\u5426\u5173\u673a\u3002\u5173\u673a\u540e\u542f\u52a8\u4e86\u518d\u5c1d\u8bd5\u4e00\u6b21\u4e0b\u8f7d\u786e\u4fdd\u811a\u672c\u80fd\u81ea\u542f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u914d\u5907\u63a2\u9488\u4e4b\u7c7b\u7684\u5de5\u5177\u534f\u52a9\u67e5\u770b\u603b\u4f53\u6d41\u91cf\u4f7f\u7528\u60c5\u51b5\uff0c\u63a8\u8350\u4f7f\u7528nezha\u9762\u677f\uff0c\u540e\u53f0\u53ef\u4ee5\u914d\u7f6e\u4e00\u4e9b\u6307\u4ee4\u548c\u4fe1\u606f\u7edf\u8ba1\uff0c\u8be6\u60c5\u81ea\u5df1\u6478\u7d22<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u4e3a\u8bbe\u7f6e\u4e00\u4e2a\u81ea\u7136\u6708\u91cc\u4f7f\u7528\u6d41\u91cf\u5230\u8fbe\u9608\u503c\u81ea\u52a8\u5173\u673a\uff0c\u9632\u6b62\u534a\u591c\u91cc\u5361\u7740\u7b56\u7565\u4e0a\u9650gank<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5b89\u88c5 vnstat<\/strong>\u548cjq<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo apt install vnstat -y\nsudo apt install jq -y <\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u59cb\u5316\uff08\u5047\u8bbe\u7f51\u5361\u540d\u4e3a eth0\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo vnstat -i eth0   #\u540d\u5b57\u81ea\u5df1\u7528ip a\u547d\u4ee4\u67e5\u8be2<\/code><br><br><em># \u542f\u7528\u670d\u52a1<\/em><br><code>sudo systemctl enable vnstat<br>sudo systemctl start vnstat<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9a8c\u8bc1 vnstat \u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>vnstat -i \u7f51\u5361\u540d -m # \u67e5\u770b\u7edf\u8ba1<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa\u811a\u672c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/local\/bin\/check_tx_limit.sh<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5165\u4ee5\u4e0b\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n\nif &#91; ! -f \/run\/tx_monitor_enabled ]; then\n    exit 0\nfi\n\nINTERFACE=\"ens5\"          # \u7f51\u5361\u540d\nTHRESHOLD_MB=200000          # \u9608\u503c \u5355\u4f4d\uff1aMB\nLOGFILE=\"\/var\/log\/tx_monitor.log\"\n\nTX_BYTES=$(vnstat -i \"$INTERFACE\" --json | jq -r '.interfaces&#91;0].traffic.month&#91;0].tx' 2&gt;\/dev\/null)\n\nif &#91; -z \"$TX_BYTES\" ] || ! &#91;&#91; \"$TX_BYTES\" =~ ^&#91;0-9]+$ ]]; then\n    echo \"$(date): &#91;WARN] Failed to get valid TX data for $INTERFACE (got: '$TX_BYTES')\" &gt;&gt; \"$LOGFILE\"\n    exit 0\nfi\n\nTX_MB=$(( TX_BYTES \/ 1000000 ))\n\necho \"$(date): Current TX this month = ${TX_MB} MB (threshold: ${THRESHOLD_MB} MB)\" &gt;&gt; \"$LOGFILE\"\n\nif &#91; \"$TX_MB\" -ge \"$THRESHOLD_MB\" ]; then\n    echo \"$(date): TX limit exceeded! Shutting down...\" &gt;&gt; \"$LOGFILE\"\n    \/sbin\/shutdown -h now \"Monthly upload limit reached on $INTERFACE.\"\nfi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">(\u53ea\u7edf\u8ba1\u6d41\u51fa\u6d41\u91cf)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6388\u6743<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/usr\/local\/bin\/check_tx_limit.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbe\u7f6e\u6bcf10\u5206\u949f\u6267\u884c\uff08root cron\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo crontab -e<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5165\u4ee5\u4e0b\u89c4\u5219<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">*\/<code>10 * * * * \/usr\/local\/bin\/check_tx_limit.sh &gt;\/dev\/null 2&gt;&amp;1<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u987a\u5e8f\u4e3a \u5206 \u65f6 \u65e5 \u6708 \u661f\u671f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">nano\u6307\u4ee4\uff1actrl+o\u4fdd\u5b58\uff08\u56de\u8f66\u786e\u8ba4\uff09 ctrl+x\u9000\u51fa<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u624b\u52a8\u8fd0\u884c\u811a\u672c\u6d4b\u8bd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo \/usr\/local\/bin\/check_tx_limit.sh<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u770b\u65e5\u5fd7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>tail -f \/var\/log\/tx_monitor.log<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u811a\u672c\u4e2d\u52a0\u4e86\u4e00\u4e2a\u542f\u7528\u6807\u5fd7\u6587\u4ef6\uff0c\u53ea\u6709\u8be5\u6587\u4ef6\u5b58\u5728\u65f6\u624d\u68c0\u67e5\u6d41\u91cf\u5e76\u5173\u673a\uff0c\u9632\u6b62\u5f00\u673a\u5c31\u5173\u673a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u542f\u7528\u76d1\u63a7\u65f6\uff0c\u624b\u52a8\u521b\u5efa\u6807\u5fd7\u6587\u4ef6\uff08\u9700 root\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo touch \/run\/tx_monitor_enabled<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\u91cd\u542f\u540e<code>\/run\/tx_monitor_enabled<\/code>&nbsp;\u4f1a\u81ea\u52a8\u6d88\u5931<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u81ea\u52a8\u6d88\u5931 \u2192 \u811a\u672c\u4e0d\u518d\u751f\u6548 \u2192&nbsp;\u4e0d\u4f1a\u56e0\u6d41\u91cf\u5173\u673a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u9700\u518d\u6b21\u542f\u7528\uff0c\u5fc5\u987b\u624b\u52a8\u91cd\u65b0\u521b\u5efa\u6807\u5fd7\u6587\u4ef6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8be5\u8bbe\u7f6e\u80fd\u8ba9\u4e00\u4e9b\u6d41\u91cf\u8ba1\u8d39\u6a21\u5f0f\u7684\u670d\u52a1\u5668\u88ab\u6076\u610f\u653b\u51fb\u65f6\u63d0\u4f9b\u6d41\u91cf\u6d41\u51fa\u8fc7\u91cf\u4fdd\u62a4 &nbsp; \u5728 \/usr\/local\/b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u4e0a\u4f20\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE\" \/>\n<meta property=\"og:description\" content=\"\u8be5\u8bbe\u7f6e\u80fd\u8ba9\u4e00\u4e9b\u6d41\u91cf\u8ba1\u8d39\u6a21\u5f0f\u7684\u670d\u52a1\u5668\u88ab\u6076\u610f\u653b\u51fb\u65f6\u63d0\u4f9b\u6d41\u91cf\u6d41\u51fa\u8fc7\u91cf\u4fdd\u62a4 &nbsp; \u5728 \/usr\/local\/b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u4e0a\u4f20\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\/\" \/>\n<meta property=\"og:site_name\" content=\"ECVE\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-14T21:20:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-23T01:11:55+00:00\" \/>\n<meta name=\"author\" content=\"lazy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"lazy\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/\"},\"author\":{\"name\":\"lazy\",\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#\\\/schema\\\/person\\\/86b6744a58f8026efbaa2e113899d907\"},\"headline\":\"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\",\"datePublished\":\"2025-12-14T21:20:33+00:00\",\"dateModified\":\"2026-06-23T01:11:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/\"},\"wordCount\":35,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#\\\/schema\\\/person\\\/86b6744a58f8026efbaa2e113899d907\"},\"articleSection\":[\"\u811a\u672c\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/\",\"url\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/\",\"name\":\"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#website\"},\"datePublished\":\"2025-12-14T21:20:33+00:00\",\"dateModified\":\"2026-06-23T01:11:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/2025\\\/12\\\/15\\\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/blog.ecve.cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#website\",\"url\":\"https:\\\/\\\/blog.ecve.cn\\\/\",\"name\":\"ECVE\",\"description\":\"\u79cd\u4e00\u68f5\u6811\u6700\u597d\u7684\u65f6\u95f4\u662f\u5341\u5e74\u524d\uff0c\u5176\u6b21\u662f\u73b0\u5728\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#\\\/schema\\\/person\\\/86b6744a58f8026efbaa2e113899d907\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.ecve.cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.ecve.cn\\\/#\\\/schema\\\/person\\\/86b6744a58f8026efbaa2e113899d907\",\"name\":\"lazy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g\",\"caption\":\"lazy\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g\"},\"sameAs\":[\"https:\\\/\\\/blog.ecve.cn\"],\"url\":\"https:\\\/\\\/blog.ecve.cn\\\/index.php\\\/author\\\/luosxn\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u4e0a\u4f20\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE","og_description":"\u8be5\u8bbe\u7f6e\u80fd\u8ba9\u4e00\u4e9b\u6d41\u91cf\u8ba1\u8d39\u6a21\u5f0f\u7684\u670d\u52a1\u5668\u88ab\u6076\u610f\u653b\u51fb\u65f6\u63d0\u4f9b\u6d41\u91cf\u6d41\u51fa\u8fc7\u91cf\u4fdd\u62a4 &nbsp; \u5728 \/usr\/local\/b [&hellip;]","og_url":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u4e0a\u4f20\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565\/","og_site_name":"ECVE","article_published_time":"2025-12-14T21:20:33+00:00","article_modified_time":"2026-06-23T01:11:55+00:00","author":"lazy","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"lazy","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/#article","isPartOf":{"@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/"},"author":{"name":"lazy","@id":"https:\/\/blog.ecve.cn\/#\/schema\/person\/86b6744a58f8026efbaa2e113899d907"},"headline":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565","datePublished":"2025-12-14T21:20:33+00:00","dateModified":"2026-06-23T01:11:55+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/"},"wordCount":35,"commentCount":2,"publisher":{"@id":"https:\/\/blog.ecve.cn\/#\/schema\/person\/86b6744a58f8026efbaa2e113899d907"},"articleSection":["\u811a\u672c"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/","url":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/","name":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565 - ECVE","isPartOf":{"@id":"https:\/\/blog.ecve.cn\/#website"},"datePublished":"2025-12-14T21:20:33+00:00","dateModified":"2026-06-23T01:11:55+00:00","breadcrumb":{"@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ecve.cn\/index.php\/2025\/12\/15\/%e4%b8%ba%e4%bd%a0%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%ae%be%e7%bd%ae%e6%b5%81%e9%87%8f%e4%b8%8a%e4%bc%a0%e8%be%be%e5%88%b0%e9%98%88%e5%80%bc%e5%85%b3%e6%9c%ba%e7%ad%96%e7%95%a5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.ecve.cn\/"},{"@type":"ListItem","position":2,"name":"\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u6d41\u91cf\u6d41\u51fa\u8fbe\u5230\u9608\u503c\u5173\u673a\u7b56\u7565"}]},{"@type":"WebSite","@id":"https:\/\/blog.ecve.cn\/#website","url":"https:\/\/blog.ecve.cn\/","name":"ECVE","description":"\u79cd\u4e00\u68f5\u6811\u6700\u597d\u7684\u65f6\u95f4\u662f\u5341\u5e74\u524d\uff0c\u5176\u6b21\u662f\u73b0\u5728","publisher":{"@id":"https:\/\/blog.ecve.cn\/#\/schema\/person\/86b6744a58f8026efbaa2e113899d907"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.ecve.cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.ecve.cn\/#\/schema\/person\/86b6744a58f8026efbaa2e113899d907","name":"lazy","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g","caption":"lazy"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/77417895f2f8bc36c050fdae191af2723e91a4f04b3270ac17fbf275db43a610?s=96&d=identicon&r=g"},"sameAs":["https:\/\/blog.ecve.cn"],"url":"https:\/\/blog.ecve.cn\/index.php\/author\/luosxn\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":0,"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ecve.cn\/index.php\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}