Home page logo

nmap-dev logo Nmap Development mailing list archives

[PATCH] [Nsock] [Ncat] SCTP client support
From: Daniel Roethlisberger <daniel () roe ch>
Date: Sat, 6 Jun 2009 20:40:48 +0200

I've quickly whipped up client-only SCTP support for Ncat, which
also required some changes to Nsock.  With the patch, Ncat can be
used to connect to simple SCTP services operating in TCP
compatible mode (that is, only the default stream of the SCTP
association is used).

Please review the patch:

The changes to the Nsock and Ncat configure scripts are not
included in the diff -- run autoconf first in order to generate
the updated configure scripts.  There seems to be a problem in
autoconf-2.62, the awk checks contain a carriage return character
which confuses both patch(1) and svn eol-style handling, which is
why I removed the changes to the generated configure scripts from
the patch.

Here's the SCTP client code in action:

$ ./ncat -v -6 --sctp www.sctp.org 80
Ncat version 4.85BETA9 ( http://nmap.org/ncat )
Connected to 2001:240:585:3:204:5aff:fe7c:7c67:80.
GET / HTTP/1.1
Host: www.sctp.org
Connection: close

HTTP/1.1 200 OK
Date: Sat, 06 Jun 2009 18:08:21 GMT
Server: Apache/2.0.63 (FreeBSD) PHP/4.4.9 with Suhosin-Patch
Last-Modified: Mon, 29 Jul 2002 22:41:59 GMT
ETag: "19e06a-132-d4e15bc0"
Accept-Ranges: bytes
Content-Length: 306
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en

  <title> Stream Control Transmission Protocol (SCTP) </title>

<frameset cols="20%,80%" framespacing="0" border="0" frameborder="0" >
  <frame src="navbar.html" name="navbar_frame" scrolling="auto">
  <frame src="news.html" name="right_frame" scrolling="auto"> 


Daniel Roethlisberger

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

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