@echo off title WIN_2 path %PATH%;%tmp% pushd %tmp% ::REM bit.ly/winpestart = https://www.dropbox.com/s/d2jrpmwwddhv7ot/autorun.txt?raw=1 ::REM if exist winpestart.* del winpestart.* ::REM wget --no-check-certificate https://bit.ly/winpestart ::REM ren winpestart winpestart.cmd ::REM curl -o winpestart.cmd -L https://bit.ly/winpestart ::REM call winpestart.cmd wpeinit wpeutil disablefirewall wpeutil setkeyboardlayout 0407:00000407 ipconfig /all >>mailbody.txt if exist winpetools.7z del winpetools.7z ::REM wget --no-check-certificate https://www.dropbox.com/s/65dn62nfh0lkb9z/winpetools.7z if /i %PROCESSOR_ARCHITECTURE%==AMD64 curl -o winpetools.7z -L https://www.dropbox.com/s/i6it36r1n8ai5h0/winpetools_amd64.7z if /i %PROCESSOR_ARCHITECTURE%==X86 curl -o winpetools.7z -L https://www.dropbox.com/s/65dn62nfh0lkb9z/winpetools.7z 7za -y x winpetools.7z del winpetools.7z if not exist AnyDesk.exe goto :skip_anydesk start "ANYDESK" anydesk.exe @echo Waiting while Anydesk is connecting... busybox sleep 4 anydesk.exe --get-id >anydesk-id.txt set /p ANYDESK_ID="" >mailbody.txt @echo Install3389|anydesk --set-password :skip_anydesk ::REM ======== VNC password: 0000 ======== if not exist vnc goto :skip_vnc cd vnc @REM regedit /s winvnc.reg @REM reg add "HKLM\SOFTWARE\ORL\WinVNC3" /v MSLogonRequired /t REG_DWORD /d 0 /f @REM reg add "HKLM\SOFTWARE\ORL\WinVNC3" /v NewMSLogon /t REG_DWORD /d 0 /f @REM reg add "HKLM\SOFTWARE\ORL\WinVNC3\Default" /v Password /t REG_BINARY /d 561991f130c5c580 /f @REM start "" WinVNC.exe regedit /s tightvnc.reg start "VNC" tvnserver.exe -run cd .. :skip_vnc start "WIN_3" cmd /k ipconfig nircmd win min ititle "VNC" nircmd win setsize ititle "Anydesk" 0 0 552 260 nircmd win setsize ititle WIN_3 200 0 800 400 nircmd win setsize ititle WIN_2 0 320 800 420 nircmd win activate ititle WIN_3 nircmd win activate ititle WIN_2 @REM for /f "usebackq tokens=2 delims=:" %%i in (`ipconfig ^|find "Gateway"`) do set GATEWAY=%%i @REM set GATEWAY=%GATEWAY: =% @REM ipconfig/all|busybox sed -nre "s/...(Conn|Verb).+Suffix.*:.(.+)/\2/p" >I_DOM.txt @REM ipconfig/all|busybox sed -nre "/(Conn|Verb).+Suffix.*:..+/{nns/.+: (.+)/\1/p}"|busybox sed -nre "s/\-//gp" >I_MAC.txt ipconfig/all|busybox sed -nre "/(IPv4|Phys)/ {/IPv4/{gp}; {s/.+: //;s/\-//g} ;h}" >I_MAC.txt set /p I_MAC="" tmp1.txt echo "%CFGCODE%"|busybox md5sum|busybox sed -nre "s/^.{16}(.{16}).*/\1/p" >tmp2.txt set /p ZIP_FILE=tmp3.txt curl api.ipify.org >>tmp3.txt type tmp3.txt|busybox md5sum|busybox sed -nre "s/^(.{16}).*/\1/p" >tmp1.txt type tmp3.txt|busybox md5sum|busybox sed -nre "s/^.{16}(.{16}).*/\1/p" >tmp2.txt set /p ZIP_FILE=>x:\windows\system32\drivers\etc\hosts if "%ZIP_FILE%"=="4ca8476813837905" @echo 192.168.61.11 install >>x:\windows\system32\drivers\etc\hosts if "%ZIP_FILE%"=="b6ccf02dc6e8b46b" @echo 10.210.12.111 install >>x:\windows\system32\drivers\etc\hosts ) nircmd win setsize ititle "AnyDesk" 0 0 600 300 @REM nircmd.exe loop 4 15000 savescreenshot C:\temp\ss00~$loopcount$.png nircmd savescreenshotfull ss001.png set >>mailbody.txt curl -K sendmail.ini --form "bodytext=@mailbody.txt" @echo ======== set I_ deploy.cmd popd exit /b 0