去评论
dz插件网

回顾GoEdge投毒事件,附解决方案,附注册机

婷姐
2024/07/26 22:33:43
浜嬩欢鍥為【

鍦2024骞5鏈堜腑涓嬫棳锛孏oEdge QQ缇よ亰瑙f暎锛岀兢涓昏秴鍝ュけ鑱斾簬5鏈20鏃ワ紝鍦ㄨ繖澶╀笂鍗堜節鐐瑰拰涓嬪崍鍏偣閮藉彂甯冧簡鏇存柊
杩欏ぉ涓婂崍9鐐瑰彂甯冪殑鏇存柊鐗堟湰涓1.3.9
  1. 鑺傜偣绋嬪簭鏂囦欢 edge-node MD5 8EBAC47C212DBB41CC0B2B9C6D4B32E4鑺傜偣绋嬪簭鍘嬬缉鍖 edge-node-linux-amd64-plus-v1.3.9.zip MD5 D6B495249683D981DEA15B5BAD97ACDB

鍦ㄤ笅鍗6鐐瑰乏鍙筹紝涓婁紶浜嗘柊鐨勭鐞嗙郴缁燂紝绠$悊绯荤粺鍘嬬缉鍖呬腑锛屽甫鏈変竴涓妭鐐圭▼搴忕殑鍘嬬缉鍖咃紝鏄粰edge-api鍑嗗鐨勶紝浣嗘槸杩欎釜鑺傜偣绋嬪簭淇敼鏃ユ湡灞呯劧鏄笅鍗堝叚鐐癸紝涓巃dmin鐨勪复杩
  1. 鑺傜偣绋嬪簭鏂囦欢 edge-node MD5 54D7FDD77A1DBB8431B186BAC03C6429鑺傜偣绋嬪簭鍘嬬缉鍖 edge-node-linux-amd64-v1.3.9.zip MD5 88D96C2696C7F842BCEE66B833412571绠$悊骞冲彴鍘嬬缉鍖 edge-admin-linux-amd64-plus-v1.3.9.zip MD5 FFDF4E395BE3096787396C46F4B793CF

杩欐樉鐒朵笉瀵瑰姴锛岄毦閬撴槸瓒呭摜浜茶嚜澶规潅鐨勭璐у悧锛
甯︾潃鐤戦棶锛屾垜浠潵闈欐佸垎鏋愪竴涓嬶紝鍒氫慨瀹屽嚑鍗佷釜鑺傜偣锛岀溂鏈夌偣鑺变簡锛岃繖閲屽氨涓嶆墜鎼撲簡锛岀洿鎺ョ敤寰浜戞矙绠憋紝涔熸柟渚垮ぇ瀹惰嚜琛屾煡鐪
棣栧厛鏄棭涓婁節鐐圭殑1.3.9锛屼笂浼犳枃浠跺埌娌欑锛屾牴鎹洰鍓嶇殑鎶曟瘨鎯呭喌锛鑺傜偣绋嬪簭鏂囦欢鐨勫瓧绗︿覆涓細鍑虹幇杩欐牱涓鏉RL
閾炬帴浼间箮琚悶浜嗭紝鎯崇湅鎶ュ憡甯d5鍘绘矙绠辨悳绱㈠嵆鍙
  1. https://cdn.jsdelivr.vip/jquery.min-3.7.0.js
涔熷氨鏄锛屾垜浠彧闇瑕佺湅瀛楃涓蹭腑鏈夋病鏈夎繖鏉RL灏卞彲浠ヤ簡锛岃嚦浜庢湁娌℃湁鍚庨棬锛屽挶涔熷垎鏋愪笉浜嗗憖
鎵撳紑鎶ュ憡锛屾垜浠湅娌欑鎻愬彇濂界殑URL

鐒跺悗锛屾槸鏅氫笂鍏偣鐨1.3.9锛屾墦寮鎶ュ憡锛岀湅娌欑鎻愬彇濂界殑URL


