解除IP与MAC的绑定
@echooff::by:xiaoqinQQ:xxx@for/f"skip=13tokens=15usebackq"%%iin(`ipconfig/all`)do(set...
@echo off
::by : xiao qin QQ : xxx
@for /f "skip=13 tokens=15 usebackq " %%i in (`ipconfig /all`) do (
set ip=%%i&goto getmac)
:getmac
for /f "skip=13 tokens=12 usebackq " %%i in (`ipconfig /all`) do (
set mac=%%i&goto get_gateip)
:get_gateip
@for /f "skip=17 tokens=13 usebackq " %%i in (`ipconfig /all`) do (
set gateip=%%i&goto get_gatemac)
:get_gatemac
@for /f "skip=3 tokens=2 usebackq " %%i in (`arp -a %gateip%`) do (
set gatemac=%%i&goto md_reg)
:md_reg
(echo Windows Registry Editor Version 5.00
echo.&echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
echo "anti_arp"="arp -d&&arp -s %ip% %mac%&&arp -s %gateip% %gatemac%")>"%windir%\anti_arp.reg"
regedit /s "%windir%\anti_arp.reg"
arp -d&arp -s %ip% %mac%&arp -s %gateip% %gatemac%
del /q "%windir%\anti_arp.reg"&pause
上面是个IP与MAC绑定的批处理文件
麻烦高手看下 若是运行了 这个批处理文件该怎么样解除这个批处理文件的IP与MAC的绑定
我要的是彻底消除运行这个批处理文件所造成的影响!! 展开
::by : xiao qin QQ : xxx
@for /f "skip=13 tokens=15 usebackq " %%i in (`ipconfig /all`) do (
set ip=%%i&goto getmac)
:getmac
for /f "skip=13 tokens=12 usebackq " %%i in (`ipconfig /all`) do (
set mac=%%i&goto get_gateip)
:get_gateip
@for /f "skip=17 tokens=13 usebackq " %%i in (`ipconfig /all`) do (
set gateip=%%i&goto get_gatemac)
:get_gatemac
@for /f "skip=3 tokens=2 usebackq " %%i in (`arp -a %gateip%`) do (
set gatemac=%%i&goto md_reg)
:md_reg
(echo Windows Registry Editor Version 5.00
echo.&echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
echo "anti_arp"="arp -d&&arp -s %ip% %mac%&&arp -s %gateip% %gatemac%")>"%windir%\anti_arp.reg"
regedit /s "%windir%\anti_arp.reg"
arp -d&arp -s %ip% %mac%&arp -s %gateip% %gatemac%
del /q "%windir%\anti_arp.reg"&pause
上面是个IP与MAC绑定的批处理文件
麻烦高手看下 若是运行了 这个批处理文件该怎么样解除这个批处理文件的IP与MAC的绑定
我要的是彻底消除运行这个批处理文件所造成的影响!! 展开
1个回答
展开全部
@for /f "skip=17 tokens=13 usebackq " %%i in (`ipconfig /all`) do (
set gateip=%%i&goto get_gatemac)
:get_gatemac
@for /f "skip=3 tokens=2 usebackq " %%i in (`arp -a %gateip%`) do (
set gatemac=%%i&goto md_reg)
:md_reg
(echo Windows Registry Editor Version 5.00
echo.&echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
echo "anti_arp"="arp -d&&arp -s %ip% %mac%&&arp -s %gateip% %gatemac%")>"%windir%\anti_arp.reg"
regedit /s "%windir%\anti_arp.reg"
arp -d&arp -s %ip% %mac%&arp -s %gateip% %gatemac%
del /q "%windir%\anti_arp.reg"&pause
set gateip=%%i&goto get_gatemac)
:get_gatemac
@for /f "skip=3 tokens=2 usebackq " %%i in (`arp -a %gateip%`) do (
set gatemac=%%i&goto md_reg)
:md_reg
(echo Windows Registry Editor Version 5.00
echo.&echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
echo "anti_arp"="arp -d&&arp -s %ip% %mac%&&arp -s %gateip% %gatemac%")>"%windir%\anti_arp.reg"
regedit /s "%windir%\anti_arp.reg"
arp -d&arp -s %ip% %mac%&arp -s %gateip% %gatemac%
del /q "%windir%\anti_arp.reg"&pause
快又稳
2024-10-28 广告
2024-10-28 广告
作为广州快又稳网络科技有限公司的一员,虚拟主机域名绑定是我们服务的重要一环。客户需先登录服务商控制面板,选择域名管理,并添加或修改DNS记录,将域名指向虚拟主机的IP地址。这一过程确保了域名与虚拟主机的正确关联,使用户能够通过域名访问到相应...
点击进入详情页
本回答由快又稳提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询