Skip to content

Instantly share code, notes, and snippets.

@colehocking
Created October 4, 2018 17:10
Show Gist options
  • Save colehocking/64eb30cca8baa0464af2bd4174721e0b to your computer and use it in GitHub Desktop.
Save colehocking/64eb30cca8baa0464af2bd4174721e0b to your computer and use it in GitHub Desktop.
Use OSX smbutil to NetBIOS resolve a file full of IPs
#!/bin/bash
# Use the OSX smbutil to query a file of IPs
# use 'lookup' instead of 'status' to get IPs from Netbi names
file="$1"
while read -r line; do
smbutil status "$line"
done < "$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment