{"id":92089,"date":"2020-05-12T03:53:41","date_gmt":"2020-05-11T19:53:41","guid":{"rendered":"http:\/\/4563.org\/?p=92089"},"modified":"2020-05-12T03:53:41","modified_gmt":"2020-05-11T19:53:41","slug":"pyarmor-%e8%bf%99%e6%a0%b7%e7%9a%84%e5%b7%a5%e5%85%b7%e7%9c%9f%e7%9a%84%e5%8f%af%e4%bb%a5%e4%bf%9d%e6%8a%a4-python-%e6%ba%90%e4%bb%a3%e7%a0%81%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92089","title":{"rendered":"PyArmor \u8fd9\u6837\u7684\u5de5\u5177\u771f\u7684\u53ef\u4ee5\u4fdd\u62a4 Python \u6e90\u4ee3\u7801\u5417?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  PyArmor \u8fd9\u6837\u7684\u5de5\u5177\u771f\u7684\u53ef\u4ee5\u4fdd\u62a4 Python \u6e90\u4ee3\u7801\u5417?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <span><i><\/i> 27<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5173\u4e8e PyArmor \u7b2c\u4e8c\u6b21\u8be2\u95ee\u5927\u5bb6\u4e86.<\/p>\n<h3>\u8be2\u95ee\u7684\u76ee\u7684:<\/h3>\n<p>PyArmor \u771f\u7684\u53ef\u4ee5\u4fdd\u62a4\u6e90\u4ee3\u7801\u5417?<\/p>\n<h3>\u5176\u4ed6\u76f8\u5173\u4fe1\u606f<\/h3>\n<ul>\n<li>\u6211\u4eec\u4e0d\u8ba8\u8bba\u6e90\u4ee3\u7801\u91cd\u8981\u6027, \u53ea\u8ba8\u8bba\u8fd9\u4e2a\u5de5\u5177\u662f\u5426\u80fd\u771f\u7684\u4fdd\u62a4<\/li>\n<li>@fgg1991 \u9ebb\u70e6\u4f60\u8bf4\u4e00\u4e0b, \u4f60\u90a3\u8fb9\u7684\u4f7f\u7528\u60c5\u51b5. \u8c22\u8c22<\/li>\n<li>\u5b98\u7f51 https:\/\/github.com\/dashingsoft\/pyarmor<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1235940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fgg1991 \u9ebb\u70e6\u4f60\u8bf4\u4e00\u4e0b, \u4f60\u90a3\u8fb9\u7684\u4f7f\u7528\u60c5\u51b5. \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : niubee1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u90fd\u662f\u670d\u52a1\u7aef\u7a0b\u5e8f\uff0c\u5982\u679c\u662f\u8981\u51fa\u552e\u7ed9\u7532\u65b9\u4f7f\u7528\uff0c\u4e00\u822c\u90fd\u4f1a\u505a\u4e2a C++\u7684\u542f\u52a8\u5668\uff0c\u4ece git \u4e0a\u52a0\u8f7d\u5b8c\u5230\u5185\u5b58\u540e\u5c31\u81ea\u52a8\u5220\u6389\u6e90\u7801\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u7528\u6765\u4f5c\u4e3a\u7248\u6743\u63a7\u5236\u548c\u8fdc\u7a0b\u5347\u7ea7\uff0cbugfix \u7b49\u529f\u80fd\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @niubee1 #2 \u73b0\u5728\u8ba8\u8bba\u7684\u5c31\u662f\u8981\u88c5\u5728 \u7532\u65b9\u670d\u52a1\u5668\u4e0a\u7684. <\/p>\n<p>(\u4ee3\u7801\u6ca1\u6709\u91cd\u8981\u5230\u503c\u5f97\u4ed6\u4eec\u8fd9\u6837\u641e, \u53ea\u8ba8\u8bba\u6280\u672f\u7684\u5b9e\u73b0)<br \/>1. \u4f60\u8fd9\u4e2a\u65b9\u6848, \u5185\u5b58\u91cc\u9762\u4f1a\u88ab dump \u5427. <br \/>2. \u6bcf\u6b21\u542f\u52a8\u90fd\u9700\u8981 git?<br \/>3. \u6709\u73b0\u6210\u7684\u542f\u52a8\u5668\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bigtan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 cython \u628a\u6838\u5fc3\u4ee3\u7801\u8f6c\u6362\u6210\u4e8c\u8fdb\u5236\u7684 dll                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235944\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @bigtan #4 \u6682\u5148\u8ba8\u8bba PyArmor, \u5b9e\u5728\u91cd\u8981, \u53ef\u4ee5\u7528 Go \u6765\u5199\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235945\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : locoz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54a6\uff0c\u8fd9\u4e2a\u4e0d\u662f\u4e4b\u524d pycon china \u4e0a\u6d77\u7ad9\u7684\u4e00\u4f4d\u8bb2\u5e08\u505a\u7684\u561b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235946\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : wzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @locoz #6 \u6211\u597d\u60f3\u770b\u61c2\u4f60\u8bf4\u7684\u8bdd\u4e86, \u8fd8\u662f\u53ef\u4ee5\u89e3\u5f00\u7684?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235947\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : niubee1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzw 1\uff0c\u5185\u5b58\u91cc\u4f1a\u88ab dump \uff1f\u4f60\u5bf9\u7a0b\u5e8f\u7684\u6267\u884c\u8c8c\u4f3c\u6709\u90a3\u91cc\u7406\u89e3\u4e0d\u5bf9\u3002 <br \/>2\uff0c\u6bcf\u6b21\u542f\u52a8\u90fd\u8981 git\uff0c\u5b9e\u9645\u4e0a\u670d\u52a1\u7aef\u7a0b\u5e8f\u4e3a\u4e86\u65e0\u7f1d\u66ff\u6362\uff0c\u91cd\u542f\u8fc7\u7a0b\u90fd\u662f\u5148 git \u65b0\u7248\u672c\u4ee3\u7801\uff0c\u542f\u52a8\u65b0\u8fdb\u7a0b\uff0c\u7b49\u8001\u8fdb\u7a0b\u6267\u884c\u5b8c\u6bd5\u540e\u7528\u65b0\u8fdb\u7a0b\u66ff\u6362\u3002\u5176\u5b9e Git \u8fc7\u7a0b\u4e5f\u6709\u88ab\u7a83\u53d6\u7684\u98ce\u9669\uff0c\u6240\u4ee5\u5b9e\u9645\u4e0a\u7528\u7684\u65f6\u5019\u662f\u6709\u4e2a\u6e90\u7801\u5206\u53d1\u7684\u670d\u52a1\uff0c\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6e90\u7801\u662f\u52a0\u5bc6\u7684\u3002<br \/>3\uff0c\u542f\u52a8\u5668\u662f\u81ea\u5df1\u5199\u7684\uff0c\u4e8b\u5173 money\uff0c\u82b1\u4e86\u65f6\u95f4\u548c\u7cbe\u529b\u5f00\u53d1\u7684\uff0c\u4e5f\u4e0d\u4f1a\u514d\u8d39\u653e\u51fa\u6765\u7528\uff0c\u4f60\u6700\u597d\u4e5f\u81ea\u5df1\u5199\uff0c\u7528\u522b\u4eba\u7684\u5c31\u7b97\u662f\u82b1\u4e86\u94b1\u4e5f\u96be\u4fdd\u4e0d\u4f1a\u6709\u540e\u95e8\u7a83\u53d6\u4f60\u4ee3\u7801\u4ec0\u4e48\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235948\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuboying <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 gcore \u53ef\u4ee5 dump \u51fa\u6e90\u7801\u6216\u8005\u5b57\u8282\u7801\u4e48\uff1f<br \/>\u611f\u89c9\u53ea\u6709\u771f\u6b63\u80fd\u628a\u4ee3\u7801\u7f16\u8bd1\u6210\u673a\u5668\u7801\u7684\u5de5\u5177\u624d\u662f\u7edd\u5bf9\u7684\u5b89\u5168\u554a\uff0c\u5982\u679c\u5de5\u5177\u80fd\u505a\u5230\u8fd9\u4e2a\uff0c\u5b8c\u5168\u53ef\u4ee5\u6362\u4e00\u4e2a\u66f4\u9ad8\u5c42\u6b21\u7684\u5356\u70b9\u4e86\uff08\u7c7b\u4f3c webasm \uff09\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235949\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : m939594960 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @niubee1 #8 <br \/>1.\u592a\u5929\u771f\u4e86\uff0c\u9996\u5148\u5185\u5b58\u786e\u5b9e\u4f1a\u88ab dump\uff0cDNF \u7684 TP \u5c31\u4f1a dump \u6ce8\u5165\u5230 dnf \u91cc\u7684 dll\uff0c\u5f53\u521d\u6709\u4e9b\u4e0d\u61c2\u7684\u5f00\u6302\u4eba\u5458\u5929\u771f\u7684\u628a\u5916\u6302\u653e\u5230 U \u76d8\u91cc\uff0c\u7136\u540e\u542f\u52a8\u4e4b\u540e\u62d4\u6389 U \u76d8\uff0c\u7136\u800c\u6bdb\u7528\u6ca1\u6709\u3002<br \/>2.\u8fd9\u4e2a\u592a\u7b80\u5355\u4e86,\u4eba\u5bb6\u6293\u5305\u90fd\u80fd\u73a9\u6b7b\u4f60,\u8fd8\u653e Git \u4eba\u5bb6\u76f4\u63a5\u4ece\u4f60 git \u4e0a\u62ff\u3002<br \/>3.\u4f60\u6562\u653e\u51fa\u6765\uff0c\u6211\u5c31\u6562\u5f04\u6b7b\u4ed6\u3002<\/p>\n<p>\u518d\u8bf4\u51e0\u4e2a\u601d\u8def<br \/>1.hook python load \u5f00\u59cb\u52a0\u8f7d\u7684\u4f4d\u7f6e\uff0c\u76f4\u63a5\u62ff\u5230\u4ee3\u7801<br \/>2.hook git clone \u7684\u4f4d\u7f6e\uff0c\u76f4\u63a5\u62ff\u5230 git \u5730\u5740                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235950\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : locoz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzw #7 \u89e3\u91ca\u578b\u8bed\u8a00\u6ca1\u529e\u6cd5\u7684\uff0c\u6700\u7ec8\u603b\u5f97\u89e3\u5bc6\u51fa\u4e00\u4e2a\u80fd\u8fd0\u884c\u7684\u4e1c\u897f\u3002\u867d\u7136\u8bf4\u6709\u5404\u79cd\u6df7\u6dc6\u65b9\u6cd5\u80fd\u8ba9\u4ee3\u7801\u6666\u6da9\u96be\u61c2\uff0c\u4f46\u662f\u5982\u679c\u53ea\u662f\u4e3a\u4e86\u62ff\u5230\u6e90\u7801\u7684\u8bdd\uff0c\u89e3\u51fa\u6765\u5c31\u591f\u4e86\uff0c\u5269\u4e0b\u7684\u7231\u600e\u4e48\u53cd\u6df7\u6dc6\u5c31\u600e\u4e48\u53cd\u6df7\u6dc6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235951\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m939594960 #10 \u5185\u5b58\u91cc\u9762\u80af\u5b9a\u4f1a\u88ab dump \u5427\uff0c\u5c31\u7b97\u6ca1\u6709\u539f\u59cb\u4ee3\u7801\uff0c\u89e3\u6790\u540e\u7684\u8bcd\u6cd5\u4ee4\u724c\u6811\u80af\u5b9a\u662f\u6709\u7684\uff0c\u53cd\u7f16\u8bd1\u4e00\u4e0b\u5c31\u51fa\u7ed3\u679c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235952\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : niubee1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m939594960 \u5185\u5b58 dump \u51fa\u6765\u7684\u4e0d\u662f\u6e90\u7801\u5427\uff0c\u5c31\u7b97\u53cd\u7f16\u8bd1\u4e5f\u5f97\u4e0d\u5230 Python \u6e90\u7801\u5427\u3002 \u72ec\u7acb\u7684\u52a0\u5bc6\u6587\u4ef6\u5206\u53d1\u670d\u52a1\u66ff\u6362\u6389 git<br \/>hook python load \u8fd9\u4e8b\u6ca1\u8003\u8651\u5230\uff0c\u72ec\u7acb\u52a0\u8f7d Python \u4e0d\u7528\u7cfb\u7edf\u7684\u80fd\u7834<\/p>\n<p>\u5269\u4e0b\u7684\u65f6\u5019\u5c31\u662f\u4ece\u7834\u89e3\u7a0b\u5e8f\u53d8\u5316\u6210\u4e86\u7834\u89e3 Loader \u7684\u6e90\u7801\u4e86\u3002\u56e0\u4e3a Loader \u7a0b\u5e8f\u6bd4\u8f83\u5c0f\u5de7\u800c\u4e14\u53d8\u5316\u6027\u5c0f\uff0c\u6240\u4ee5\u6bd4\u8f83\u5bb9\u6613\u505a\u9632\u62a4\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235953\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : m939594960 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @niubee1 #13 <br \/>\u4f60\u5728 U \u76d8\u91cc\u653e\u4e00\u4e2a python \u6587\u4ef6\uff0c\u8fd0\u884c\u4e4b\u540e\u62d4\u6389 u \u76d8\uff0c\u4f60\u770b\u8fd8\u80fd\u6b63\u5e38\u8fd0\u884c\u4e0d\uff1f pyc \u53ef\u4ee5\u53cd\u7f16\u8bd1\u5230 py \u54e6\uff0cpython \u5e94\u8be5\u4e0d\u4f1a\u7ffb\u8bd1\u5230\u5176\u4ed6\u4ee3\u7801\u4e86\u628a\uff0c\u4ed6\u53c8\u6ca1\u6709 jit \u3002<\/p>\n<p>\u72ec\u7acb\u52a0\u8f7d Python \uff1f\u6ca1\u7528\u7684\uff0c\u4f60\u7528\u5565 python\uff0c\u6211\u4e5f\u80fd hook \u4f60\u7684 load \u554a\uff0c\u6211\u627e\u4e0d\u5230\u4f60\u7684 load \u6211\u627e\u4f60\u8bfb\u6587\u4ef6\u7684 call \u884c\u4e86\u5427\u3002<\/p>\n<p>\u4e2a\u4eba\u89c9\u5f97\u6700\u597d\u7684\u529e\u6cd5\uff0c\u5c31\u662f\u81ea\u5df1\u7f16\u8bd1\u4e00\u4e2a python \u89e3\u91ca\u5668\uff0c\u628a\u91cc\u9762\u7684\u5f88\u591a\u529f\u80fd\u6539\u5199\u4e00\u4e0b\uff0c\u8fd8\u80fd\u63d0\u5347\u4e00\u70b9\u96be\u5ea6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1235954\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : niubee1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m939594960 \u4f60\u628a\u6240\u6709 py \u6587\u4ef6\u90fd import \u540e\u662f\u53ef\u4ee5\u7684\u3002pyc \u53ef\u4ee5\u53cd\u7f16\u8bd1\u5230 py \uff08\u90e8\u5206\uff09\u4f46\u662f\u5185\u5b58\u91cc\u4e0d\u662f pyc \u3002<\/p>\n<p>\u4e00\u76f4\u5f88\u597d\u5947\u5df2\u7ecf\u8dd1\u8d77\u6765\u7684\u7a0b\u5e8f\u4f60\u600e\u4e48\u4ece\u5185\u5b58 dump \u6062\u590d\u5230 python \u6e90\u7801\u7684\u3002\u6765\u8bd5\u8bd5\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>PyArmor \u8fd9\u6837\u7684\u5de5\u5177\u771f\u7684\u53ef\u4ee5&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92089"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92089"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92089\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92089"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}