Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2000 01:14:27 +0200 (IST)
From:      roman@xpert.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23658: NEW PORT: net/cryptcat - twofish armored netcat reincarnation
Message-ID:  <200012192314.eBJNERU05132@alchemy.oven.org>
Resent-Message-ID: <200012192320.eBJNK3688901@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23658
>Category:       ports
>Synopsis:       NEW PORT: net/cryptcat - twofish armored netcat reincarnation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 19 15:20:03 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Roman Shterenzon
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:


>Description:

This is the usual netcat with added value. read/write functions were replaced
by their crypto cousins.
I almost blindly copied O'Briens (thanks David) port for netcat and done just
minor modifications. It works fine. The only annoying issue is that wrong key
is not reported; I'll fix that later.

>How-To-Repeat:


>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cryptcat
#	cryptcat/distinfo
#	cryptcat/files
#	cryptcat/files/patch-aa
#	cryptcat/Makefile
#	cryptcat/pkg-comment
#	cryptcat/pkg-descr
#	cryptcat/pkg-plist
#
echo c - cryptcat
mkdir -p cryptcat > /dev/null 2>&1
echo x - cryptcat/distinfo
sed 's/^X//' >cryptcat/distinfo << 'END-of-cryptcat/distinfo'
XMD5 (cryptcat_linux.tar) = 5cf484a201128c233712f68fdaf3fa7c
END-of-cryptcat/distinfo
echo c - cryptcat/files
mkdir -p cryptcat/files > /dev/null 2>&1
echo x - cryptcat/files/patch-aa
sed 's/^X//' >cryptcat/files/patch-aa << 'END-of-cryptcat/files/patch-aa'
X--- Makefile.orig	Wed Dec 20 00:57:35 2000
X+++ Makefile	Wed Dec 20 00:59:15 2000
X@@ -10,12 +10,12 @@
X # debugging
X # DFLAGS = -DTEST -DDEBUG
X DFLAGS = -DGAPING_SECURITY_HOLE
X-CFLAGS = -O
X+CFLAGS ?= -O
X XFLAGS = 	# xtra cflags, set by systype targets
X XLIBS =		# xtra libs if necessary?
X # -Bstatic for sunos,  -static for gcc, etc.  You want this, trust me.
X STATIC =
X-CC = cc $(CFLAGS)
X+CC ?= cc
X LD = $(CC) -s	# linker; defaults to stripped executables
X o = o		# object extension
X 
X@@ -29,7 +29,7 @@
X ### HARD TARGETS
X 
X cryptcat:	netcat.c farm9crypt.o twofish2.o
X-	$(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)
X+	$(LD) $(CFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)
X 
X nc-dos:
X 	@echo "DOS?!  Maybe someday, but not now"
X@@ -82,7 +82,7 @@
X 
X # virtually the same as netbsd/bsd44lite/whatever
X freebsd:
X-	make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD' STATIC=-static
X+	make -e $(ALL) $(MFLAGS) XFLAGS='-DFREEBSD -DGAPING_SECURITY_HOLE -DTELNET' STATIC=-static
X 
X bsdi:
X 	make -e $(ALL) $(MFLAGS) XFLAGS='-DBSDI' STATIC=-Bstatic
END-of-cryptcat/files/patch-aa
echo x - cryptcat/Makefile
sed 's/^X//' >cryptcat/Makefile << 'END-of-cryptcat/Makefile'
X# Ports collection makefile for:  cryptcat
X# Date created:			  20 Dec 2000
X# Whom:				  Roman Shterenzon <roman@xpert.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cryptcat
XPORTVERSION=	0.0
XCATEGORIES=	net
XMASTER_SITES=	http://farm9.com/content/Free_Tools/
XDISTNAME=	cryptcat_linux
XEXTRACT_SUFX=	.tar
X
XMAINTAINER=	roman@xpert.com
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
XALL_TARGET=	freebsd
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/cryptcat ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/cryptcat \
X		&& ${CHMOD} 755 ${PREFIX}/share/doc/cryptcat
X	${INSTALL_DATA} ${WRKSRC}/README.cryptcat ${PREFIX}/share/doc/cryptcat
X.endif
X
X.include <bsd.port.mk>
END-of-cryptcat/Makefile
echo x - cryptcat/pkg-comment
sed 's/^X//' >cryptcat/pkg-comment << 'END-of-cryptcat/pkg-comment'
XStandard netcat enhanced with twofish encryption
END-of-cryptcat/pkg-comment
echo x - cryptcat/pkg-descr
sed 's/^X//' >cryptcat/pkg-descr << 'END-of-cryptcat/pkg-descr'
XCryptcat is the standard netcat enhanced with twofish encryption. 
X
XTwofish is courtesy of counterpane, and cryptix. We started with the 
XJava version of twofish from cryptix, converted it to C++ (don't ask why), 
Xand enhanced it by adding CBC mode and the ciphertext stealing technique 
Xfrom Applied Cryptography (pg. 196) 
X
XHow do you use it?
X
X  Machine A: cryptcat -l -p 1234 < testfile 
X  Machine B: cryptcat <machine A IP> 1234 
X
XThis is identical to the normal netcat options for doing exactly the 
Xsame thing.  However, in this case the data transferred is encrypted.
X
XFor more information about netcat see net/netcat port.
X
XWWW: http://farm9.com/content/Free_Tools/Cryptcat/
X
XRoman Shterenzon <roman@xpert.com>
END-of-cryptcat/pkg-descr
echo x - cryptcat/pkg-plist
sed 's/^X//' >cryptcat/pkg-plist << 'END-of-cryptcat/pkg-plist'
Xbin/cryptcat
Xshare/doc/cryptcat/README.cryptcat
X@dirrm share/doc/cryptcat
END-of-cryptcat/pkg-plist
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012192314.eBJNERU05132>