:_delhost
echo.
echo 正在修改...
> %dst% echo # Copyright (c) 1993-1999 Microsoft Corp.
>> %dst% echo #
>> %dst% echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
>> %dst% echo #
>> %dst% echo # This file contains the mappings of IP addresses to host names. Each
>> %dst% echo # entry should be kept on an individual line. The IP address should
>> %dst% echo # be placed in the first column followed by the corresponding host name.
>> %dst% echo # The IP address and the host name should be separated by at least one
>> %dst% echo # space.
>> %dst% echo #
>> %dst% echo # Additionally, comments (such as these) may be inserted on individual
>> %dst% echo # lines or following the machine name denoted by a '#' symbol.
>> %dst% echo #
>> %dst% echo # For example:
>> %dst% echo #
>> %dst% echo # 102.54.94.97 rhino.acme.com #source server
>> %dst% echo # 38.25.63.10 x.acme.com # x client host
>> %dst% echo #
>> %dst% echo 127.0.0.1 localhost
echo.
echo 卸载完成!您的系统不再对3721等垃圾网站免疫!
if not "%NeedReboot%"=="true" goto _quit
echo 由于您的系统是Windows 9x系统,请重新启动计算机使设置生效!
echo 按任意健返回Windows...
pause > nul
@echo off
:: ===============================================================
:: 3721等垃圾网站的免疫程序卸载
:: 版本:1.0
:: 作者:Climbing ( xclimbing@msn.com )
:: 修改:windrate ( windrate@163.com )
:: 创建日期: 2004.11.22
:: 功能:卸载3721等垃圾网站的免疫程序
:: ===============================================================
if "%comspec%"=="" goto _quit
:: 通过检测comspec环境变量来判断当前系统是NT还是9x。
echo %comspec% | find /i "command" > nul
if errorlevel 1 goto _nt
if errorlevel 0 goto _9x
goto _quit
:_nt
echo 您的系统是Windows NT/2000/XP/2003。
set dst=%windir%\system32\drivers\etc\hosts
echo 准备修改的文件:%dst%
PAUSE>NUL
goto _chkhosts
:_9x
echo 您的系统是Windows 9x。
set dst=%windir%\hosts.sam
set NeedReboot=true
echo 准备修改的文件:%dst%
PAUSE>NUL
goto _chkhosts
:: 检测是否已经对hosts文件进行过修改。
:_chkhosts
find /i "www.3721.net" %dst% > nul
if errorlevel 1 goto _noneed
goto _delhost
:_noneed
echo.
echo 您的系统没有对3721免疫,无需进行卸载!
PAUSE>NUL
goto _quit
:_delhost
echo.
echo 正在修改...
echo # Copyright (c) 1993-1999 Microsoft Corp. > %dst%
echo # >> %dst%
echo # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. >> %dst%
echo # >> %dst%
echo # This file contains the mappings of IP addresses to host names. Each >> %dst%
echo # entry should be kept on an individual line. The IP address should >> %dst%
echo # be placed in the first column followed by the corresponding host name. >> %dst%
echo # The IP address and the host name should be separated by at least one >> %dst%
echo # space. >> %dst%
echo # >> %dst%
echo # Additionally, comments (such as these) may be inserted on individual >> %dst%
echo # lines or following the machine name denoted by a '#' symbol. >> %dst%
echo # >> %dst%
echo # For example: >> %dst%
echo # >> %dst%
echo # 102.54.94.97 rhino.acme.com #source server >> %dst%
echo # 38.25.63.10 x.acme.com # x client host >> %dst%
echo # >> %dst%
echo 127.0.0.1 localhost >> %dst%
echo.
echo 卸载完成!您的系统不再对3721等垃圾网站免疫!
if not "%NeedReboot%"=="true" goto _quit
echo 由于您的系统是Windows 9x系统,请重新启动计算机使设置生效!
echo 按任意健返回Windows...
pause > nul
rundll32.exe user.exe,exitwindowsexec
:_quit
pause
set dst=
set NeedReboot=