Search for all IP addresses and MAC addresses of the same network segment

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.