Advertisement
cevoj35548

StartAllBack v3.7.3

Jan 14th, 2024 (edited)
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.13 KB | None | 0 0
  1. <# ::
  2. @echo off & setlocal
  3. :: CHECK FOR ADMIN
  4. net file >nul 2>&1
  5. if %errorlevel% NEQ 0 (echo;Please run as admin.&pause>nul &exit)
  6. powershell -noprofile -nologo "iex (${%~f0} | out-string)"
  7. goto:eof
  8. ::#>
  9. taskkill /f /im explorer.exe
  10. taskkill /f /im StartAllBackCfg.exe
  11. <# -- LIBRARY -- #>
  12. function Expand-EnvVar($Path) {
  13.     return [System.Environment]::ExpandEnvironmentVariables($Path)
  14. }
  15. New-Alias -Name ee -Value Expand-EnvVar
  16. function Edit-FileBytes($Path, $Modifications) {
  17.     $Path = ee "$Path"
  18.     $bytes = [System.IO.File]::ReadAllBytes($Path)
  19.     foreach ($mod in $Modifications) {
  20.         if ($mod -match '(\d+)-(\d+)=(\d+)') {
  21.             $matches[1]..$matches[2] | ForEach-Object { $bytes[$_] = $matches[3] }
  22.         } elseif ($mod -match '(\d+)=(\d+)') {
  23.             $bytes[$matches[1]] = $matches[2]
  24.         }
  25.     }
  26.     [System.IO.File]::WriteAllBytes($Path, $bytes)
  27. }
  28. <# -- FILES -- #>
  29. Edit-FileBytes '%programfiles%\StartAllBack\StartAllBackX64.dll' '5096=103','5097=199','5098-5099=1','5100-5102=0','5103=184','5104=1','5105-5107=0','5108=195','5109-5111=144'
  30. Write-Host Complete!
  31. start explorer.exe
  32. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement