From patchwork Thu Aug 1 19:25:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotej Lazar X-Patchwork-Id: 14815 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9BDE1172B7; Thu, 1 Aug 2019 20:27:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 593C0172B3 for ; Thu, 1 Aug 2019 20:27:26 +0100 (BST) Received: from localhost ([::1]:58670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htGjW-0002IZ-1N for patchwork@mira.cbaines.net; Thu, 01 Aug 2019 15:27:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44303) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htGjB-000297-6t for guix-patches@gnu.org; Thu, 01 Aug 2019 15:27:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htGj8-0002mN-VL for guix-patches@gnu.org; Thu, 01 Aug 2019 15:27:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46480) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htGj8-0002mI-SI for guix-patches@gnu.org; Thu, 01 Aug 2019 15:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1htGj8-0000F1-Np for guix-patches@gnu.org; Thu, 01 Aug 2019 15:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36892] [PATCH 2/2] gnu: Add reaver. Resent-From: Timotej Lazar Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Aug 2019 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36892 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36892@debbugs.gnu.org Received: via spool by 36892-submit@debbugs.gnu.org id=B36892.1564687592873 (code B ref 36892); Thu, 01 Aug 2019 19:27:02 +0000 Received: (at 36892) by debbugs.gnu.org; 1 Aug 2019 19:26:32 +0000 Received: from localhost ([127.0.0.1]:55300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htGie-0000E1-HJ for submit@debbugs.gnu.org; Thu, 01 Aug 2019 15:26:32 -0400 Received: from araneo.si ([90.157.193.204]:60652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htGib-0000Da-Ip for 36892@debbugs.gnu.org; Thu, 01 Aug 2019 15:26:31 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id c0ac8692 for <36892@debbugs.gnu.org>; Thu, 1 Aug 2019 19:26:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20180623; bh=oHm4aMzQwG8Np5aI8t54n A0LSAM=; b=FIf3WrYP/oi63vgCIixf+ePnLgAcxvjhKuOLa4NsalGlyeaioOjlk +x2osSeUBnPxq3lLwCuDfaiclr6sisepy9mhtsE6tdlP7+O3Uf8Y2MvcaaAaZ5Mh lLW4weK9AnLgiA/0Yn1CGHGv1ql4DkYQOOI8S9IFgNN8x0hBYr2kGEt1qB3W4klA wkL7ydhTHeoZTNyQLQqvS8ghq/2um45xINCHryxhvJyQscFdDF1CNbF8BtBBeCLE k8rIhElWeFU02f797MC6rHCjt4ZqPJpqJHbQfTGz2g9xfoqT2l7C5r3MVg86Y6MD viEK4Ynl6x1JWcIp+s6HnMLt+Dt2R+9Vg== Received: by araneo.si (OpenSMTPD) with ESMTPSA id d726f61d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 1 Aug 2019 19:26:27 +0000 (UTC) From: Timotej Lazar Date: Thu, 1 Aug 2019 21:25:59 +0200 Message-Id: <20190801192559.3385-2-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190801192559.3385-1-timotej.lazar@araneo.si> References: <20190801192559.3385-1-timotej.lazar@araneo.si> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Timotej Lazar Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/networking.scm (reaver): New variable. --- gnu/packages/networking.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 6fbf5a6ebf..89301122b4 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -976,6 +976,54 @@ force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or non-existing entropy of some access points.") (license license:gpl3+))) +(define-public reaver + (package + (name "reaver") + (version "1.6.5") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/t6x/reaver-wps-fork-t6x/releases/" + "download/v" version "/" name "-" version ".tar.xz")) + (sha256 + (base32 + "0sva3g0kwgv143n9l3lg4qp5iiqz7nk76nr0hwivsnglbhk9sbil")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + ;; Save session files to current directory instead of /var. + (list "--enable-savetocurrent" + "--localstatedir=/tmp/dummy") ; prevent creating /var during install + #:phases + (modify-phases %standard-phases + (add-before 'configure 'change-directory + (lambda _ + (chdir "src") + #t)) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (chdir "../docs") + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" ,name "-" ,version)) + (man1 (string-append out "/share/man/man1"))) + (for-each (lambda (file) (install-file file doc)) + (find-files "." "README.*")) + (install-file "reaver.1" man1) + #t)))) + #:tests? #f)) ; there are no tests + (inputs + `(("libpcap" ,libpcap))) + (propagated-inputs + `(("aircrack-ng" ,aircrack-ng) + ("pixiewps" ,pixiewps))) + (home-page "https://github.com/t6x/reaver-wps-fork-t6x/") + (synopsis "Attack tool for Wi-Fi Protected Setup") + (description "Reaver performs a brute force attack against an access +point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA +passphrase can be recovered and the AP's wireless settings can be +reconfigured.") + (license license:gpl2+))) + (define-public perl-danga-socket (package (name "perl-danga-socket")