https://github.com/jornane/ncc
netcat client, a bad clone of OpenBSD netcat
https://github.com/jornane/ncc
Last synced: 2 months ago
JSON representation
netcat client, a bad clone of OpenBSD netcat
- Host: GitHub
- URL: https://github.com/jornane/ncc
- Owner: jornane
- Created: 2017-10-24T10:29:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T15:35:17.000Z (over 7 years ago)
- Last Synced: 2025-01-31T22:11:16.304Z (4 months ago)
- Language: C
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Horrible `nc` clone
This piece of sh^Hoftware does roughly the same as [nc(1)](https://www.freebsd.org/cgi/man.cgi?query=nc&sektion=1)
which is found on most \*NIX systems. I wrote this to learn C and I
have to say job well done on that, but other than that I won't make any
guarantees that it won't feed your cat to gremlins, it probably will.ncc has been tested to compile and work on recent versions of FreeBSD,
NetBSD, OpenBSD and CentOS. It will probably also work on other OSes,
YMMV. It will only work as a TCP client, no UDP, no server mode and no
fancy features such as source address selection.This version uses [select(2)](https://www.freebsd.org/cgi/man.cgi?query=select&sektion=2)
to do its job, I intend to also try other mechanisms.## Compilation
Should be as easy as
make
If your operating system doesn't come with a compiler you may rectify
the situation with:yum install gcc
## Installation
If you really like `ncc` and you'd like it to be available as a general
command, simply install it in **/usr/local/bin**.make install
## Usage
ncc host port
The application knows no command line flags.