Nmap Development mailing list archives

Re: SIP version detection script


From: Tom Sellers <nmap () fadedcode net>
Date: Mon, 23 Nov 2009 20:24:54 -0600

Patrik Karlsson wrote:
Hi all,

I just finished my first nmap script with some great help from Ron Bowes. Like the e-mail subject states it does version detection for the SIP protocol.
I've done some basic testing and it looks as if it does what it't intended to.

Here's some sample output:

Interesting ports on 192.168.56.3:
PORT     STATE         SERVICE VERSION
5060/udp open|filtered sip     Asterisk PBX

Interesting ports on 192.168.56.4:
PORT     STATE         SERVICE VERSION
5060/udp open|filtered sip     3CXPhoneSystem 8.0.9844.0

Bug reports or comments and suggestions on things that could be done better/differently are most welcome.


Patrik,

        I have not had a chance to look at your code, but looking at your output
I would suggest setting the port state to open when you successfully identify the
service.

Something like this should work:

         nmap.set_port_port(host, port, "open")


Tom
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: