Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Skype AdBlocker v4
- mode con cols=52 lines=5
- color 2f
- echo.
- echo.
- echo. Please wait. Processing...
- set x=x64
- if %processor_architecture%==x86 if not defined processor_architew6432 set x=x86
- if %x%==x64 (%windir%\Sysnative\cmd.exe /q /c "%~dp0sav4.bat") else (%windir%\System32\cmd.exe /q /c "%~dp0sav4.bat")
- exit 0
- set h=%windir%\System32\Drivers\etc\hosts
- set r=%windir%\System32\Drivers\etc\saber.tmp
- set l="%~dp0hosts.txt"
- set f="%~dp0far.exe" -i -o
- set d=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\skype.com
- set k=127
- ver | findstr.exe /l /i /c:5.1 > nul
- if %errorlevel%==0 (set k=::)
- tasklist.exe | findstr.exe /l /i /c:Skype.exe > nul
- if %errorlevel%==0 (
- for /f "delims=" %%i in ('wmic.exe process where "name="Skype.exe"" get executablepath ^| findstr.exe /l /i /c:Skype.exe') do (
- set s=%%i)) & (taskkill.exe /f /im Skype.exe > nul)
- tasklist.exe | findstr.exe /l /i /c:saber-deact.exe > nul
- if %errorlevel%==0 (goto x)
- if not exist %h% (type nul > %h%) 2> nul & (goto e)
- findstr.exe /b /r /i /v /c:^$ /c:%k% /g:%h% %l% > nul
- if not %errorlevel%==0 (goto a)
- attrib.exe -r -s -h %h% > nul
- for %%b in (%h%) do (if not %%~zb==0 (
- echo f | xcopy.exe %h% "%h% backup [Skype AdBlocker].txt" /q /h /o /y > nul))
- echo f | xcopy.exe %h% %r% /q /h /o /y > nul
- :e
- findstr.exe /b /l /i /v /c:%k% /g:%h% %l%>> %r% 2> nul
- move /y %r% %h% > nul 2> nul
- if not %errorlevel%==0 (del /f /q "%h% backup [Skype AdBlocker].txt" > nul 2> nul) & (del /f /q %r% > nul 2> nul)
- attrib.exe +r %h% > nul
- :a
- reg.exe add "%d%\a.config" /v "*" /t REG_DWORD /d 4 /f > nul
- reg.exe add "%d%\apps" /v "*" /t REG_DWORD /d 4 /f > nul
- reg.exe add "%d%\b.config" /v "*" /t REG_DWORD /d 4 /f > nul
- reg.exe add "%d%\pipe" /v "*" /t REG_DWORD /d 4 /f > nul
- dir "%appdata%\Skype" /a-d /b /s 2> nul | findstr.exe /l /i /c:config.xml > nul
- if %errorlevel%==0 (for /f "delims=" %%a in ('dir "%appdata%\Skype" /a-d /b /s ^| findstr.exe /l /i /c:config.xml') do (
- %f% "%%a" "%%a" "Promo>0</Disable" "Promo>1</Disable") & (
- %f% "%%a" "%%a" "Tip>0</Disable" "Tip>1</Disable") & (
- %f% "%%a" "%%a" "Enabled>1</Advert" "Enabled>0</Advert") & (
- %f% "%%a" "%%a" "Placeholder>1</Advert" "Placeholder>0</Advert"))
- ipconfig.exe /flushdns > nul
- if exist "%s%" (start "" "%s%")
- exit 0
- :x
- if not exist %h% (goto v)
- for %%b in (%h%) do (if %%~zb==0 (goto v))
- findstr.exe /b /l /i /x /g:%l% %h% > nul
- if not %errorlevel%==0 (goto v)
- attrib.exe -r -s -h %h% > nul
- echo f | xcopy.exe %h% "%h% backup [Skype AdBlocker].txt" /q /h /o /y > nul
- type nul > %r%
- findstr.exe /b /l /i /v /g:%l% %h%>> %r%
- move /y %r% %h% > nul 2> nul
- if not %errorlevel%==0 (del /f /q "%h% backup [Skype AdBlocker].txt" > nul 2> nul) & (del /f /q %r% > nul 2> nul)
- attrib.exe +r %h% > nul
- :v
- reg.exe delete "%d%" /f > nul 2> nul
- ipconfig.exe /flushdns > nul
- if exist "%s%" (start "" "%s%")
- exit 0
- https://toolslib.net/downloads/viewdownload/175-skype-adblocker/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement