In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how the server to achieve anti-arp spoofing batch, ARP double binding script, no temporary files, the article is very detailed, has a certain reference value, interested friends must read it!
ARP double binding script, no temporary file (LZ-Myst version) below the horizontal line, save to BAT format can be used.
The code is as follows:
For / f "tokens=13"% I in ('ipconfig / all ^ | find "Default Gateway"') do set GatewayIP=%%I
For / f "tokens=1,2"% I in ('arp-a ^ | find "% GatewayIP%"') do if% Illumination% GatewayIP% arp-s% I%% J
For / f "tokens=15"% I in ('ipconfig / all ^ | find "IP Address"') do set ip=%%i
For / f "tokens=12"% I in ('ipconfig / all ^ | find "Physical Address"') do set mac=%%i
Arp-s% ip%% mac%
Note that the above code will have some problems in practical application, because if a machine with ARP virus already exists in the local area network, it will continue to send deceptive packets, so there will be a problem in automatically obtaining the gateway, so another piece of code has been modified to handwrite the MAC address of the real gateway. There is no need to write the IP address of the real gateway. The code is as follows.
Change the scarlet letter in the code box below to your real MAC address!
The MAC address format is: 00-14-78-32-14-f2 is the format displayed by ARP-A.
The code is as follows:
For / f "tokens=13"% I in ('ipconfig / all ^ | find "Default Gateway"') do set GatewayIP=%%I
Arp-s% GatewayIP% Real Gateway MAC
For / f "tokens=15"% I in ('ipconfig / all ^ | find "IP Address"') do set ip=%%i
For / f "tokens=12"% I in ('ipconfig / all ^ | find "Physical Address"') do set mac=%%i
Arp-s% ip%% mac%
The above is all the contents of the article "how to achieve anti-arp spoofing batches, ARP double-binding scripts, no temporary files". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.