查看: 1273|回复: 3
收起左侧

[求助] 这些代码是什么意思呢?谁帮我解释下谢谢

[复制链接]
jun131470
发表于 2010-5-31 16:04:55 | 显示全部楼层 |阅读模式
@echo off
@for /f "tokens=*" %%i in (%windir%\system32\drivers\etc\hosts) do (
echo %%i|find /i "localhost"&&echo xxx.xx.xxx.xx       XXXX.com>>host||echo %%i>>host
)
@copy /a /y host %windir%\system32\drivers\etc\hosts
del host
@start "" "xxxx.exe"
ping -n 10 127.0.0.1>nul
goto end
:end
@echo off
@for /f "tokens=*" %%i in (%windir%\system32\drivers\etc\hosts) do (
echo %%i|find /i "xxxx.com"&&echo 127.0.0.1       localhost>>host||echo %%i>>host
)
@copy /a /y host %windir%\system32\drivers\etc\hosts
del host

heroboy0923
发表于 2010-5-31 16:06:49 | 显示全部楼层
修改host文件的批处理
louis00
发表于 2010-5-31 17:00:57 | 显示全部楼层
回复 1# jun131470 的帖子

找到 host 文件 。, 将 xxx 复制到里面   然后运行 xxx。exe

然后 ping 127.0.0.1  然后又重复以上工作   然后删除  host
   
ecustzhang
发表于 2010-5-31 18:56:01 | 显示全部楼层
这段代码有病毒性为吗?它ping 127.0.0.1的目的何在?
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-3-11 05:34 , Processed in 0.181451 second(s), 17 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表