姝ゆ椂鍙戠幇锛屽苟娌℃湁浠涔堜笉鍚岋紝鍙槸鍩熷悕浠巆n鍙樻垚浜哻loud锛岃繖涓婂崍杩樻槸cn锛屼笅鍗堝氨鏄痗loud浜嗭紝濂界濂囷紝鎴戜滑鍏堜繚鐣欒繖涓枒闂
鏍规嵁鎴戠殑鍥炲繂锛岀粡杩囧嚑澶╃殑娌夊瘋锛屽湪22鍙凤紝goedge鐨凾G缇ょ粍鍥炲綊浜

宸茬粡缂栬瘧濂藉彂甯冧簡濂藉嚑澶╋紝涓嬭浇涓嬫潵MD5鍙樹簡锛屼慨鏀规棩鏈熷眳鐒跺彉5鏈24鍙蜂簡锛熸姤鍛
  1. 鑺傜偣绋嬪簭鏂囦欢 edge-node MD5 54D7FDD77A1DBB8431B186BAC03C6429

杩戞棩锛屾湁璁稿GoEdge鐢ㄦ埛鍙戠幇锛岀綉绔欓〉闈㈠熬閮ㄤ細鎻掑叆涓娈礿s浠g爜

棣栧厛鍒嗘瀽涓涓嬩慨鏀规棩鏈熶负7鏈10鏃ョ殑1.4.1鐨勮妭鐐圭▼搴
  1. 鑺傜偣绋嬪簭鏂囦欢 edge-node MD5 D08FB882642BC1CD423F44F4F4B0C852鑺傜偣绋嬪簭鍘嬬缉鍖 edge-node-linux-amd64-plus-v1.4.1.zip MD5 D7AF8DD45334E7C3EFB8DB7D8D8933C5

鏌ョ湅鎶ュ憡鍙戠幇锛屽嚭鐜颁簡涓鏉¢嗗ぉ鐨刄RL
  1. https://cdn.jsdelivr.vip/jquery.min-3.7.0.js

韬婢虫床鐨勭兢涓伙紝寮曠敤jsdelivr锛<strike>绛夌瓑锛宔鍛紵</strike> 璧勬簮锛屽眳鐒惰繕璐村績鍦扮粰鎴戜滑鐢ㄤ簡鍔犻燂紵锛佹垜鐪熺殑澶劅鍔ㄤ簡鍟婏紝灏辨槸杩欓摼鎺ヤ笉澶鍔插晩锛屾垜璁板緱涓嶆槸杩欎釜鏍煎紡鍟婏紝闅鹃亾鏄笅杞芥湇鍔″櫒ssh瀵嗙爜娉勯湶浜嗭紝琚鍏ョ梾姣掍簡锛

涓嶅鍛锛岃繖鏃х増鏈拰鏂扮増鏈紪璇戝櫒鍜嬭繕鎹簡鍛紝杩欎笉瀵瑰惂锛<strike>鏈変汉璇达紝璇存槸鏈変汉鍦ㄨ繖姹ら噷涓嬩簡姣</strike>

26鏃ュ噷鏅



缇ゅ弸鍙戠幇锛岃嚜宸辩殑缃戠珯鏈熬澶规潅浜嗙璐э紝缁忚繃澶у鐨勬帰璁ㄥ彂鐜帮紝</body><!鈥旂洿鎺ュ氨鑳芥妸杩欏潹涓滆タ鍙樻垚娉ㄩ噴锛屼笉寰椾笉璇达紝杩欐槸涓涓緢濂界殑鎬濊矾



閭o紝杩欏埌搴曟槸鍟ュ憿锛屼负鍟ヨ娉ㄩ噴鎺夛紵
浠庡鍐呰闂紝杩欎釜缃戝潃鏄竴涓贩娣嗗姞瀵嗙殑js鏂囦欢



浠庡澶栬闂紝涓嶅厑璁歌闂紝杩......缇や富涓嶆槸璇磋鍙粰娴峰鐢ㄦ埛鎻愪緵鏈嶅姟鍢





鐪嬭繖涓В鏋愶紝寰堢濂囷紝浣跨敤鐨勬槸闈炲父濂界殑CDN锛屼笉绂佽鎴戞诞鎯宠仈缈



