blob: b1df19f2441b9a8c80588a62caf9c9ba9de6a93f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, elfutils
, makeBinaryWrapper
, pkg-config
, xz
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "pwninit";
version = "3.3.0";
src = fetchFromGitHub {
owner = "io12";
repo = "pwninit";
rev = version;
sha256 = "sha256-Tskbwavr+MFa8wmwaFGe7o4/6ZpZqczzwOnqFR66mmM=";
};
buildInputs = [ openssl xz ] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config makeBinaryWrapper ];
postInstall = ''
wrapProgram $out/bin/pwninit \
--prefix PATH : "${lib.getBin elfutils}/bin"
'';
doCheck = false; # there are no tests to run
cargoSha256 = "sha256-LPypmFeF9NZOX1ogpIqc++Pun7pInKzpxYiGUvSUcso=";
meta = {
description = "Automate starting binary exploit challenges";
homepage = "https://github.com/io12/pwninit";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.scoder12 ];
platforms = lib.platforms.all;
};
}
|