From d9830b36dd93dbb5efe908b4ef20912c9f0bd40d Mon Sep 17 00:00:00 2001 From: MossCG <77914339+MossCG@users.noreply.github.com> Date: Sun, 16 Jan 2022 12:56:35 +0800 Subject: [PATCH] =?UTF-8?q?V2.1.1.1=20=E5=AE=8C=E6=88=90=E5=AF=B9=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 完成对新版本的支持 --- Build/MossFrp_Client.bat | 344 ++++++--------------------------------- 1 file changed, 52 insertions(+), 292 deletions(-) diff --git a/Build/MossFrp_Client.bat b/Build/MossFrp_Client.bat index 74e7a5e..91c77cc 100644 --- a/Build/MossFrp_Client.bat +++ b/Build/MossFrp_Client.bat @@ -1,10 +1,10 @@ ::[Bat To Exe Converter] :: -::fBE1pAF6MU+EWHzeyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv7Ff0dtgozn86 -::fBE1pAF6MU+EWHzeyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv+Vz3YZMg0kZcitsPQghdbASibQpU -::fBE1pAF6MU+EWHzeyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv+Vz3YZMg0kZcitsPLFVLewC9ZwwxyQ== +::fBE1pAF6MU+EWH7eyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv7Ff0dtgozn86 +::fBE1pAF6MU+EWH7eyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv+Vz3YZMg0kZcitsPQghdbASibQpU +::fBE1pAF6MU+EWH7eyG8/OwhyXhS9H2ezA7sI1Mru5uaDnn8YR+0qaoze5rKcMOMv+Vz3YZMg0kZcitsPLFVLewC9ZwwxyQ== ::YAwzoRdxOk+EWAjk -::fBw5plQjdCqDJHSL51EWOgtrbwiLOWWuOpcJ4eT/0+OErUNTXeEwGA== +::fBw5plQjdCiDJHSL51EWOgtrbwiLOWWuOpcJ4eT/0+OErUNTXeEwGA== ::YAwzuBVtJxjWCl3EqQJgSA== ::ZR4luwNxJguZRRnVphFkfU00 ::Yhs/ulQjdF+5 @@ -17,8 +17,8 @@ ::dAsiuh18IRvcCxnZtBJQ ::cRYluBh/LU+EWAnk ::YxY4rhs+aU+IeA== -::cxY6rQJ7JhzQF1fEqQJhZkoaG0rQXA== -::ZQ05rAF9IBncCkqN+0xwdVsFAlXMayXoZg== +::cxY6rQJ7JhzQF1fEqQJiZkoaHUrTXA== +::ZQ05rAF9IBncCkqN+0xwdVsGAlXMbSXrZg== ::ZQ05rAF9IAHYFVzEqQIdJwhHahaSA0i2D7AS/Ig= ::eg0/rx1wNQPfEVWB+kM9LVsJDCmNL3icFKUjy+Ty6uSTwg== ::fBEirQZwNQPfEVWB+kM9LVsJDCmNL3icFKUjy+Ty6uSTwg== @@ -29,20 +29,20 @@ ::ZQ0/vhVqMQ3MEVWAtB9wSA== ::Zg8zqx1/OA3MEVWAtB9wSA== ::dhA7pRFwIByZRRnk -::Zh4grVQjdCqDJHSL51EWOgtrbwiLOWWuOpgT+/vd/fq4gUEUUewrOLmKlOXAd65BpED8cPY= +::Zh4grVQjdCiDJHSL51EWOgtrbwiLOWWuOpgT+/vd/fq4gUEUUewrOLmJlOXAca5CpED8cPY= ::YB416Ek+ZG8= :: :: ::978f952a14a936cc963da21a135fa983 @echo off -title Mossfrpó +title Mossfrp Windows Bat ͻ CHCP 936 ::һǿͷʾ ::һЩɵʾԼ汾 :start cls -echo MossFrp Client [By MossCG] -echo Version 1.1.7.2 +echo MossFrp Windows Bat Client [By MossCG] +echo Version 2.1.1.1 Beta echo BվٷChannel @īMossCG ǵע echo QQȺ 1072507973 ӭ룡 echo /μȺ~ @@ -50,186 +50,60 @@ echo Tips echo ֮ʹÿͻļ echo .bat ٴԳʹ echo ==================== -echo 84λ +echo 뼤 echo PSְ汾windowsCMD޷ctrl+vճ echo ԳҼںɫճ -echo Freeʹù echo ==================== @set code="" @set /p code= echo ==========ȡ========== -echo ڶȡ...... -if /I "%code:~0,4%"=="Free" goto Freecode -@set IsCodeFree=false goto Readcode -::ʹFREEѡڵIJ -::߼򵥵 -:Freecode -@set LineChoose= -@set LineUse= -@set IsCodeFree=true -echo ==========ʾ========== -echo ʹù룡 -echo ζߴļ~ -echo ѵ~۱ռFree~ -echo ȥһ~ -echo ==========ʾ========== -echo ڵб -::echo 1 zz1 ׯһڵ 10M -::echo 2 sh1 Ϻһڵ Ѷ 30M 1000G -::echo 3 cz1 һڵ 10M 4000G -::echo 4 sh2 Ϻڵ Ѷ 100M Ʒ -echo 5 xg1 һڵ Ѷ 10M 2000G -::echo 6 sh3 Ϻڵ 80M Ʒ -echo 7 sc1 Ĵһڵ ƶ 10M -echo 8 jp1 ձһڵ NTT 100M -echo 9 sq1 Ǩһڵ 10M -echo 10 xg2 ۶ڵ 50M 500G -::echo 11 xc1 һڵ ͨ 10M free -echo 12 rs1 ˹һڵ 200M -echo 13 rs2 ˹ڵ 100M -echo ڵǰֱţ -echo BackԷһ -@set LineChoose="" -@set /p LineChoose= -if /I "%LineChoose%"=="Exit" goto End -if /I "%LineChoose%"=="Back" goto start -::if /I "%LineChoose%"=="1" set LineUse=zz1 -::if /I "%LineChoose%"=="1" set code=405460754060408040664082410019316611499994734090012782834256120261323295926062168zz1 -::if /I "%LineChoose%"=="1" goto Readcode -::if /I "%LineChoose%"=="2" set LineUse=sh1 -::if /I "%LineChoose%"=="2" set code=183338541840185318441845185812116510199993874000017605565421416721761568242771914sh1 -::if /I "%LineChoose%"=="2" goto Readcode -::if /I "%LineChoose%"=="3" set LineUse=cz1 -::if /I "%LineChoose%"=="3" set code=248545062492250825072524249811315911399993855000018641536500845721967174951044620cz1 -::if /I "%LineChoose%"=="3" goto Readcode -::if /I "%LineChoose%"=="4" set LineUse=sh2 -::if /I "%LineChoose%"=="4" set code=541374345420544254305427545110614010799993534000023835420302453362555550132285589sh2 -::if /I "%LineChoose%"=="4" goto Readcode -if /I "%LineChoose%"=="5" set LineUse=xg1 -if /I "%LineChoose%"=="5" set code=472967504737473447414765477016813311699994174900050143090214352495057321923155345xg1 -if /I "%LineChoose%"=="5" goto Readcode -::if /I "%LineChoose%"=="6" set LineUse=sh3 -::if /I "%LineChoose%"=="6" set code=407860994086408640944128412014219111699994494000031441781571615633250179659031725sh3 -::if /I "%LineChoose%"=="6" goto Readcode -if /I "%LineChoose%"=="7" set LineUse=sc1 -if /I "%LineChoose%"=="7" set code=193039511938193819481955196810914011199993604200032881451265541543405162526804214sc1 -if /I "%LineChoose%"=="7" goto Readcode -if /I "%LineChoose%"=="8" set LineUse=jp1 -if /I "%LineChoose%"=="8" set code=404860694056406040584064408418015018899995183000029585971191851063090619719295360jp1 -if /I "%LineChoose%"=="8" goto Readcode -if /I "%LineChoose%"=="9" set LineUse=sq1 -if /I "%LineChoose%"=="9" set code=639984206407641464106412640311212512899993654200027893524104215652850367112891577sq1 -if /I "%LineChoose%"=="9" goto Readcode -if /I "%LineChoose%"=="10" set LineUse=xg2 -if /I "%LineChoose%"=="10" set code=551375345521553555355529553015710911299993784000022042720331723982296283835062403xg2 -if /I "%LineChoose%"=="10" goto Readcode -if /I "%LineChoose%"=="11" set LineUse=rs1 -if /I "%LineChoose%"=="11" set code=618082016189618162036183622312714214899994175000022924148562316152487420656711757rs1 -if /I "%LineChoose%"=="11" goto Readcode -if /I "%LineChoose%"=="12" set LineUse=rs2 -if /I "%LineChoose%"=="12" set code=597779985986599460005987602811318819099994914000051285324456250685173548045865192rs2 -if /I "%LineChoose%"=="12" goto Readcode -ping 127.0.0.1 -n 3 >nul -goto FreeCannotUse ::ȡIJ ::˵׾ǰѼ밴λָ ::֮ʹöȡɶ -:Readcode +:readCode echo ڽ...... -set connectkey=%code:~0,44% -set /a authkey=%code:~0,4% -set /a year=%code:~4,4%-%authkey% -set /a month=%code:~8,4%-%authkey% -set /a day=%code:~12,4%-%authkey% -set /a hour=%code:~16,4%-%authkey% -set /a minute=%code:~20,4%-%authkey% -set /a second=%code:~24,4%-%authkey% -set /a numberkeypart1=%code:~28,3% -set /a numberkeypart2=%code:~31,3% -set /a numberkeypart3=%code:~34,3% -set /a number=%code:~37,7%-%numberkeypart1%-%numberkeypart2%-%numberkeypart3% -set /a portserver=%code:~44,5% -set /a portclientstart=%portserver%+1 -set /a portclientend=%portserver%+9 -set /a ipkeypart1=%code:~49,4% -set /a ipkeypart2=%code:~53,4% -set /a ipkeypart3=%code:~57,4% -set /a ipkeypart4=%code:~61,4% -set /a ippart1=%code:~65,4%-%ipkeypart1% -set /a ippart2=%code:~69,4%-%ipkeypart2% -set /a ippart3=%code:~73,4%-%ipkeypart3% -set /a ippart4=%code:~77,4%-%ipkeypart4% -set ippart5=%code:~81,3% -set ippart6=%code:~84,3% -set designippart= +set connectkey=%code% +set prefixLength=%code:~0,1% +if "%prefixLength%" == "3" goto prefixLength3 +if "%prefixLength%" == "4" goto prefixLength4 +goto CodeCannotUse +::3λǰ׺ȼ +:prefixLength3 +set prefix=%code:~1,3% +set authKey=%code:~4,5% +set /a portServer=%code:~9,5%-authKey +set /a portStart=%portServer%+1 +set /a portEnd=%portServer%+9 +set /a number=%code:~14,7%-authKey +goto checkTrue +::4λǰ׺ȼ +:prefixLength4 +set prefix=%code:~1,4% +set authKey=%code:~5,5% +set /a portServer=%code:~10,5%-authKey +set /a portStart=%portServer%+1 +set /a portEnd=%portServer%+9 +set /a number=%code:~15,7%-authKey +goto checkTrue ::һ֤ ::û˴ļ ::ʵϾж϶˿ǷС165535֮ ::ܺ߼ǺЧ -echo ==========֤========== -echo ֤...... -if %hour% gtr 24 goto CodeCannotUse -if %hour% lss 0 goto CodeCannotUse -if %month% gtr 12 goto CodeCannotUse -if %month% lss 0 goto CodeCannotUse +:checkTrue if %portserver% gtr 65535 goto CodeCannotUse if %portserver% lss 0 goto CodeCannotUse -if %ippart1% gtr 255 goto CodeCannotUse -if %ippart1% lss 0 goto CodeCannotUse -if %ippart2% gtr 255 goto CodeCannotUse -if %ippart2% lss 0 goto CodeCannotUse -if %ippart3% gtr 255 goto CodeCannotUse -if %ippart3% lss 0 goto CodeCannotUse -if %ippart4% gtr 255 goto CodeCannotUse -if %ippart4% lss 0 goto CodeCannotUse -if /I "%ippart6%"=="dsg" goto DesignLine -goto Checkisfree -:Checkisfree -if "%IsCodeFree%" == "true" goto SetFreePort -if "%IsCodeFree%" == "false" goto checktrue -:SetFreePort -if "%LineUse%" == "zz1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "zz1" set /a portclientend=%portserver%+99 -if "%LineUse%" == "sh1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "sh1" set /a portclientend=%portserver%+10000 -if "%LineUse%" == "cz1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "cz1" set /a portclientend=%portserver%+10000 -if "%LineUse%" == "sh2" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "sh2" set /a portclientend=%portserver%+200 -if "%LineUse%" == "xg1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "xg1" set /a portclientend=%portserver%+1000 -if "%LineUse%" == "sh2" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "sh2" set /a portclientend=%portserver%+10000 -if "%LineUse%" == "sc1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "sc1" set /a portclientend=%portserver%+1000 -if "%LineUse%" == "jp1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "jp1" set /a portclientend=%portserver%+5000 -if "%LineUse%" == "sq1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "sq1" set /a portclientend=%portserver%+1000 -if "%LineUse%" == "xg2" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "xg2" set /a portclientend=%portserver%+10000 -if "%LineUse%" == "rs1" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "rs1" set /a portclientend=%portserver%+10000 -if "%LineUse%" == "rs2" set /a portclientstart=%portserver%+1 -if "%LineUse%" == "rs2" set /a portclientend=%portserver%+10000 -goto checktrue -:DesignLine -set /a portclientstart=1 -set /a portclientend=65535 -set designippart=.dz -:checktrue +goto writeFile +:writeFile echo ==================== echo ţ%number% -echo ͨʱ䣺%year%-%month%-%day% %hour%:%minute%:%second% -echo ֵַ%ippart1%.%ippart2%.%ippart3%.%ippart4% -echo ַ%ippart5%%designippart%.mossfrp.cn -echo ˿ڣ%portserver% -echo Ŷ˿ڣ%portclientstart%-%portclientend% +echo ַ%prefix%.mossfrp.cn +echo ˿ڣ%portServer% +echo Ŷ˿ڣ%portStart%-%portEnd% echo Կ%connectkey% echo ϣ -ping 127.0.0.1 -n 3 >nul -:Copyfiles +ping 127.0.0.1 -n 4 >nul +:copyFiles cls echo ==========ļ========== echo ڿļ...... @@ -250,7 +124,7 @@ del frpc@.service ping 127.0.0.1 -n 1 >nul echo frpc.ini echo [common] >frpc.ini -echo server_addr = %ippart5%%designippart%.mossfrp.cn >>frpc.ini +echo server_addr = %prefix%.mossfrp.cn >>frpc.ini echo server_port = %portserver% >>frpc.ini echo token = %connectkey% >>frpc.ini ping 127.0.0.1 -n 1 >nul @@ -331,7 +205,7 @@ echo echo ض˿ڣ%PortLocal% echo ==========Զ̶˿========== echo Զ̶˿ڣ -echo PSö˿ڷΧ%portclientstart%-%portclientend% +echo PSö˿ڷΧ%portStart%-%portEnd% echo Ϸ˿ڷΧ˿ echo BackԷһ echo ==========Զ̶˿========== @@ -339,8 +213,8 @@ echo ========== @set /p PortOpen= if /I "%PortOpen%"=="Exit" goto End if /I "%PortOpen%"=="Back" goto settype -if %PortOpen% gtr %portclientend% goto ServerPortCannotUse -if %PortOpen% lss %portclientstart% goto ServerPortCannotUse +if %PortOpen% gtr %portEnd% goto ServerPortCannotUse +if %PortOpen% lss %portStart% goto ServerPortCannotUse :setlocalip cls @set LocalIP= @@ -418,131 +292,17 @@ echo echo @echo off >.bat echo :start >>.bat echo title MossFrp Cilent [By MossCG] >>.bat -:ADs -goto WriteADs -:WriteADs -if "%LineUse%" == "zz1" goto zz1ADs -if "%LineUse%" == "sh1" goto sh1ADs -if "%LineUse%" == "cz1" goto cz1ADs -if "%LineUse%" == "sh2" goto sh2ADs -if "%LineUse%" == "xg1" goto xg1ADs -if "%LineUse%" == "sh3" goto sh3ADs -if "%LineUse%" == "sc1" goto sc1ADs -if "%LineUse%" == "jp1" goto jp1ADs -if "%LineUse%" == "sq1" goto sq1ADs -if "%LineUse%" == "xg2" goto xg2ADs -if "%LineUse%" == "xc1" goto xc1ADs -if "%LineUse%" == "rs1" goto rs1ADs -if "%LineUse%" == "rs2" goto rs2ADs -goto frpcsettingswrite2 -:zz1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ʹõMossFrpٷڵ >>.bat -echo echo ȻҲһڵ >>.bat -echo echo ʾԶADŶ~ >>.bat -goto frpcsettingswrite2 -:sh1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ʹõڵ >>.bat -echo echo Star Bonfireǿ ӭĵ >>.bat -echo echo JavaIP:je.lmzj.cf QQȺ:1045317538 >>.bat -echo echo BEIP:mc.lmzj.cf˿:40302 >>.bat -echo echo 汾1.16.x~1.17.x(JE)1.17.x(BE) >>.bat -goto frpcsettingswrite2 -:cz1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ʹõMossFrpٷڵ >>.bat -echo echo ȻҲһڵ >>.bat -echo echo ʾԶADŶ~ >>.bat -echo echo PSǮ~ӿҪԲ~ >>.bat -goto frpcsettingswrite2 -:sh2ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ҪԸκΥ >>.bat -echo echo зں̨ >>.bat -echo echo WAF >>.bat -echo echo . >>.bat -echo echo ǣIPƷѵİܴܲѹ >>.bat -echo echo =========================================== >>.bat -echo echo ӭʹMossFrpϺ2ڵ By з build e37fd24 >>.bat -echo echo ӭwww.crabdrive.cnע˺ȻǮ >>.bat -echo echo ӭ >>.bat -echo echo ԭٷuid 177455888 >>.bat -echo echo B 506634621 >>.bat -echo echo HK,TW,MO 902026416 >>.bat -echo echo . >>.bat -echo echo һ飬ҪԹ >>.bat -echo echo . >>.bat -echo echo ȫұ >>.bat -goto frpcsettingswrite2 -:xg1ADs +:defaultAD echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹ۽ڵ㣬һ¹ؾ >>.bat -echo echo 1.Ҫͼ.Ҫͼ.Ҫͼ >>.bat -echo echo 2.ҪΥĶŶлл >>.bat -echo echo 3.ʱں̨ͻ飬лл֧Ŷ >>.bat -echo echo лʹãĻһ°ɣҲҪԷΣ >>.bat -echo echo ӭ https://afdian.net/@ren001 >>.bat -goto frpcsettingswrite2 -:sh3ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹ >>.bat -echo echo 𹥻򾯲Ųˮ >>.bat -echo echo κ¶ڵ޹ >>.bat -echo echo ַhttps://afdian.net/@dfff5f8 >>.bat -echo echo ͣblog.skyould.top >>.bat -echo echo MossCGǿ >>.bat -goto frpcsettingswrite2 -:sc1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹĴƶڵ㣡 >>.bat -echo echo K~л֧~ >>.bat -goto frpcsettingswrite2 -:jp1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹձһڵ㣡 >>.bat -echo echo һֻ~л֧~ >>.bat -echo echo īĶף>>.bat -echo echo һοôemmm>>.bat -echo echo ڵöҼø>>.bat -echo echo Ϊ1000Mӭʹã>>.bat -echo echo 벻ҪΥ;Ŷ>>.bat -goto frpcsettingswrite2 -:sq1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹǨһڵ㣡 >>.bat -echo echo Ƽܴͼi9 >>.bat -echo echo 50Ԫ/ >>.bat -echo echo ϵʽQQ: 1350944738 >>.bat -goto frpcsettingswrite2 -:xg1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹ۶ڵ㣡 >>.bat -echo echo ɳٳ~л֧~ >>.bat -goto frpcsettingswrite2 -:xc1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ʹõMossFrpٷڵ >>.bat -echo echo ȻҲһڵ >>.bat -echo echo ʾԶADŶ~ >>.bat -echo echo PSǮ~ӿҪԲ~ >>.bat -goto frpcsettingswrite2 -:rs1ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹö˹һڵ㣡 >>.bat -echo echo Nazereth~л֧~ >>.bat -goto frpcsettingswrite2 -:rs2ADs -echo echo ==========ڵϢ========== >>.bat -echo echo ӭʹö˹ڵ㣡 >>.bat -echo echo ~äè~л֧~ >>.bat +echo echo ʹõMossFrp͸ >>.bat +echo echo ٷȺ 1072507973 >>.bat goto frpcsettingswrite2 :frpcsettingswrite2 echo echo ==================== >>.bat echo echo ӳƣ%FrpName% >>.bat echo echo ӳͣ%FrpClientType% >>.bat echo echo صַ%LocalIP%:%PortLocal% >>.bat -echo echo Զ̵ַ%ippart5%%designippart%.mossfrp.cn:%PortOpen% >>.bat +echo echo Զ̵ַ%prefix%.mossfrp.cn:%PortOpen% >>.bat echo echo ==========Frp========== >>.bat echo echo -----===MossFrp by MossCG===----- >>.bat echo echo frpc...... >>.bat @@ -560,7 +320,7 @@ echo goto End :ServerPortCannotUse echo ˶˿Ч -echo ö˿ڷΧ%portclientstart%-%portclientend% +echo ö˿ڷΧ%portStart%-%portEnd% ping 127.0.0.1 -n 2 >nul goto setremoteport :LocalPortCannotUse