今天重装系统以后自动获取的dns地址是192.168.1.1
来源:百度知道 编辑:UC知道 时间:2024/05/16 02:57:29
把下的代码复制到TXT里面。然后把TXT扩展改成bat双击执行
这样开机就能ARP免疫
path c:\;c:\windows;c:\windows\system32
c:
cd \
:::::::::读取本机Mac地址
if exist ipconfig.txt del ipconfig.txt
ipconfig /all >c:\ipconfig.txt
:::::::::读取网关Mac地址
if exist GateMac.txt del GateMac.txt
arp -a %GateIP% >c:\GateMac.txt
for /f "skip=3 tokens=2" %%H in (GateMac.txt) do set GateMac=%%H
:::::::::读取网关地址
if exist GateIP.txt del GateIP.txt
find "Default Gateway" ipconfig.txt >c:\GateIP.txt
for /f "skip=2 tokens=13" %%G in (GateIP.txt) do set GateIP=%%G
echo set Ws = WScript.CreateObject("WScript.Shell") >c:\banding.vbs
echo count=0 >>banding.vbs
echo for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_ >>banding.vbs
echo if ps.name="wscript.exe" then count