diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-23 12:38:49 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-05-23 12:38:49 +0200 |
commit | 4dbad1fad8fad54a2c869570a28c74e69aa5363d (patch) | |
tree | 63935107a5f78cc20d17e0a1da7a23994694eaa3 /pkgs/tools/security/gosh | |
parent | bda6a9c4afec1cb140f378ead96ae2df1c5a25e5 (diff) |
gosh: init at 2020523-7ccb068
Diffstat (limited to 'pkgs/tools/security/gosh')
-rw-r--r-- | pkgs/tools/security/gosh/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/gosh/default.nix b/pkgs/tools/security/gosh/default.nix new file mode 100644 index 0000000000000..5c5ad25e6d9e4 --- /dev/null +++ b/pkgs/tools/security/gosh/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "gosh"; + # https://github.com/redcode-labs/GoSH/issues/4 + version = "2020523-${lib.strings.substring 0 7 rev}"; + rev = "7ccb068279cded1121eacc5a962c14b2064a1859"; + + src = fetchFromGitHub { + owner = "redcode-labs"; + repo = "GoSH"; + inherit rev; + sha256 = "143ig0lqnkpnydhl8gnfzhg613x4wc38ibdbikkqwfyijlr6sgzd"; + }; + + vendorSha256 = "06j6cj4m0w6n9vl7sxlxpsgk77k941npq9767rdzzgy2srfqlskq"; + + runVend = true; + + subPackages = [ "." ]; + + meta = with lib; { + description = "Reverse/bind shell generator"; + homepage = "https://github.com/redcode-labs/GoSH"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |