Skip to content

Commit 8bdc44d

Browse files
committed
README and simple stuff
1 parent 84ca48e commit 8bdc44d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Ensure the following dependencies are installed:
3535
## Requirements
3636

3737
- **Python 3.12+**
38-
- **pipenv**: For managing the virtual environment and dependencies.
3938
- **scapy**: For ARP scanning and packet manipulation.
4039
- **PySide6**: For building the graphical user interface.
4140
- **netifaces**: To retrieve network interface details.

core/arp_scanner.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,10 @@ def run(self):
247247
print(f"Error during ARP scan: {e}")
248248
self.finished.emit([])
249249
return
250-
for _, packet in enumerate(arp_packets):
251-
if packet[1].haslayer(ARP):
252-
ip_address = packet[1][ARP].psrc
253-
mac = packet[1][ARP].hwsrc
254-
device_vendor = self.mac_vendor_lookup.lookup_vendor(mac)
255-
hostname = net.get_hostname(ip_address)
256-
arp_results.append((ip_address, mac, hostname, device_vendor, packet[1][ARP]))
250+
for packet in arp_packets:
251+
ip_address = packet[1][ARP].psrc
252+
mac = packet[1][ARP].hwsrc
253+
device_vendor = self.mac_vendor_lookup.lookup_vendor(mac)
254+
hostname = net.get_hostname(ip_address)
255+
arp_results.append((ip_address, mac, hostname, device_vendor, packet[1][ARP]))
257256
self.finished.emit(arp_results)

0 commit comments

Comments
 (0)