diff --git a/scripts/scan.awk b/scripts/scan.awk new file mode 100644 index 0000000..0ef7396 --- /dev/null +++ b/scripts/scan.awk @@ -0,0 +1,29 @@ +BEGIN { + "nix build -f '' nmap --no-link --json | jq -r '.[0].outputs.out'"|getline nmap + db = nmap"/share/nmap/nmap-mac-prefixes" + while((getline line < db) > 0) + { + n = split(line, rec, " "); + prefix = rec[1] + vendors[prefix] = rec[2] + for (i=3; i