Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize batch processing against arp spoofing

Shulou Source: shulou.com Published: 2022-06-03 08:15:20 11月08日 Update

This article is about how to implement batch processing against arp spoofing. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The code is as follows:

@ echo OFF arp-d if% ~ n0==arp exit if% ~ n0==Arp exit if% ~ n0==ARP exit echo is getting native information. : IP FOR / f "skip=13 tokens=15 usebackq"% I in (`ipconfig / all`) do Set IP=%%i & & GOTO MAC: MAC echo IP:%IP% FOR / f "skip=13 tokens=12 usebackq"% I in (`ipconfig / all`) do Set MAC=%%i & & GOTO GateIP: GateIP echo MAC:%MAC% arp-s% IP%% MAC% echo is getting gateway information. FOR / f "skip=17 tokens=13 usebackq"% I in (`ipconfig / all`) do Set GateIP=%%i & & GOTO GateMac: GateMac echo GateIP:%GateIP% ping% GateIP%-t-n 1 FOR / f "skip=3 tokens=2 usebackq"% I in (`GateIP% `) do Set GateMAC=%%i & & GOTO Start: Start echo GateMAC:%GateMAC% arp-s% GateIP%% GateMAC% echo operation completed! Exit, thank you for your reading! On "how to achieve anti-arp cheating batch processing" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Information content more being article good practical code article look knowledge gateway local reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Information OPPO Reno Apple Shulou Tech Info