{"id":1083,"date":"2026-11-01T02:04:45","date_gmt":"2026-10-31T18:04:45","guid":{"rendered":"https:\/\/www.yanbin888.com\/?p=1083"},"modified":"2026-11-09T21:56:59","modified_gmt":"2026-11-09T13:56:59","slug":"atrust%e7%82%b9%e5%87%bblogin-%e6%97%a0%e5%8f%8d%e5%ba%94","status":"publish","type":"post","link":"https:\/\/www.yanbin888.com\/?p=1083","title":{"rendered":"aTrust\u70b9\u51fblogin \u65e0\u53cd\u5e94"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165vpn\u5730\u5740<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.<br \/>(node:25763) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to &#8216;0&#8217; makes TLS connections and HTTPS requests insecure by disabling certificate verification.<br \/>(node:25763) UnhandledPromiseRejectionWarning: ReferenceError: err is not defined<br \/>at \/usr\/share\/sangfor\/aTrust\/resources\/app\/src\/service\/bsod_checker.js:1:859<br \/>at<br \/>(node:25763) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)<br \/>(node:25763) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.<br \/>(node:25763) UnhandledPromiseRejectionWarning: Error: libmmkv.so: cannot enable executable stack as shared object requires: Invalid argument<br \/>at process.func [as dlopen] (electron\/js2c\/asar.js:140:31)<br \/>at Object.Module._extensions..node (internal\/modules\/cjs\/loader.js:1034:18)<br \/>at Object.func [as .node] (electron\/js2c\/asar.js:140:31)<br \/>at Module.load (internal\/modules\/cjs\/loader.js:815:32)<br \/>at Module._load (internal\/modules\/cjs\/loader.js:727:14)<br \/>at Function.Module._load (electron\/js2c\/asar.js:738:28)<br \/>at Module.require (internal\/modules\/cjs\/loader.js:852:19)<br \/>at require (internal\/modules\/cjs\/helpers.js:74:18)<br \/>at HistorySdpc._addHistory (\/usr\/share\/sangfor\/aTrust\/resources\/app\/src\/service\/history_addr.js:1:2965)<br \/>at HistorySdpc.addHistoryAddr (\/usr\/share\/sangfor\/aTrust\/resources\/app\/src\/service\/history_addr.js:1:7709)<br \/>(node:25763) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)<br \/>(node:25763) UnhandledPromiseRejectionWarning: Error: libmmkv.so: cannot enable executable stack as shared object requires: Invalid argument<br \/>at process.func [as dlopen] (electron\/js2c\/asar.js:140:31)<br \/>at Object.Module._extensions..node (internal\/modules\/cjs\/loader.js:1034:18)<br \/>at Object.func [as .node] (electron\/js2c\/asar.js:140:31)<br \/>at Module.load (internal\/modules\/cjs\/loader.js:815:32)<br \/>at Module._load (internal\/modules\/cjs\/loader.js:727:14)<br \/>at Function.Module._load (electron\/js2c\/asar.js:738:28)<br \/>at Module.require (internal\/modules\/cjs\/loader.js:852:19)<br \/>at require (internal\/modules\/cjs\/helpers.js:74:18)<br \/>at HistorySdpc._addHistory (\/usr\/share\/sangfor\/aTrust\/resources\/app\/src\/service\/history_addr.js:1:2965)<br \/>at HistorySdpc.addHistoryAddr (\/usr\/share\/sangfor\/aTrust\/resources\/app\/src\/service\/history_addr.js:1:7709)<br \/>(node:25763) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e9b\u65e5\u5fd7\u6765\u81ea\u6df1\u4fe1\u670d aTrust 9.0.2 \u7684 Electron \u4e3b\u8fdb\u7a0b\uff0c\u4e00\u5171\u5206\u4e09\u7c7b\uff1b\u5176\u4e2d\u53ea\u6709\u4e00\u6761\u786e\u5b9e\u9700\u8981\u5904\u7406\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u5173\u952e\u9519\u8bef\uff1a<code>libmmkv.so: cannot enable executable stack<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">plaintext<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error: libmmkv.so: cannot enable executable stack as shared object requires: Invalid argument\n    at HistorySdpc._addHistory (history_addr.js)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u67e5\u4e86\u4f60\u673a\u5668\u4e0a\u7684\u5b9e\u9645\u6587\u4ef6\uff0c\u6839\u56e0\u5f88\u660e\u786e\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">plaintext<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ readelf -lW \/usr\/share\/sangfor\/aTrust\/resources\/bin\/libmmkv.so | grep GNU_STACK\n  GNU_STACK  ...  RWE  0x10        \u2190 \u8981\u6c42\u53ef\u6267\u884c\u6808\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a&nbsp;<code>.so<\/code>&nbsp;\u5728\u7f16\u8bd1\u65f6\u88ab\u9519\u8bef\u5730\u6807\u8bb0\u4e3a\u201c\u9700\u8981\u53ef\u6267\u884c\u6808\u201d\uff08<code>p_flags = 0x7<\/code>\uff0cRWX\uff09\u3002\u5728\u4f60\u8fd9\u5957\u65b0\u73af\u5883\uff08\u5185\u6838 7.3.1-1-t2-noble + glibc 2.43\uff09\u4e0b\uff0c\u52a8\u6001\u52a0\u8f7d\u5668\u4f1a\u5c1d\u8bd5\u7528&nbsp;<code>mprotect<\/code>&nbsp;\u628a\u6808\u6539\u6210\u53ef\u6267\u884c\uff0c\u4f46\u88ab\u5185\u6838\u62d2\u7edd\u5e76\u8fd4\u56de&nbsp;<code>EINVAL<\/code>\uff0c\u56e0\u6b64&nbsp;<code>dlopen<\/code>&nbsp;\u5931\u8d25\u3002MMKV \u672c\u8eab\u4e0d\u9700\u8981\u53ef\u6267\u884c\u6808\uff0c\u8fd9\u53ea\u662f\u65e7\u5de5\u5177\u94fe\u9057\u7559\u7684\u7f3a\u9677\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u626b\u63cf\u4e86\u6574\u4e2a aTrust \u76ee\u5f55\uff0c<strong>\u53ea\u6709 libmmkv.so \u8fd9\u4e00\u4e2a\u6587\u4ef6\u5b58\u5728\u6b64\u95ee\u9898<\/strong>\uff0c\u5176\u4f59&nbsp;<code>.so\/.node<\/code>&nbsp;\u7684\u6808\u6807\u5fd7\u90fd\u6b63\u5e38\uff08RW\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5f71\u54cd\u8303\u56f4\u5f88\u5c0f<\/strong>\uff1a<code>history_addr.js<\/code>&nbsp;\u7528\u5b83\u6765\u4fdd\u5b58\u201c\u6700\u8fd1\u8fde\u63a5\u5730\u5740\u201d\uff0c\u6240\u4ee5\u53ea\u662f\u5386\u53f2\u8bb0\u5f55\u65e0\u6cd5\u6301\u4e45\u5316\uff08\u5217\u8868\u53ef\u80fd\u4e3a\u7a7a\uff09\uff0cVPN \u62e8\u53f7\u3001\u96a7\u9053\u3001\u8ba4\u8bc1\u4e3b\u6d41\u7a0b\u90fd\u4e0d\u53d7\u5f71\u54cd\u3002\u5982\u679c\u4f60\u4e0d\u4ecb\u610f\u5386\u53f2\u5730\u5740\u4e22\u5931\uff0c\u5176\u5b9e\u53ef\u4ee5\u4e0d\u7ba1\u5b83\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4fee\u590d\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u8be5\u6587\u4ef6\u7a0b\u5e8f\u5934\u7684&nbsp;<code>PF_X<\/code>&nbsp;\u4f4d\u6e05\u6389\uff08RWE \u2192 RW\uff09\u3002\u6211\u5728\u526f\u672c\u4e0a\u9a8c\u8bc1\u8fc7\uff0c\u4fee\u6539\u540e&nbsp;<code>readelf<\/code>&nbsp;\u663e\u793a&nbsp;<code>RW<\/code>\uff0c\u4e14\u6587\u4ef6\u4ecd\u80fd\u6b63\u5e38&nbsp;<code>dlopen<\/code>\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em># \u5148\u5907\u4efd\uff0c\u518d\u6253\u8865\u4e01<\/em>\nsudo python3 ~\/WorkBuddy\/2026-11-09-21-42-54\/fix_execstack.py \\\n  \/usr\/share\/sangfor\/aTrust\/resources\/bin\/libmmkv.so\n\n<em># \u8fd8\u539f\uff08\u811a\u672c\u81ea\u52a8\u7559\u4e86 .execstack-bak \u5907\u4efd\uff09<\/em>\nsudo python3 ~\/WorkBuddy\/2026-11-09-21-42-54\/fix_execstack.py \\\n  \/usr\/share\/sangfor\/aTrust\/resources\/bin\/libmmkv.so --restore\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6539\u5b8c\u540e\u9700\u8981<strong>\u5b8c\u5168\u9000\u51fa\u5e76\u91cd\u542f aTrust<\/strong>\uff08<code>aTrustTray<\/code>&nbsp;\u8fdb\u7a0b\u4ecd\u5728\u8fd0\u884c\u65f6\uff0c\u65e7\u5e93\u5df2\u7ecf\u6620\u5c04\u8fdb\u5185\u5b58\uff09\uff0c\u5386\u53f2\u5730\u5740\u624d\u80fd\u6b63\u5e38\u4fdd\u5b58\u3002\u7cfb\u7edf\u76ee\u5f55\u5728\u6211\u7684\u6c99\u7bb1\u5185\u53ea\u8bfb\uff0c\u6240\u4ee5\u8fd9\u4e00\u6b65\u9700\u8981\u4f60\u81ea\u5df1\u6267\u884c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f \u5982\u679c aTrust \u7248\u672c\u5e26\u6587\u4ef6\u5b8c\u6574\u6027\u81ea\u6821\u9a8c\uff08\u90e8\u5206\u4f01\u4e1a\u7248\u4f1a\uff09\uff0c\u6539\u5e93\u6587\u4ef6\u540e\u53ef\u80fd\u89e6\u53d1\u5ba2\u6237\u7aef\u5f02\u5e38\u3002\u771f\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\uff0c\u7528\u4e0a\u9762\u7684&nbsp;<code>--restore<\/code>&nbsp;\u7acb\u523b\u8fd8\u539f\u5373\u53ef\uff0c\u4ee3\u4ef7\u53ea\u662f\u90a3\u51e0\u6761\u65e5\u5fd7\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165vpn\u5730\u5740 DEP0005] DeprecationWarning: Buffer() is d <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.yanbin888.com\/?p=1083\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1083","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1083"}],"version-history":[{"count":3,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":1086,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/1083\/revisions\/1086"}],"wp:attachment":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}