nix develop github:ch4og/nixcybersecTo get list of tools you can use echo -e $sectools command.
If you want to use specific category:
nix develop github:ch4og/nixcybersec#<category>default- all tools (unbelievable but it's default)general- tools that can be used in any categoryreverse- reverse engineering and pwn toolscracking- cracking toolsexploits- tools for exploitingweb- web toolsnetwork- network toolsforensics- forensics toolswindows- windows tools
Python 2 is not included here cause it's EOL. It is commonly used for printing correct bytes
Reason why is this behavior:
$ python2 -c 'print("\xFF")' | hexdump
0000000 0aff
0000002
$ python3 -c 'print("\xFF")' | hexdump
0000000 bfc3 000a
0000003The easy way to print bytes with python3 that I use is:
$ python3 -c '__import__("os").write(1,b"\xFF\n")' | hexdump
0000000 0aff
0000002Where 1 is stdout file descriptor.
Or even better use perl:
perl -e 'print "\xFF\n"' | hexdump
0000000 0aff
0000002Since Nix is immutable you can't put wordlists to /usr/share/wordlists
To show all wordlists locations just use wordlists command.
You can create alias for devshell like this:
bash.shellAliases = {
cybersec = "nix develop github:ch4og/nixcybersec";
};Now you can use cybersec command to enter devshell or cybersec -c <tool> to
run specific tool.
If you want to temporarily add any hosts it's not possible to do it on NixOS
I recommend using DNS server with rewrites (for example NextDNS)
Also you can rebuild system every time you want to add new hosts but it's not very convenient.
If you plan to use wireshark please note that it will work only with root privileges.
So you can use sudo -E wireshark to run wireshark with root privileges.
Since NixOS by design prevents running dynamically linked executables, this flake uses FHS as wrapper for your preffered shell.
fhs command runs automatically as a shell hook