Skip to content

Commit

Permalink
fixing buggy gpt code :D
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Sep 23, 2024
1 parent 7b6b2b9 commit 9ecebff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/arp_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ARPScannerThread(QThread):
progress_updated = pyqtSignal(int)
verbose_output = pyqtSignal(str) # Signal to emit verbose output

def __init__(self, interface, mac_vendor_lookup, timeout=5):
def __init__(self, interface, mac_vendor_lookup, timeout=1):
super().__init__()
self.interface = interface
self.mac_vendor_lookup = mac_vendor_lookup
Expand Down
3 changes: 1 addition & 2 deletions core/vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _load_from_url(cls, url):
dict: A dictionary mapping OUI (first 6 characters of MAC address) to vendor names.
If the request fails, returns an empty dictionary.
"""
response = requests.get(url, timeout=5)
response = requests.get(url, timeout=1)
if response.status_code == 200:
csv_data = StringIO(response.text)
csvreader = csv.reader(csv_data)
Expand All @@ -102,7 +102,6 @@ def _save_to_file(cls, filename, data):
"""
with open(filename, 'w', encoding='utf-8') as file:
writer = csv.writer(file)
writer.writerow(["Organizationally Unique Identifier", "Organization Name"])
for oui, vendor in data.items():
writer.writerow([oui, vendor])

Expand Down

0 comments on commit 9ecebff

Please sign in to comment.