From patchwork Fri Apr 13 13:00:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 897939 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UiSSazeF"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40MyZC38zYz9s16 for ; Fri, 13 Apr 2018 23:00:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E312A87F93; Fri, 13 Apr 2018 13:00:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35bPhWvTjtCT; Fri, 13 Apr 2018 13:00:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3CFBF87F3C; Fri, 13 Apr 2018 13:00:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 80CD21C2C4E for ; Fri, 13 Apr 2018 13:00:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7DB4B888A2 for ; Fri, 13 Apr 2018 13:00:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zOPWbBcCy8td for ; Fri, 13 Apr 2018 13:00:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5A2DE86D73 for ; Fri, 13 Apr 2018 13:00:44 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id b21so4044541wme.4 for ; Fri, 13 Apr 2018 06:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=iegETq80jYOBsJUD/IwMIDdUFYyHaoJW6cxSJgw2jmI=; b=UiSSazeFJcvYQkwpK5xVd53NUpUINoXJMkMTQcSCtsfOMrqr2FCDmpl4HpIdqOO8rm eQTP//dxXpZ9Ago03EbN2lx+4017pgGm67lRTs7/vd8TWkOxeBkiXAsah8FoejiQrjpo VCB+mug9QZHbsakxe4TD6bAAwkgqbp0KFGloIznTeUH10iIIjF+2ta3eL1jEhgFts7tD +vikxGtOSBnwi6wUEJJJYk5Qgdtk4vyL9irpjkLuEmESS0G3R001SeNn0aiEgMXOF8cR YNFwtbE5BWg8os8ZO8kLz4Luv3yEtvVuxCljjYIcNSXJOwdV9s84i8UXWYL3AYsihBiC 7IuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iegETq80jYOBsJUD/IwMIDdUFYyHaoJW6cxSJgw2jmI=; b=pCC9c02V6HcvZ9xKHE5H2ZE6CRtFTaN94B0t88Wtp+cxS13Ot0QhNf4NwoDzlJqgXq DgjT5w49bdEB4bDYLufZ5lwlDthpRvC9YtzkgV+PgwjZdm4dGSDfVbwW/IOVjngqev/5 ZPmjMA55fntOqxXRKlMJhpbHwe6uYjJl1R/HzTMJyFnGYoh8PxAmTVC+zwDXw2icN+vV CiAbcT1s6C/FQTDLayKyMgXt+RO0hzaT181SDTCCagjxiHMrc4fDYLjS3Edu1vpAYH8H ay4ZP0ITOgIhIxA3LxNxdd7dfaMJJM8wuUH6jhBXz9hZpxmTlY5mmGFq5sXtXNOjzUkh duUA== X-Gm-Message-State: ALQs6tCYJerczKWFPwPxTPeudw/uX7rxeAxFnkQQdUJsA6O6dBFvnqWN GhWm0NxOlXZZcOqkLZG5DXeCxoPY X-Google-Smtp-Source: AIpwx490NBDKR4fU/A+RAtZvihfPYKhQNKRRygOBrJM5nOjhcgnBgM4TrIP1qhuuCgnWd38xOXXZtw== X-Received: by 10.28.191.74 with SMTP id p71mr3331600wmf.122.1523624442399; Fri, 13 Apr 2018 06:00:42 -0700 (PDT) Received: from nXT2.netgear.com (LMontsouris-657-1-200-234.w90-63.abo.wanadoo.fr. [90.63.232.234]) by smtp.gmail.com with ESMTPSA id c130sm1863874wmh.33.2018.04.13.06.00.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 06:00:41 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@buildroot.org Date: Fri, 13 Apr 2018 15:00:00 +0200 Message-Id: <1523624400-3162-1-git-send-email-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/1] cowpatty: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" CowPatty is a C based tool to identify weak WPA passphrases contained in a pcap file. Use the github.com/gwbres/cowpatty fork at the moment because Makefile in the mainstream is faulty. (-lssl flag is missing and some recipes had to be reordered). I will have the buildroot configuration eventually point to the original mainstrean as soon as Makefile is corrected. The package is easy to build, it requires the -lssl -lpcap and -lcrypto flags. Build tests passed for the 7 default toolchains with a simple config snippet made of "BR2_PACKAGE_COWPATTY=y". But please double check the proposed dependencies & package selections. I set the package to select libpcap & libopenssl at the moment. Tested & used on RPI 1 & 3 here: /usr/bin/cowpatty -r eap-test.dump -f dict -s somethingclever [...] 1079 passphrases tested in 97.18 seconds: 11.10 passphrases/second I put the package in network apps. but this is more of a util. tool than anything, so you might want to change that to. Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/cowpatty/Config.in | 9 +++++++++ package/cowpatty/cowpatty.hash | 3 +++ package/cowpatty/cowpatty.mk | 24 ++++++++++++++++++++++++ 5 files changed, 38 insertions(+) create mode 100644 package/cowpatty/Config.in create mode 100644 package/cowpatty/cowpatty.hash create mode 100644 package/cowpatty/cowpatty.mk diff --git a/DEVELOPERS b/DEVELOPERS index 05693d3..560494b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -793,6 +793,7 @@ F: package/c-icap-modules/ F: package/sdl2/ N: Guillaume William Brs +F: package/cowpatty/ F: package/liquid-dsp/ F: package/pixiewps/ F: package/reaver/ diff --git a/package/Config.in b/package/Config.in index ddbbcff..162280f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1683,6 +1683,7 @@ menu "Networking applications" source "package/connman/Config.in" source "package/connman-gtk/Config.in" source "package/conntrack-tools/Config.in" + source "package/cowpatty/Config.in" source "package/crda/Config.in" source "package/ctorrent/Config.in" source "package/cups/Config.in" diff --git a/package/cowpatty/Config.in b/package/cowpatty/Config.in new file mode 100644 index 0000000..7fb6814 --- /dev/null +++ b/package/cowpatty/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_COWPATTY + bool "cowpatty" + select BR2_PACKAGE_LIBPCAP + select BR2_PACKAGE_OPENSSL + help + CowPatty is a C based tool to identify + weak WPA passphrases. + + https://wifinetnews.com/archives/2003/11/weakness_in_passphrase_choice_in_wpa_interface.html diff --git a/package/cowpatty/cowpatty.hash b/package/cowpatty/cowpatty.hash new file mode 100644 index 0000000..0725c11 --- /dev/null +++ b/package/cowpatty/cowpatty.hash @@ -0,0 +1,3 @@ +# locally computed +sha256 131d5285fa64c072b80f87a5be5914828fc2c2816157d6dc40b8749ba02d69fa cowpatty-83fd1589c142676d26cabe1d56e9ff8bb288683a.tar.gz +sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING diff --git a/package/cowpatty/cowpatty.mk b/package/cowpatty/cowpatty.mk new file mode 100644 index 0000000..8c7ec23 --- /dev/null +++ b/package/cowpatty/cowpatty.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# cowpatty +# +################################################################################ + +COWPATTY_VERSION = 83fd1589c142676d26cabe1d56e9ff8bb288683a +COWPATTY_SITE = $(call github,gwbres,cowpatty,$(COWPATTY_VERSION)) +COWPATTY_LICENSE = GPL-2.0+ +COWPATTY_LICENSE_FILES = COPYING + +COWPATTY_DEPENDENCIES = libpcap +COWPATTY_DEPENDENCIES += libopenssl + +define COWPATTY_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) -C $(@D) +endef + +define COWPATTY_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) \ + PREFIX=/usr -C $(@D) install +endef + +$(eval $(generic-package))