17 wordlistsCollection = symlinkJoin {
18 name = "wordlists-collection";
24 rm -rf $out/share/!(wordlists)
29 # A command to show the location of the links.
30 wordlistsBin = writeShellScriptBin "wordlists" ''
31 ${lib.getExe tree} ${wordlistsCollection}/share/wordlists
33 # A command for easy access to the wordlists.
34 wordlistsPathBin = writeShellScriptBin "wordlists_path" ''
35 printf "${wordlistsCollection}/share/wordlists\n"
48 description = "A collection of wordlists useful for security testing";
50 The `wordlists` package provides two scripts. One is called {command}`wordlists`,
51 and it will list a tree of all the wordlists installed. The other one is
52 called {command}`wordlists_path` which will print the path to the nix store
53 location of the lists. You can for example do
54 {command}`$(wordlists_path)/rockyou.txt` to get the location of the
55 [rockyou](https://en.wikipedia.org/wiki/RockYou#Data_breach)
56 wordlist. If you want to modify the available wordlists you can override
57 the `lists` attribute`. In your nixos configuration this would look
61 environment.systemPackages = [
62 (pkgs.wordlists.override { lists = with pkgs; [ rockyou ] })
66 you can use this with nix-shell by doing:
67 {command}`nix-shell -p 'wordlists.override { lists = with (import <nixpkgs> {}); [ nmap ]; }'
68 If you want to add a new package that provides wordlist/s the convention
69 is to copy it to {file}`$out/share/wordlists/myNewWordlist`.
71 maintainers = with maintainers; [ janik pamplemousse h7x4 ];