Shodan may find your SIP server

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
snuyzm
Posts: 97
Joined: Wed Feb 11, 2015 10:12 pm

Shodan may find your SIP server

Post by snuyzm »

1. Brekeke Product Name and Version: ANY

It seems Shodan (http://www.shodan.io/) uses Namp (http://nmap.org/) to search SIP servers.

If you are using Brekeke SIP Server version 3.0 or later, use this dialplan to hide your server.

[Matching Patterns]
$request = ^OPTIONS
From = sip:nm@nm
To = sip:nm2@nm2
Call-ID = 50000

[Deploy Patterns]
$action = block
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Post by mbylica »

How do you know that is should block the request?

Do you have any example OPTIONS message to take a look?
Are From/To/Call-ID headers always the same?

Thanks.
snuyzm
Posts: 97
Joined: Wed Feb 11, 2015 10:12 pm

Post by snuyzm »

nmap's OPTIONS packet:

Code: Select all

OPTIONS sip:nm SIP/2.0
Via: SIP/2.0/TCP nm;branch=foo
From: <sip:nm@nm>;tag=root
To: <sip:nm2@nm2>
Call-ID: 50000
CSeq: 42 OPTIONS
Max-Forwards: 70
Content-Length: 0
Contact: <sip:nm@nm>
Accept: application/sdp

Source

Code: Select all

local sipprobe = "OPTIONS sip:nm SIP/2.0\r\nVia: SIP/2.0/UDP nm;branch=foo;rport\r\nFrom: <sip:nm@nm>;tag=root\r\nTo: <sip:nm2@nm2>\r\nCall-ID: 50000\r\nCSeq: 42 OPTIONS\r\nMax-Forwards: 70\r\nContent-Length: 0\r\nContact: <sip:nm@nm>\r\nAccept: application/sdp\r\n\r\n"
https://github.com/mcmasterathl/scan-to ... r-plus.nse
Post Reply