鎺ョ潃锛屾湁澶т浆鍒嗘瀽鍑鸿鍔犲瘑js


涓嶅厜鏄垎鍦板尯鍒嗚澶囪烦杞紝鐢氳嚦姣忎釜鏃舵璺宠浆鐨勬鐜囪繕涓嶇浉绛夛紝杩樿兘鏍规嵁浣犵殑缃戠珯鍒嗙被閲忚韩瀹氬埗锛岀湡鏄创蹇冨晩



缁忚繃澶у鍦ㄧ兢閲屾縺鐑堢殑璁ㄨ锛屼綅浜庢境澶у埄浜氥佹瘮鍖椾含鏅氫咯灏忔椂鐨勭兢涓伙紝缁堜簬鍦ㄥ寳浜椂闂12:50锛屾倓鎮勫湴锛屼笂浼犱簡涓涓棤姣掔殑鐗堟湰锛岃瘯鍥炬帺鐩栦竴鍒囥傜劧鍚庯紝闅忕潃涓澹扳滀笉淇¤埃锛屼笉浼犺埃鈥濓紝缇や汉鏁板ぇ澶у噺灏戯紝澶ф鏄ぇ瀹惰嚜宸遍缇や簡鍚



濡備綍瑙e喅锛

鏍规嵁鎴戜滑鍓嶉潰鐨勫垎鏋愶紝鍙戠幇浠呭湪鑺傜偣绋嬪簭涓す鏉備簡绉佽揣锛屼絾鏄粛寤鸿鍏ㄩ儴鍥為5鏈20鏃ユ棭涓婄殑鐗堟湰锛岄伩鍏嶅悗闂ㄣ傚鏋滄槸鍦5鏈21鏃ュ悗瀹夎鐨勶紝寤鸿绔嬪嵆鍥為
杩欓噷锛屾劅璋v鑰佹澘鍒嗕韩鐨勮胺姝岀洏瀛樻。

棣栧厛锛屾垜浠鍦ㄤ富鎺у睆钄絞oedge鍩熷悕锛岄槻姝㈡棩鍚庡嚭鐜颁粈涔堥棶棰橈紝鎵ц涓嬮潰鍛戒护鍗冲彲
  1. echo "127.0.0.1 goedge.cloud" | sudo tee -a /etc/hosts > /dev/nullecho "127.0.0.1 goedge.cn" | sudo tee -a /etc/hosts > /dev/nullcat /etc/hosts

鎺ョ潃锛屾妸涓绘帶鍥為鍒5鏈20鏃ョ増鏈
<strike>棣栧厛</strike>
  1. cd 涓绘帶瀹夎鐩綍
鎺ョ潃
  1. ./edge-admin upgrade --url=https://dl.naixi.net/cdn/goedge/goedgecn/edge-admin-linux-amd64-plus-v1.3.9.zip
姝ゅ浠呮紨绀篴md64鏋舵瀯锛屼娇鐢ㄧ殑URL鐢卞ザ鏄旀彁渚涳紝鎰熻阿锛佷笉鏀惧績鐨勬崲鎴愯嚜宸辩殑URL鍗冲彲

鍓嶉潰鎻愬埌锛岀鐞嗙郴缁熷帇缂╁寘閲岄潰甯︾殑鑺傜偣绋嬪簭鏄櫄涓婃洿鏂扮殑锛岃櫧鐒跺彧鏄崲浜嗕釜缃戝潃锛屼絾鏄粛寤鸿浣跨敤鏃╀笂鐨勭増鏈紝鎵浠ユ垜浠墽琛屼竴姝ユ浛鎹紝姝ゅ浠嶄娇鐢ㄥザ鏄旀彁渚涚殑涓嬭浇鏈嶅姟
  1. cd 瀹夎鐩綍锛屼緥濡 /usr/local/goedge/edge-admin/edge-api/deploy
鐒跺悗锛屽垹闄ゅ師鏈夌殑鏂囦欢
  1. rm -rf edge-node-linux-amd64-plus-v1.3.9.1.zip
