From c7cb50dd38f87bfb285651da68515b6702237d4d Mon Sep 17 00:00:00 2001 From: Bad Date: Thu, 7 Oct 2021 19:43:43 +0200 Subject: [PATCH] Add wordlists --- pkgs/_build/generated.nix | 14 +++++++++++-- pkgs/default.nix | 5 +++-- pkgs/sources.nix | 41 ++++++++++++++++++++++++++++++++++++++- pkgs/sources.toml | 7 +++++++ profiles/pwn/default.nix | 1 + 5 files changed, 63 insertions(+), 5 deletions(-) mode change 120000 => 100644 pkgs/sources.nix diff --git a/pkgs/_build/generated.nix b/pkgs/_build/generated.nix index a7b1024..dbe7226 100644 --- a/pkgs/_build/generated.nix +++ b/pkgs/_build/generated.nix @@ -12,7 +12,6 @@ leaveDotGit = false; sha256 = "0rr66y86g6g8ixg69yd6ahyzirl82gfvyv6j2w6b0zv5x0979x9v"; }; - }; manix = { pname = "manix"; @@ -25,6 +24,17 @@ leaveDotGit = false; sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs"; }; - + }; + wordlists = { + pname = "wordlists"; + version = "0c0b84b48a64c3b24f53410ac4e76326008a63c2"; + src = fetchgit { + url = "https://github.com/Pamplemousse/nixpkgs"; + rev = "0c0b84b48a64c3b24f53410ac4e76326008a63c2"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sha256 = "0a4lajmpaxh5myc6jqhhpm13hqn7cc3bckwg6s41mglspm3vyn0i"; + }; }; } diff --git a/pkgs/default.nix b/pkgs/default.nix index 6fd5c73..48f2405 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,6 +1,7 @@ -final: prev: { +final: prev: rec { # keep sources this first sources = prev.callPackage (import ./sources.nix) { }; # then, call packages with `final.callPackage` - go-fold-if-err-nil = prev.callPackage ./go-fold-if-err-nil.nix { }; + go-fold-if-err-nil = final.callPackage ./go-fold-if-err-nil.nix { }; + security-wordlists = final.callPackage (import "${sources.wordlists.src}/pkgs/tools/security/wordlists/default.nix") { }; } diff --git a/pkgs/sources.nix b/pkgs/sources.nix deleted file mode 120000 index 2bf0b7e..0000000 --- a/pkgs/sources.nix +++ /dev/null @@ -1 +0,0 @@ -_build/generated.nix \ No newline at end of file diff --git a/pkgs/sources.nix b/pkgs/sources.nix new file mode 100644 index 0000000..dbe7226 --- /dev/null +++ b/pkgs/sources.nix @@ -0,0 +1,40 @@ +# This file was generated by nvfetcher, please do not modify it manually. +{ fetchgit, fetchurl }: +{ + go-fold-if-err-nil = { + pname = "go-fold-if-err-nil"; + version = "4f881c4f64d9caac1f59ebd5d14963f99db3d71a"; + src = fetchgit { + url = "https://im.badat.dev/bad/nvimgofoldiferrnil"; + rev = "4f881c4f64d9caac1f59ebd5d14963f99db3d71a"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sha256 = "0rr66y86g6g8ixg69yd6ahyzirl82gfvyv6j2w6b0zv5x0979x9v"; + }; + }; + manix = { + pname = "manix"; + version = "d08e7ca185445b929f097f8bfb1243a8ef3e10e4"; + src = fetchgit { + url = "https://github.com/mlvzk/manix"; + rev = "d08e7ca185445b929f097f8bfb1243a8ef3e10e4"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs"; + }; + }; + wordlists = { + pname = "wordlists"; + version = "0c0b84b48a64c3b24f53410ac4e76326008a63c2"; + src = fetchgit { + url = "https://github.com/Pamplemousse/nixpkgs"; + rev = "0c0b84b48a64c3b24f53410ac4e76326008a63c2"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sha256 = "0a4lajmpaxh5myc6jqhhpm13hqn7cc3bckwg6s41mglspm3vyn0i"; + }; + }; +} diff --git a/pkgs/sources.toml b/pkgs/sources.toml index dc05db1..d31190e 100644 --- a/pkgs/sources.toml +++ b/pkgs/sources.toml @@ -1,6 +1,13 @@ [manix] src.git = "https://github.com/mlvzk/manix" fetch.github = "mlvzk/manix" + +[wordlists] +src.git = "https://github.com/Pamplemousse/nixpkgs" +fetch.git = "https://github.com/Pamplemousse/nixpkgs" +src.branch = "wordlists" + [go-fold-if-err-nil] src.git = "https://im.badat.dev/bad/nvimgofoldiferrnil" fetch.git = "https://im.badat.dev/bad/nvimgofoldiferrnil" + diff --git a/profiles/pwn/default.nix b/profiles/pwn/default.nix index 0081239..d3a24bc 100644 --- a/profiles/pwn/default.nix +++ b/profiles/pwn/default.nix @@ -3,5 +3,6 @@ environment.systemPackages = with pkgs; [ rizin ghidra-bin + (security-wordlists.withLists(ps: with ps; [ dirbuster rockyou ])) ]; }