Nmap Development mailing list archives

Enhancement in Ncat - Broadcast data by using delimiter


From: Rewanth Cool <ravatheruler4 () gmail com>
Date: Mon, 27 Mar 2017 20:35:25 +0530

An enhancement is made in Ncat for broadcasting the data using delimiter.

--use-delimiter option is added to the main menu of Ncat. This feature lets
the server broadcast data to its clients at regular intervals by breaking
it at delimiter.

It takes ASCII value of the character as an argument.

Terminal 1 : cat <file_name> | ./ncat --use-delimiter 10 -d 2 -l 1337 -vv
Terminal 2 :  ./ncat localhost 1337

This allows the server to broadcast the data in the file by breaking it at
new line (ASCII value 10) at regular intervals, here 2 seconds.

-d / delay option is required to see the change in the way of data
transmission.
-vv notifies you when you EOF.

Even if you do not use -d option the data will be sent by breaking it at
delimiters only but you can't see the change as the transfer speed is very
high.

Working :
It checks the input character by character till it finds the delimiter or
until it reaches EOF. If loads the data into the buffer until it reaches
its threshold value. Once its reaches it will broadcast the data if no
delimiter is found in the buffer.

This can be for chat system also, use 10 as the argument as a delimiter.

There is a clear and brief explanation on how to use this new feature in
the PR #808 <https://github.com/nmap/nmap/pull/808> .

Best regards,
Rewanth.
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: