Nmap Development mailing list archives
Re: Ncat patch: --color-input
From: "Rick \"Zero_Chaos\" Farina" <zerochaos () gentoo org>
Date: Tue, 17 Sep 2013 15:38:38 -0400
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/16/2013 01:47 PM, Jacek Wielemborek wrote:
Hi, I just wrote a fun Ncat feature, called --color-input, inspired by Wireshark's "follow TCP stream" and one Wikipedia image (https://en.wikipedia.org/wiki/File:Http_request_telnet_ubuntu.png). The new feature colors all incoming network data with red color, so you can easily tell terminal and network input apart. This might be useful for example when chatting using Ncat or for educational purposes. Invocation: ncat --color-input scanme.nmap.org 80
Looks neat but it "--color-input" really appropriate? Sure looks to me like it's the output that is colored. Thanks, Zero
The attachments contain the patch and a screenshot you could use in the documentation. The patch includes both POSIX and Windows code, which turns off when the standard output is redirected (to make it consistent with Windows). I also updated the manual page and changelog. The patch should apply against the latest SVN trunk. Here's a diffstat: ChangeLog | 3 +++ docs/ncat.xml | 13 +++++++++++++ ncat_connect.c | 6 +++--- ncat_core.c | 1 + ncat_core.h | 3 +++ ncat_listen.c | 4 ++-- ncat_main.c | 10 ++++++++++ ncat_posix.c | 18 ++++++++++++++++++ ncat_win.c | 21 +++++++++++++++++++++ 9 files changed, 74 insertions(+), 5 deletions(-) Hope you like it! Let me know if you're interested in a parameter (optional?) to the switch that lets user specify the color. Yours, Jacek Wielemborek _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSOK++AAoJEKXdFCfdEflKIUQP/3XHSrG/Oak0oD50x776gdyz kRkPbCYqDKWBeDohucczltiqbp/h6u5nw4I6tVQnRpcR/zV74bw8pw/WICJtYLvC Fvk/inWey6ibuGOejdrh2fYaicJZ04aUZ24DLt7tQU0FStgpgA14b28z4NX4FV5K M6K7evD4omM7kkSd7jIfq3wfialTAhnDjYGhatBZ44orZop5BsJjVQ0aC+/w2nSa Z2GCte83DGCBoMPtaWv/1D4bBLYYFFAl/FFtAJL/OcxqkH48oDNTaAzkPqqmXz5+ f8CWr4a2Xli6brKaJb5hfxuEc2lJXQu1X6ddJYWEPk8B8u3BKbZEBrKyahHcaUcE 7slMlWG25HOfd1J0RYUp644XjqpJtSPPst0LmRUxui8pts0ZcJeN5OAy1AD0RCiC g9X2R+bPPSpR0XwPFgK9+ZQqAJKpx7nGCoFxJOE+x6lLMAh6b6eFVj/MnapRIrUW NVSN6GstsikhFvhUrpRm2sO8xHr3pQpJJxn7Q6XkULwG2XXJJFdMg1fvaAQD2iYt QiU4Icyt+EB/8bbrylS6Lvye5fd6TKJDqCGBDQKlehKd9VlKVxvcp3SNC7f2FuPW A4p7EWtFP6W04TMP74J9Yt6y+dv9dtIJXpIELmidk0rFGVdiUNQZx780xMsj7xH3 lBsPfDvu6mYXI3/26NEA =BHU5 -----END PGP SIGNATURE----- _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Ncat patch: --color-input Jacek Wielemborek (Sep 16)
- Re: Ncat patch: --color-input Rick "Zero_Chaos" Farina (Sep 17)
- Re: Ncat patch: --color-input Jacek Wielemborek (Sep 17)
- Re: Ncat patch: --color-input Rick "Zero_Chaos" Farina (Sep 17)