Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 23:31:07 GMT
From:      Dennis Herrmann <adox@mcx2.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121931: New Port: <net/mgmt> Brute-force dictionary attack against WPA-PSK.
Message-ID:  <200803202331.m2KNV6fj016435@www.freebsd.org>
Resent-Message-ID: <200803202340.m2KNe4PZ042957@freefall.freebsd.org>

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

>Number:         121931
>Category:       ports
>Synopsis:       New Port: <net/mgmt> Brute-force dictionary attack against WPA-PSK.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 20 23:40:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dennis Herrmann
>Release:        FreeBSD 7.0-RELEASE
>Organization:
>Environment:
FreeBSD contempt 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Sun Mar  2 17:31:14 CET 2008     root@contempt:/usr/obj/usr/src/sys/CONTEMPT  i386
>Description:
coWPAtty is designed to audit the security of pre-shared keys
(PSK) selected in WiFi Protected Access (WPA) networks.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	cowpatty
#	cowpatty/distinfo
#	cowpatty/Makefile
#	cowpatty/files
#	cowpatty/files/patch-Makefile
#	cowpatty/files/pkg-message.in
#	cowpatty/pkg-descr
#	cowpatty/pkg-plist
#
echo c - cowpatty
mkdir -p cowpatty > /dev/null 2>&1
echo x - cowpatty/distinfo
sed 's/^X//' >cowpatty/distinfo << 'END-of-cowpatty/distinfo'
XMD5 (cowpatty-4.3.tgz) = deccac0763a05ef7014107d347bf9190
XSHA256 (cowpatty-4.3.tgz) = b82154c9183fed3c26226c124f5e50ef38adaaafc84c5a13d9256b1ebd489bca
XSIZE (cowpatty-4.3.tgz) = 103720
END-of-cowpatty/distinfo
echo x - cowpatty/Makefile
sed 's/^X//' >cowpatty/Makefile << 'END-of-cowpatty/Makefile'
X# New ports collection makefile for:	cowpatty
X# Date created:		March 20, 2008
X# Whom:		Dennis Herrmann <adox@mcx2.org>
X#
X# $FreeBSD:$
X#
X
XPORTNAME=	cowpatty
XPORTVERSION=	4.3
XPORTREVISION=	1
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://www.willhackforsushi.com/code/cowpatty/4.3/ \
X		http://mcx2.org/files/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	adox@mcx2.org
XCOMMENT=	Brute-force dictionary attack against WPA-PSK
X
XBUILD_DEPENDS=	openssl:${PORTSDIR}/security/openssl-stable
X
XPORTDOCS=	FAQ README
XSUB_FILES=	pkg-message
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} "Installing additional documentation to ${DOCSDIR}"
X	@${MKDIR} ${DOCSDIR}
X	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
X.endif
X
X	@${ECHO_MSG} ""
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG} ""
X
X.include <bsd.port.mk>
END-of-cowpatty/Makefile
echo c - cowpatty/files
mkdir -p cowpatty/files > /dev/null 2>&1
echo x - cowpatty/files/patch-Makefile
sed 's/^X//' >cowpatty/files/patch-Makefile << 'END-of-cowpatty/files/patch-Makefile'
X--- Makefile.orig	2008-03-20 21:36:01.000000000 +0100
X+++ Makefile	2008-03-20 21:40:39.000000000 +0100
X@@ -1,21 +1,11 @@
X-##################################
X-# <jwright> Well, I may be doing stupid things with make
X-# <jwright> OK, it was Makefile stupid'ness
X-# <jwright> I don't really understand what the hell I am doing with Make, I'm
X-#           just copying other files and seeing what works.
X-# <dragorn> heh
X-# <dragorn> i think thats all anyone does
X-# <dragorn> make is a twisted beast
X-##################################
X LDLIBS		= -lpcap
X CFLAGS		= -pipe -Wall -DOPENSSL 
X CFLAGS		+= -O2
X LDLIBS		+= -lcrypto
X CFLAGS		+= -g3 -ggdb
X-#CFLAGS		+= -static
X PROGOBJ		= md5.o sha1.o utils.o cowpatty.o genpmk.o
X PROG		= cowpatty genpmk
X-BINDIR		= /usr/local/bin
X+PREFIX?= /usr/local
X 
X all: $(PROGOBJ) $(PROG)
X 
X@@ -44,8 +34,5 @@
X 	@ls -l $(PROG)
X 
X install: all
X-	install -d $(DESTDIR)$(BINDIR)
X-	install -m 755 $(PROG) $(BINDIR)$(DESTDIR)
X-
X-love:
X-	@echo "Not right now, I have a headache."
X+	install -d $(DESTDIR)$(PREFIX)/bin
X+	install -m 755 $(PROG) $(PREFIX)/bin
END-of-cowpatty/files/patch-Makefile
echo x - cowpatty/files/pkg-message.in
sed 's/^X//' >cowpatty/files/pkg-message.in << 'END-of-cowpatty/files/pkg-message.in'
X###########################################################################
Xcowpatty has been installed
X
XIf you have questions read %%DOCSDIR%%/FAQ
XFor more information about coWPAtty visit:
X
Xhttp://www.willhackforsushi.com/Cowpatty.html
X###########################################################################
END-of-cowpatty/files/pkg-message.in
echo x - cowpatty/pkg-descr
sed 's/^X//' >cowpatty/pkg-descr << 'END-of-cowpatty/pkg-descr'
XcoWPAtty is designed to audit the security of pre-shared keys
X(PSK) selected in WiFi Protected Access (WPA) networks.
X
XWWW: http://www.willhackforsushi.com/Cowpatty.html
END-of-cowpatty/pkg-descr
echo x - cowpatty/pkg-plist
sed 's/^X//' >cowpatty/pkg-plist << 'END-of-cowpatty/pkg-plist'
Xbin/cowpatty
Xbin/genpmk
END-of-cowpatty/pkg-plist
exit



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



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