diff --git a/pkgs/by-name/sh/shuffledns/package.nix b/pkgs/by-name/sh/shuffledns/package.nix new file mode 100644 index 000000000000..f6d5306c2481 --- /dev/null +++ b/pkgs/by-name/sh/shuffledns/package.nix @@ -0,0 +1,43 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, +}: + +buildGoModule (finalAttrs: { + pname = "shuffledns"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "projectdiscovery"; + repo = "shuffledns"; + rev = "v${finalAttrs.version}"; + hash = "sha256-wfHGIWdksfe0sNss4pLQ0ODh28u2kMuxAJh5C9Uiap4="; + }; + + vendorHash = "sha256-A4Ssvc6UOvwezzdMa+nPkwyVT8j15+mTAAL+loeBcCo="; + + subPackages = [ "cmd/shuffledns" ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + ldflags = [ + "-s" + "-w" + ]; + + versionCheckProgramArg = "-version"; + + meta = { + description = "massDNS wrapper to bruteforce and resolve the subdomains with wildcard handling support"; + longDescription = '' + MassDNS wrapper written in go to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard filtering and easy input-output support. + ''; + homepage = "https://github.com/projectdiscovery/shuffledns"; + changelog = "https://github.com/projectdiscovery/shuffledns/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.michaelBelsanti ]; + mainProgram = "shuffledns"; + }; +})