Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Jan 8, 2024
1 parent 8845d4a commit eeaa389
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def get_vendor(mac, oui_file=OUI_FILE):
mac_half_upper = mac_half.upper()


vendor_command = "grep -i " + str(mac_half_upper) + " " + str(os.path.join(__location__, oui_file)) + " | cut -d')' -f2 | tr -d '\t'"
result = subprocess.run(vendor_command, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) #.decode())
vendor_alt = result.stdout.split('\n')[0]
print("VENDOR_ALT FROM GREP: " + str(vendor_alt))
#vendor_command = "grep -i " + str(mac_half_upper) + " " + str(os.path.join(__location__, oui_file)) + " | cut -d')' -f2 | tr -d '\t'"
#result = subprocess.run(vendor_command, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) #.decode())
#vendor_alt = result.stdout.split('\n')[0]
#print("VENDOR_ALT FROM GREP: " + str(vendor_alt))

with open(os.path.join(__location__, oui_file)) as file:
#mac_half = mac_clean[0:6]
Expand Down

0 comments on commit eeaa389

Please sign in to comment.