diff --git a/README.md b/README.md index 8c8e8a7..a501534 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ Ensure the following dependencies are installed: ## Requirements - **Python 3.12+** -- **pipenv**: For managing the virtual environment and dependencies. - **scapy**: For ARP scanning and packet manipulation. - **PySide6**: For building the graphical user interface. - **netifaces**: To retrieve network interface details. diff --git a/core/arp_scanner.py b/core/arp_scanner.py index 289da61..e26cea0 100644 --- a/core/arp_scanner.py +++ b/core/arp_scanner.py @@ -247,11 +247,10 @@ def run(self): print(f"Error during ARP scan: {e}") self.finished.emit([]) return - for _, packet in enumerate(arp_packets): - if packet[1].haslayer(ARP): - ip_address = packet[1][ARP].psrc - mac = packet[1][ARP].hwsrc - device_vendor = self.mac_vendor_lookup.lookup_vendor(mac) - hostname = net.get_hostname(ip_address) - arp_results.append((ip_address, mac, hostname, device_vendor, packet[1][ARP])) + for packet in arp_packets: + ip_address = packet[1][ARP].psrc + mac = packet[1][ARP].hwsrc + device_vendor = self.mac_vendor_lookup.lookup_vendor(mac) + hostname = net.get_hostname(ip_address) + arp_results.append((ip_address, mac, hostname, device_vendor, packet[1][ARP])) self.finished.emit(arp_results)