Created
October 4, 2018 17:10
-
-
Save colehocking/64eb30cca8baa0464af2bd4174721e0b to your computer and use it in GitHub Desktop.
Use OSX smbutil to NetBIOS resolve a file full of IPs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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