![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-05 12:35 |
共 48,038 主题排行 / 350,123 发帖 / 今日 1 篇 / 48,251 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » [求助]求人帮检查此防御内部ARP攻击的BAT |
| 可打印版本 800 / 2 |
| 第1楼 applecy | 发表于 2007-08-05 04:31 |
| 初级用户 发帖 78 积分 168 | |
|
[求助]求人帮检查此防御内部ARP攻击的BAT RT:
今天某办公场所网络瘫痪,负责人坚持说是ARP攻击. 不知道这样可不可以。。 @echo off arp /d for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "Physical Address"') do set mac=%%j for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "IP Address"') do set ip=%%j arp -s %ip:~1% %Mac:~1% exit 急吖急吖,,,有相关经验的朋友们都帮偶下撒~~~ 因为小弟第一次碰到ARP攻击,真的慌了 [ Last edited by applecy on 2007-8-5 at 05:12 AM ] |
|
| 第2楼 applecy | 发表于 2007-08-05 04:32 |
| 初级用户 发帖 78 积分 168 | |
|
在线求答...55555
|
|
| 第3楼 hyb198351 | 发表于 2007-08-05 22:58 |
| 新手上路 发帖 2 积分 3 | |
|
@echo off
arp -d for /f "delims=: tokens=2" %%i in ('ipconfig /all ^|find /i "ip address"') do set ip=%%i for /f "delims=: tokens=2" %%m in ('ipconfig /all^|find /i "physical address"') do set mac=%%m arp -s %ip% %mac% for /f "delims=: tokens=2" %%g in ('ipconfig /all ^|find /i "default gateway"') do set gip=%%g ping %gip% -n 1 >nul for /f "tokens=2" %%n in ('arp -a ^|find "%gip%"') do set gmac=%%n arp -s %gip% %gmac% |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |