about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ro/rockyou/package.nix
blob: 7e6bb2f34c3611ddc3a710e3ddb1956a86bd917f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ seclists
, stdenvNoCC
}:
stdenvNoCC.mkDerivation {
  pname = "rockyou";
  inherit (seclists) version src;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/wordlists/
    tar -xvzf ${seclists}/share/wordlists/seclists/Passwords/Leaked-Databases/rockyou.txt.tar.gz -C $out/share/wordlists/

    runHook postInstall
  '';

  meta = seclists.meta // {
    description = "A famous wordlist often used for brute force attacks";
  };
}