Two more scripts of my scripts were added to the development release of nmap, afp-showmount and dns-service-discovery. You can try them out either by downloading them from the nmap-scripts page or by checking out the latest development release over here.
I have been re-working my dns-service-discovery and lexmark-config scripts to make use of the nmap dns library. Why I failed to do this from the beginning is a mystery to me and others. The re-work went well and the end result allowed me to completely ditch the mdns library. In order to achieve what I needed I had to make some slight changes to the dns library which I have posted as a patch to the nmap-dev list.
While re-working the dns-service-discovery script I totally changed the output as well. It’s now less DNS:ish and more focused around the information. Here’s an example of the new format:
PORT STATE SERVICE REASON
5353/udp open zeroconf udp-response
| 548/tcp afpovertcp
| Address=192.168.0.2 fe80:0:0:0:223:6cff:1234:5678
| 3689/tcp daap
| iTSh Version=196609
| Database ID=6FA9761FE123456
| Machine Name=Patrik KarlssonxE2x80x99s Library
| Media Kinds Shared=1
| Machine ID=8945A7123456
|_ Address=192.168.0.2 fe80:0:0:0:223:6cff:1234:5678
As the dns library is in use by other scripts I’ll wait until the changes are tested and confirmed not to break stuff before I post it here. If someone is eager to try the new scripts out the patch and scripts can be found here: