+35
pkgs/development/tools/misc/pwninit/default.nix
+35
pkgs/development/tools/misc/pwninit/default.nix
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
, rustPlatform
5
+
, openssl
6
+
, pkg-config
7
+
, xz
8
+
, Security
9
+
}:
10
+
11
+
rustPlatform.buildRustPackage rec {
12
+
pname = "pwninit";
13
+
version = "3.2.0";
14
+
15
+
src = fetchFromGitHub {
16
+
owner = "io12";
17
+
repo = "pwninit";
18
+
rev = version;
19
+
sha256 = "sha256-XKDYJH2SG3TkwL+FN6rXDap8la07icR0GPFiYcnOHeI=";
20
+
};
21
+
22
+
buildInputs = [ openssl xz ] ++ lib.optionals stdenv.isDarwin [ Security ];
23
+
nativeBuildInputs = [ pkg-config ];
24
+
doCheck = false; # there are no tests to run
25
+
26
+
cargoSha256 = "sha256-2HCHiU309hbdwohUKVT3TEfGvOfxQWtEGj7FIS8OS7s=";
27
+
28
+
meta = {
29
+
description = "Automate starting binary exploit challenges";
30
+
homepage = "https://github.com/io12/pwninit";
31
+
license = lib.licenses.mit;
32
+
maintainers = [ lib.maintainers.scoder12 ];
33
+
platforms = lib.platforms.all;
34
+
};
35
+
}
+4
pkgs/top-level/all-packages.nix
+4
pkgs/top-level/all-packages.nix
···
9600
9600
9601
9601
pwndbg = callPackage ../development/tools/misc/pwndbg { };
9602
9602
9603
+
pwninit = callPackage ../development/tools/misc/pwninit {
9604
+
inherit (darwin.apple_sdk.frameworks) Security;
9605
+
};
9606
+
9603
9607
pycflow2dot = with python3.pkgs; toPythonApplication pycflow2dot;
9604
9608
9605
9609
pydf = callPackage ../applications/misc/pydf { };