Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Sun Service Tags Nmap Discovery script
From: David Fifield <david () bamsoftware com>
Date: Mon, 21 Feb 2011 20:36:08 -0800

On Thu, Jan 13, 2011 at 10:24:50AM +1100, Matthew Flanagan wrote:
On 11 January 2011 15:57, David Fifield <david () bamsoftware com> wrote:

It is definitely something we can include. We just haven't gotten any
feedback yet.

I found out that service tags is installed by default in OpenSolaris. I
booted osol-0906-x86.iso in text mode (no need to install), then ran

$ svcadm enable '*std*'

There are two services that need to be running: stdiscover and stlisten. Run:

$ svcs stdiscover stlisten

to check their status.

Thanks for that. I was able to test again after enabling both these
services and it worked well for me. I've committed your script now.
Thanks for your contribution!

I intended '*std*' to match in.stdiscover, but I'm not sure that's what
it's doing. Anyway, it opens port 6481. I ran the script and got this

Discovered open port 6481/udp on
NSE: 'servicetags' (thread: 0x8e75ca0) against threw an error!
stack traceback:
       [C]: in function 'try'
       ./scripts/servicetags.nse:141: in function <./scripts/servicetags.nse:83>
       (tail call): ?

I'm attaching a packet capture. The scanning machine sends
"[PROBE] 1294721585\r\n" and receives " 6481\n".

That is not a valid response according the the spec. Probably because
stlisten is not running.

Nevertheless, the script shouldn't crash and lose the information that
the UDP port is open. I changed the script so it can still return even
if the HTTP parts fail.

David Fifield
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]