2023-09-17 18:28:00 +00:00
|
|
|
{ lib, binutils, bundlerApp, bundlerUpdateScript, makeWrapper }:
|
2019-01-28 20:05:02 +00:00
|
|
|
|
|
|
|
bundlerApp {
|
|
|
|
pname = "one_gadget";
|
|
|
|
gemdir = ./.;
|
|
|
|
exes = [ "one_gadget" ];
|
|
|
|
|
2023-09-17 18:28:00 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/one_gadget --prefix PATH : ${binutils}/bin
|
|
|
|
'';
|
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "one_gadget";
|
|
|
|
|
2019-01-28 20:05:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The best tool for finding one gadget RCE in libc.so.6";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/david942j/one_gadget";
|
2019-01-28 20:05:02 +00:00
|
|
|
license = licenses.mit;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ artemist nicknovitski ];
|
2019-01-28 20:05:02 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|