网吧防止ARP攻击软件+详细操作,不要复制

来源:百度知道 编辑:UC知道 时间:2024/06/16 00:28:52
在客户端上跟路由上又是怎么绑定的,(操作谁明下)

保存。BAT文件 执行 提示很厉害
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=count+1 >>banding.vbs
echo nex