Title here
Summary here
Nix4cyber (or n4c) is a framework that uses the Nix package manager to provide reproducible cybersecurity toolkits. The project is organized into toolkits (e.g., OSINT, Web, Networking), each with a nix shell that defines its specific software environment.
This approach ensures that all dependencies are isolated and consistent, allowing users to perform security tasks with a predictable set of tools.
To use nix4cyber, you need to have Nix installed on your system. You can then start a shell with the following command:
nix develop github:nix4cyber/n4c#<toolkit>Add the following in your shell config:
function n4c() {
category=${1:-all}
shift
args=${*}
nix develop "github:nix4cyber/n4c#${category}" ${args} # -c zsh # Escape the $ with ''$ in nix
# mkdir -p /tmp/$(date +"%d%m%y") && cd /tmp/$(date +"%d%m%y") # To create a temporary directory
}Then you can use the following command to start the shell:
n4c <category>