diff --git a/pkgs/tools/networking/rustcat/default.nix b/pkgs/tools/networking/rustcat/default.nix new file mode 100644 index 000000000000..f35a91722f03 --- /dev/null +++ b/pkgs/tools/networking/rustcat/default.nix @@ -0,0 +1,29 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "rustcat"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "robiot"; + repo = pname; + rev = "v${version}"; + sha256 = "0f4g0fk3i9p403r21w1cdz4r9778pkz58y8h7w2fmj27bamsyfhb"; + }; + + cargoSha256 = "0zlgnnlnglix0qrjc5v0g91v083lm20iw1fhvjpvjlfq7shdkhyd"; + + buildInputs = lib.optional stdenv.isDarwin Security; + + meta = with lib; { + description = "Port listener and reverse shell"; + homepage = "https://github.com/robiot/rustcat"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index add6df83af21..e1f8d53fb775 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8869,6 +8869,10 @@ with pkgs; rust-petname = callPackage ../tools/text/rust-petname { }; + rustcat = callPackage ../tools/networking/rustcat { + inherit (darwin.apple_sdk.frameworks) Security; + }; + rustscan = callPackage ../tools/security/rustscan { inherit (darwin.apple_sdk.frameworks) Security; };