diff --git a/README.md b/README.md index 2553bf4..8c8e8a7 100644 --- a/README.md +++ b/README.md @@ -104,15 +104,11 @@ Ensure the following dependencies are installed: - Click on the **"Scan"** button in the UI to initiate a network scan. - The tool will display a list of all detected devices in the network, including their IP addresses, MAC addresses, hostnames, and vendors. -3. **Viewing Packets**: - - - The tool also captures ARP packets in real-time. You can view these packets in a separate tab within the GUI. - -4. **Device Details**: +3. **Device Details**: - Click on any device in the list to open a detailed window that shows more information about that particular device. -5. **Stopping the Scan**: +4. **Stopping the Scan**: - Press the **"Quit"** button to stop the ARP scan and close the application. diff --git a/core/arp_scanner.py b/core/arp_scanner.py index 9d89062..04d00e0 100644 --- a/core/arp_scanner.py +++ b/core/arp_scanner.py @@ -90,8 +90,26 @@ def add_static_ui_labels(self): os_label = QLabel(f"OS: {get_os()}") os_label.setStyleSheet("color: black") + # Adding additional network info + local_ip_address = get_if_addr(self.interface) + local_ip_label = QLabel(f"Local IP Address: {local_ip_address}") + local_ip_label.setStyleSheet("color: black") + + # Corrected variable name to get the default gateway correctly + default_gateway = netifaces.gateways()[2][0][0] + default_gateway_label = QLabel(f"Default Gateway: {default_gateway}") + default_gateway_label.setStyleSheet("color: black") + + local_mac_address = netifaces.ifaddresses(self.interface)[netifaces.AF_LINK][0]['addr'] + local_mac_label = QLabel(f"Local MAC Address: {local_mac_address}") + local_mac_label.setStyleSheet("color: black") + + # Add labels to the vertical layout self._ui.verticalLayout.addWidget(os_label) self._ui.verticalLayout.addWidget(interface_label) + self._ui.verticalLayout.addWidget(local_ip_label) + self._ui.verticalLayout.addWidget(default_gateway_label) + self._ui.verticalLayout.addWidget(local_mac_label) def setup_font_for_list_widgets(self): """Sets up a uniform font for list widgets.""" diff --git a/images/phantom.png b/images/phantom.png index fd498b0..1327f07 100644 Binary files a/images/phantom.png and b/images/phantom.png differ