From 73bc897ac60a5b5b9af27a7bc3d0b93fbce7bc7b Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 28 Jan 2019 20:05:02 +0000 Subject: [PATCH] one_gadget: init at 1.6.2 --- maintainers/maintainer-list.nix | 9 +++++ .../development/tools/misc/one_gadget/Gemfile | 2 ++ .../tools/misc/one_gadget/Gemfile.lock | 17 ++++++++++ .../tools/misc/one_gadget/default.nix | 15 ++++++++ .../tools/misc/one_gadget/gemset.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 6 files changed, 79 insertions(+) create mode 100644 pkgs/development/tools/misc/one_gadget/Gemfile create mode 100644 pkgs/development/tools/misc/one_gadget/Gemfile.lock create mode 100644 pkgs/development/tools/misc/one_gadget/default.nix create mode 100644 pkgs/development/tools/misc/one_gadget/gemset.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 38037c22b37f..a32e2e822118 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -391,6 +391,15 @@ github = "shados"; name = "Alexei Robyn"; }; + artemist = { + email = "me@artem.ist"; + github = "artemist"; + name = "Artemis Tosini"; + keys = [{ + longkeyid = "rsa4096/0x4FDC96F161E7BA8A"; + fingerprint = "3D2B B230 F9FA F0C5 1832 46DD 4FDC 96F1 61E7 BA8A"; + }]; + }; artuuge = { email = "artuuge@gmail.com"; github = "artuuge"; diff --git a/pkgs/development/tools/misc/one_gadget/Gemfile b/pkgs/development/tools/misc/one_gadget/Gemfile new file mode 100644 index 000000000000..bf4378d58ce2 --- /dev/null +++ b/pkgs/development/tools/misc/one_gadget/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'one_gadget' diff --git a/pkgs/development/tools/misc/one_gadget/Gemfile.lock b/pkgs/development/tools/misc/one_gadget/Gemfile.lock new file mode 100644 index 000000000000..3e02f085ae6b --- /dev/null +++ b/pkgs/development/tools/misc/one_gadget/Gemfile.lock @@ -0,0 +1,17 @@ +GEM + remote: https://rubygems.org/ + specs: + bindata (2.4.4) + elftools (1.0.2) + bindata (~> 2) + one_gadget (1.6.2) + elftools (~> 1.0.2) + +PLATFORMS + ruby + +DEPENDENCIES + one_gadget + +BUNDLED WITH + 1.17.2 diff --git a/pkgs/development/tools/misc/one_gadget/default.nix b/pkgs/development/tools/misc/one_gadget/default.nix new file mode 100644 index 000000000000..cf4a719292c4 --- /dev/null +++ b/pkgs/development/tools/misc/one_gadget/default.nix @@ -0,0 +1,15 @@ +{ lib, bundlerApp }: + +bundlerApp { + pname = "one_gadget"; + gemdir = ./.; + exes = [ "one_gadget" ]; + + meta = with lib; { + description = "The best tool for finding one gadget RCE in libc.so.6"; + homepage = https://github.com/david942j/one_gadget; + license = licenses.mit; + maintainers = [ maintainers.artemist ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/development/tools/misc/one_gadget/gemset.nix b/pkgs/development/tools/misc/one_gadget/gemset.nix new file mode 100644 index 000000000000..485ddf940fda --- /dev/null +++ b/pkgs/development/tools/misc/one_gadget/gemset.nix @@ -0,0 +1,34 @@ +{ + bindata = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0kz42nvxnk1j9cj0i8lcnhprcgdqsqska92g6l19ziadydfk2gqy"; + type = "gem"; + }; + version = "2.4.4"; + }; + elftools = { + dependencies = ["bindata"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1ajymn59fr9117dkwf5xl8vmr737h6xmrcf1033zjlj2l5qkxn4a"; + type = "gem"; + }; + version = "1.0.2"; + }; + one_gadget = { + dependencies = ["elftools"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0wacvysd7ddnbx2jl1vhzbkb28y974riyns7bpx889518zaa09z0"; + type = "gem"; + }; + version = "1.6.2"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5477c91251b2..952fe6927f4b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11757,6 +11757,8 @@ in olm = callPackage ../development/libraries/olm { }; + one_gadget = callPackage ../development/tools/misc/one_gadget { }; + oneko = callPackage ../applications/misc/oneko { }; oniguruma = callPackage ../development/libraries/oniguruma { };