From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from eggs.gnu.org ([2001:470:142:3::10]:54301)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jGWsR-0001m4-4x
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:53:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jGWsQ-0007E3-3T
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:53:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:47720)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1jGWsQ-0007Dv-0f
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:53:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jGWsP-0003C5-W3
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:53:01 -0400
Subject: [bug#40203] [PATCH] gnu: Add ROPgadget.
Resent-Message-ID: <handler.40203.B.158500755712241@debbugs.gnu.org>
Received: from eggs.gnu.org ([2001:470:142:3::10]:54266)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <kuba@kadziolka.net>) id 1jGWrx-0001kh-RK
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:52:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kuba@kadziolka.net>) id 1jGWrw-00073d-LD
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:52:33 -0400
Received: from pat.zlotemysli.pl ([37.59.186.212]:49354)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kuba@kadziolka.net>) id 1jGWrw-00070C-BR
 for guix-patches@gnu.org; Mon, 23 Mar 2020 19:52:32 -0400
From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= <kuba@kadziolka.net>
Date: Tue, 24 Mar 2020 00:52:09 +0100
Message-Id: <20200323235209.25030-1-kuba@kadziolka.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
List-Id: <guix-patches.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/guix-patches>
List-Post: <mailto:guix-patches@gnu.org>
List-Help: <mailto:guix-patches-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>,
 <mailto:guix-patches-request@gnu.org?subject=subscribe>
Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org
Sender: "Guix-patches" <guix-patches-bounces+kyle=kyleam.com@gnu.org>
To: 40203@debbugs.gnu.org

* gnu/packages/engineering.scm (ropgadget): New variable.
---
 gnu/packages/engineering.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 28a30a6831..bacfc2fbf6 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1306,6 +1306,28 @@ bindings for Python, Java, OCaml and more.")
 (define-public python2-capstone
   (package-with-python2 python-capstone))
 
+(define-public ropgadget
+  (package
+    (name "ropgadget")
+    (version "6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ROPGadget" version))
+       (sha256
+        (base32
+         "0idiicgpijar9l9kqmfdh865c2mkfgxg0q7lpz77jc09l6q0afjh"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-capstone" ,python-capstone)))
+    (home-page "http://shell-storm.org/project/ROPgadget/")
+    (synopsis
+     "Gadget finder and auto-roper")
+    (description
+     "This tool lets you search for gadgets in binaries to help with ROP
+chain construction.")
+    (license license:bsd-3)))
+
 (define-public radare2
   (package
     (name "radare2")
-- 
2.25.2