Skip to content
Debian patched port of the OpenBSD netcat(nc) for Linux, including support for IPv6, proxies, and Unix sockets.
C Roff Shell Makefile
Branch: master
Clone or download
Latest commit ed802ba Jul 18, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Mar 28, 2017
Makefile Fix IPV6_TCLASS missing on CentOS 4.3. Mar 28, 2017
README.md Fix Issue #1. Jul 18, 2017
atomicio.c Merged sources version 1.130. Mar 28, 2017
atomicio.h Merged sources version 1.130. Mar 28, 2017
build.sh Fix Issue #1. Jul 18, 2017
nc.1 Merged sources version 1.130. Mar 28, 2017
netcat.c Fix Issue #1. Jul 18, 2017
socks.c Merged sources version 1.130. Mar 28, 2017
update.sh Merged sources version 1.130. Mar 28, 2017

README.md

netcat

Merged Debian port of the OpenBSD rewrite of netcat(nc), including support for IPv6, proxies, and Unix sockets.

Because GNU netcat doesn't support -x proxy option, it is hard to use ssh ProxyCommand nc -x localhost:1080 %h %p on an ancient linux distribution such as CentOS 4.3. Debian has ported the OpenBSD rewrite of netcat to Linux. It is a little complicated to use or find the source code, so here I created this repo.

Usage

  1. Modify build.sh PREFIX
# Where do you want to put nc in to
PREFIX=/usr/local
# Your libbsd dev lib install path
BSD_LIBRARY_PATH=/lib/x86_64-linux-gnu
BSD_INCLUDE_PATH=/usr/include
  1. Then
$ bash ./build.sh
You can’t perform that action at this time.