鑾峰彇鏃╀笂鐨勭増鏈
  1. wget -O edge-node-linux-amd64-v1.3.9.zip https://dl.naixi.net/cdn/goedge/goedgecn/edge-node-linux-amd64-plus-v1.3.9.zip

鍒拌繖锛屼富鎺у氨閲嶈濂戒簡锛屼笉杩囪鎻愰啋鐨勬槸锛屾鏌ヤ竴涓嬭繖涓洰褰/edge-admin/edge-api/deploy 閲岄潰鏈夋病鏈夋瘮1.3.9鏇撮珮鐗堟湰鐨勬枃浠讹紝鏈夌殑璇濆垹鎺

鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳

鍙槸閲嶈涓绘帶鍙笉琛岋紝鎶曟瘨鎶曞湪鑺傜偣鍟 纭繚宸茬粡瀹夎curl銆乽nzip 鐪嬬湅鑺傜偣绋嬪簭瑁呭湪鍝釜鐩綍锛屽鏋滄槸/root/edge-node锛屾墽琛屽涓
  1. rm -rf /usr/local/goedgecd /root/edge-node./edge-node/bin/edge-node cache.garbage --deletecurl -L "https://dl.naixi.net/cdn/goedge/goedgecn/edge-node-linux-amd64-plus-v1.3.9.zip" -o edge-node-linux-amd64-plus.zip -C - -#./edge-node/bin/edge-node stoprm -rf ./edge-node/datarm -rf ./edge-node/binrm -rf /opt/cacheunzip -o edge-node-linux-amd64-plus.zip./edge-node/bin/edge-node restartrm -rf *.zipmkdir /opt/cache
鐪嬬湅鑺傜偣绋嬪簭瑁呭湪鍝釜鐩綍锛屽鏋滄槸/usr/local/goedge锛屾墽琛屽涓
  1. rm -rf /root/edge-nodecd /usr/local/goedge./edge-node/bin/edge-node cache.garbage --deletecurl -L "https://dl.naixi.net/cdn/goedge/goedgecn/edge-node-linux-amd64-plus-v1.3.9.zip" -o edge-node-linux-amd64-plus.zip -C - -#./edge-node/bin/edge-node stoprm -rf ./edge-node/datarm -rf ./edge-node/binrm -rf /opt/cacheunzip -o edge-node-linux-amd64-plus.zip./edge-node/bin/edge-node restartrm -rf *.zipmkdir /opt/cache
闇瑕佽鏄庣殑鏄紝鎴戜滑鍏堝垹闄や簡usr涓嬬殑goedge锛屽洜涓烘牴鎹垜鐨勭粡楠岋紝鑺傜偣鑷姩鍗囩骇鐨勬椂鍊欐湁鍙兘浼氶噸澶嶅畨瑁咃紝鍏蜂綋鎬庝箞鍥炰簨涔熻涓嶆竻锛涙垜浠垹闄や簡/opt/cache锛岃繖鏄粯璁ょ殑缂撳瓨鐩綍锛屽洜涓缂撳瓨涓彲鑳藉瓨鍦ㄦ姇姣掑悗鐨勯〉闈锛屽鏋滀綘杩樻湁鍏朵粬缂撳瓨鐩綍锛岄渶瑕佽嚜琛屾竻闄わ紝濡傛灉浣撻噺澶ぇ锛岀洿鎺ラ噸瑁呯郴缁熷緱浜
濡傛灉浣犳墽琛岄敊浜嗭紝璇存槑浣犱笉閫傚悎鎵嬪姩鎿嶄綔锛鐩存帴閲嶈绯荤粺寰椾簡

鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳幆鈳

濂舵様璁哄潧锛屽缓璁洿鎺ヤ娇鐢ㄧ涓夋柟鎺堟潈鐧婚檰锛屽氨涓嶇敤楠岃瘉閭浜
https://t.me/Naixi2tg/2370
GoEdge 鍒嗛仐浜 棰戦亾
https://t.me/goedge233