yumush
Clone
https://git.tahinli.com/Tahinli/yumush.git
0 watching0 forksRustAGPL-3.06.8 MiB27ceb05Tahinli8 hours ago399 commits
| 1 | @echo off |
| 2 | if exist C:\OEM\finished.txt exit /b |
| 3 | reg add HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v yumush /d C:\OEM\install.bat /f |
| 4 | powershell -NoProfile -ExecutionPolicy Bypass -Command "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0; Set-Service sshd -StartupType Automatic; Start-Service sshd; New-NetFirewallRule -Name sshd -DisplayName sshd -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -ErrorAction SilentlyContinue; Set-Content -Path C:\ProgramData\ssh\administrators_authorized_keys -Value '{key}'; icacls C:\ProgramData\ssh\administrators_authorized_keys /inheritance:r /grant 'Administrators:F' /grant 'SYSTEM:F'; New-ItemProperty -Path 'HKLM:\SOFTWARE\OpenSSH' -Name DefaultShell -Value 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -PropertyType String -Force" |
| 5 | curl.exe -L -o C:\vs_BuildTools.exe https://aka.ms/vs/17/release/vs_BuildTools.exe |
| 6 | C:\vs_BuildTools.exe --quiet --wait --norestart --nocache --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended |
| 7 | curl.exe -L -o C:\rustup-init.exe https://win.rustup.rs/x86_64 |
| 8 | C:\rustup-init.exe -y --default-toolchain none --profile minimal |
| 9 | reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v yumush /f |
| 10 | echo done > C:\OEM\finished.txt |