nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 42 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 makeBinaryWrapper, 6 medusa, 7}: 8 9buildGoModule (finalAttrs: { 10 pname = "brutespray"; 11 version = "2.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "x90skysn3k"; 15 repo = "brutespray"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-oH7Gun/nKScv2buLwM6faiz9/3sl9l4JzkKbdTnGz0Q="; 18 }; 19 20 vendorHash = "sha256-TBLjCXb1W5FHBrzxBI0/3NMuM9eCizLiz489jyZsEso="; 21 22 nativeBuildInputs = [ makeBinaryWrapper ]; 23 24 postInstall = '' 25 wrapProgram $out/bin/brutespray \ 26 --prefix PATH : ${lib.makeBinPath [ medusa ]} 27 mkdir -p $out/share/brutespray 28 cp -r wordlist $out/share/brutespray/wordlist 29 ''; 30 31 meta = { 32 homepage = "https://github.com/x90skysn3k/brutespray"; 33 description = "Tool to do brute-forcing from Nmap output"; 34 mainProgram = "brutespray"; 35 longDescription = '' 36 This tool automatically attempts default credentials on found services 37 directly from Nmap output. 38 ''; 39 license = lib.licenses.mit; 40 maintainers = [ ]; 41 }; 42})