-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
112 lines (97 loc) · 2.39 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
description = "Development environment with common Kali Linux security tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"openssl-1.1.1u"
];
};
};
python3 = pkgs.python3;
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Network Analysis Tools
wireshark
nmap
tcpdump
netcat-gnu
socat
net-snmp
iftop
# Web Security Tools
sqlmap
nikto
dirb
# Wireless Tools
aircrack-ng
kismet
# Forensics Tools
foremost
testdisk
sleuthkit
ddrescue
# Password and Crypto Tools
john
hashcat
hydra
# Information Gathering
theharvester
whois
dnsutils
# System Tools
htop
file
binutils
nettools
# Proxy Tools
proxychains
tor
torsocks
# Development Tools
gcc
gdb
python3
python3Packages.pip
python3Packages.requests
python3Packages.pwntools
# Network Tools
wget
curl
openssh
openssl
# Shell and Terminal Utilities
tmux
zsh
oh-my-zsh
git
];
shellHook = ''
export SHELL=${pkgs.zsh}/bin/zsh
# Set up aliases for common tools
alias nmap-quick='nmap -T4 -F'
alias wireshark-cli='tshark'
# Create necessary directories if needed
mkdir -p $HOME/.config/wireshark
echo "Kali tools environment activated!"
echo "Type 'help' for a list of available commands."
# Start Zsh
exec zsh
'';
};
}
);
}