使用道具 举报
@echo off eventquery /L application /R 1 /V /FI "ID EQ 521" >a.txt for /f "tokens=3 delims=****" %%a in (a.txt) do echo.%%a >b.txt for /f "tokens=1 delims= " %%a in (b.txt) do echo.netsh ipsec static delete filter filterlist=BlockIP dstaddr=me dstport=0 srcaddr=%%a srcport=0 protocol=any mirrored=yes srcmask=255.255.255.255 dstmask=255.255.255.255 >BlockIP.bat for /f "tokens=1 delims= " %%a in (b.txt) do echo.netsh ipsec static add filter filterlist=BlockIP dstaddr=me dstport=0 srcaddr=%%a srcport=0 protocol=any mirrored=yes srcmask=255.255.255.255 dstmask=255.255.255.255 >>BlockIP.bat echo.del a.txt >>BlockIP.bat echo.del b.txt >>BlockIP.bat echo.del BlockIP.bat >>BlockIP.bat BlockIP.bat
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|邮件技术资讯网
GMT+8, 2024-11-19 04:31
Powered by Discuz! X3.2
© 2001-2016 Comsenz Inc.
本论坛为非盈利中立机构,所有言论属发表者个人意见,不代表本论坛立场。内容所涉及版权和法律相关事宜请参考各自所有者的条款。 如认定侵犯了您权利,请联系我们。本论坛原创内容请联系后再行转载并务必保留我站信息。此声明修改不另行通知,保留最终解释权。 *本论坛会员专属QQ群: *本论坛会员备用QQ群: