Advertisement
FreeBooter

MRT.bat

Aug 28th, 2017
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.12 KB | None | 0 0
  1. @Echo Off
  2. Color 1A
  3.  
  4. Cd %SystemRoot%\system32
  5.  
  6.  
  7.  
  8. REM  --> Check for permissions
  9. Reg query "HKU\S-1-5-19\Environment"
  10. REM --> If error flag set, we do not have admin.
  11. if %errorlevel% NEQ 0 (
  12. ECHO                 **************************************
  13. ECHO                  Running Admin shell... Please wait...
  14. ECHO                 **************************************
  15.  
  16.     goto UACPrompt
  17. ) else ( goto gotAdmin )
  18.  
  19. :UACPrompt
  20.     echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
  21.     set params = "%*:"=""
  22.     echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
  23.  
  24.     "%temp%\getadmin.vbs"
  25.     del "%temp%\getadmin.vbs"
  26.     exit /B
  27.  
  28.  
  29. :gotAdmin
  30.  
  31. Mode CON LINES=5 COLS=50 & Color 0E
  32.  
  33. Echo                   PLEASE WAIT...
  34. ::Creating System Restore point
  35. Wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Restore Point", 100, 12
  36.  
  37.  
  38. Cls & Mode CON  LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
  39. Echo.
  40. Echo.
  41. Echo.
  42. Echo.
  43. Echo  Do You Want To Prevent Sending Infection Reports When Using Malicious Software Removal Tool (Y/N)?  
  44. Echo.
  45. Echo.
  46. Echo.
  47.  
  48.  
  49. Set /p input= RESPONSE:
  50.  
  51. If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
  52.  
  53. :_Ex
  54. If /i Not %input%==N  (Goto :EOF) Else (Goto :_RegRestore)
  55.  
  56.  
  57.  
  58. :_Start
  59.  
  60. Reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d "1" /f > Nul
  61.  
  62.  
  63.  
  64.  
  65. Cls & Mode CON  LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
  66. Echo.
  67. Echo.
  68. Echo.
  69. Echo.    
  70. Echo        Malicious Software Removal Tool will not report infection information to Microsoft  
  71. Echo.      
  72. Echo.
  73. Echo.
  74.  
  75.  
  76. Ping -n 8 localhost >Nul
  77. Exit
  78.  
  79.  
  80.  
  81.  
  82. :_RegRestore
  83.  
  84. Reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /f > Nul
  85.  
  86.  
  87.  
  88. Cls & Mode CON  LINES=11 COLS=100 & Color 0D & Title Created By FreeBooter
  89. Echo.
  90. Echo.
  91. Echo.
  92. Echo.    
  93. Echo        Malicious Software Removal Tool will report infection information to Microsoft  
  94. Echo.      
  95. Echo.
  96. Echo.
  97.  
  98.  
  99. Ping -n 8 localhost >nul
  100. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement