Table of Contents
SKY-SEC LAN Scanner is a lightweight and efficient tool designed in C language to identify the IP (Internet Protocol) address and MAC (Media Access Control) addresses of active devices on a network using ARP (Address Resolution Protocol). This project has been developed to provide insights into how ARP-based network tools work while providing a user-friendly interface for network scanning.
This tool serves as:
- A practical example of how ARP-based tools operate under the hood.
- A network analysis tool for discovering active IP addresses and their associated MAC addresses in a given range.
- A way to facilitate learning and experimentation with low-level network programming in C.
- Linux system (the tool uses Linux-specific APIs).
- Root privileges (required for raw socket operations).
- C compiler (e.g., gcc).
-
Clone the repository:
git clone https://github.com/skylab-kulubu/LANsCanner.git cd LANsCanner
-
Compile the source code:
gcc -o LAN_Scanner LANsCanner.c
-
Run the tool with the required parameters:
sudo ./LAN_Scanner <INTERFACE> <START_IP> <END_IP>
Parameters:
<INTERFACE>
: The network interface to use (e.g., eth0, wlan0).<START_IP>
: Starting IP address for the scan (e.g., 192.168.1.1).<END_IP>
: Ending IP address for the scan (e.g., 192.168.1.255).
Example:
sudo ./Lan_Scanner wlan0 192.168.1.1 192.168.1.10
The scanner outputs active IP addresses and their corresponding MAC addresses in real time.