The nemesis packet sending function is used to construct ARP requests and batch processing. All IP addresses and corresponding MAC addresses of the same network segment can be identified within 10 seconds.
Batch Processing code: discover. bat
@ Echo off
Set ip = 0
: Loop
If % ip %== 255 goto end
Set/A ip = % ip % + 1
@ Nemesis arp-S 192.168.1.255-h 00: 0e: e8: 1e: 02: dd-D 192.168.1.% ip %-m 00: 00: 00: 00: 00: 00-P payload.txt-m ff: FF-H 00: 0e: e8: 1e: 02: dd
@ Echo 192.168.1.% ip %
Goto loop
: End
When running, use wireshark and other packet capture software to obtain the IP address and the corresponding MAC address.
Limitation: If the LAN switch is configured with IP + MAC binding, or the IP and MAC are filtered, this method cannot work.
Freelancer.com-the top part-time software job website
Part-time programming, development, C/C ++/C #, PHP, Web development, ASP, outsourcing projects, foreign private jobs, part-time programmers, outsourcing development, foreign Project outsourcing, website outsourcing project
Author "techlife"