2021-03-06 02:45:15 +00:00
|
|
|
# This module defines a small blix live enviorment
|
|
|
|
|
|
|
|
{config, pkgs, lib, ...}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
<nixpkgs/nixos/modules/installer/cd-dvd/iso-image.nix>
|
|
|
|
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
|
|
|
|
|
|
|
<nixpkgs/nixos/modules/profiles/clone-config.nix>
|
|
|
|
<nixpkgs/nixos/modules/profiles/all-hardware.nix>
|
|
|
|
<nixpkgs/nixos/modules/profiles/base.nix>
|
|
|
|
];
|
|
|
|
|
|
|
|
# ISO naming.
|
|
|
|
isoImage.isoName = "blix-${config.system.nixos.label}-${pkgs.stdenv.system}.iso";
|
|
|
|
|
|
|
|
isoImage.volumeID = substring 0 11 "BLIX_ISO";
|
|
|
|
|
|
|
|
# EFI booting
|
|
|
|
isoImage.makeEfiBootable = true;
|
|
|
|
|
|
|
|
# USB booting
|
|
|
|
isoImage.makeUsbBootable = true;
|
|
|
|
|
|
|
|
# Add Memtest86+ to the CD.
|
|
|
|
boot.loader.grub.memtest86.enable = true;
|
|
|
|
|
|
|
|
networking.hostName = "blix";
|
|
|
|
networking.wireless.enable = true;
|
|
|
|
networking.useDHCP = true;
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
|
|
documentation.nixos.enable = true;
|
|
|
|
|
2021-03-08 12:47:13 +00:00
|
|
|
services.getty.autologinUser = "fops";
|
2021-03-06 02:45:15 +00:00
|
|
|
|
2021-03-08 12:47:13 +00:00
|
|
|
users.users.fops = {
|
2021-03-06 02:45:15 +00:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "networkmanager" "video" "libvirt" "docker" ];
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1N
|
|
|
|
TE5AAAAIDBUk5IjB3+trnVO6pncivFbOetUL8BPTl3CwAtk4532 xfnw@raven" ];
|
|
|
|
};
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
2021-03-06 12:23:49 +00:00
|
|
|
services.xserver.enable = true;
|
2021-03-06 22:32:47 +00:00
|
|
|
services.xserver.desktopManager.xfce.enable = true;
|
2021-03-06 12:23:49 +00:00
|
|
|
services.xserver.displayManager.autoLogin.enable = true;
|
2021-03-08 12:47:13 +00:00
|
|
|
services.xserver.displayManager.autoLogin.user = "fops";
|
2021-03-06 12:23:49 +00:00
|
|
|
|
2021-03-06 22:32:47 +00:00
|
|
|
|
|
|
|
|
2021-03-06 02:45:15 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget vim tmux gnupg ncdu mosh
|
|
|
|
git curl rsync wireguard-tools
|
2021-03-07 12:22:11 +00:00
|
|
|
w3m lynx elinks ungoogled-chromium
|
2021-03-11 23:41:41 +00:00
|
|
|
inetutils dnsutils whois
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# network analysis
|
2021-03-06 22:32:47 +00:00
|
|
|
nmap masscan wireshark termshark netsniff-ng argus bettercap
|
2021-03-06 02:45:15 +00:00
|
|
|
stress-ng multimon-ng aircrack-ng mfcuk pixiewps
|
2021-03-06 03:09:11 +00:00
|
|
|
hcxtools dirb sslsplit whsniff sniffglue pwnat
|
2021-06-11 14:19:19 +00:00
|
|
|
subfinder zap hping proxychains
|
2021-03-06 03:09:11 +00:00
|
|
|
gnirehtet # reverse android tethering
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# research
|
2021-03-06 12:23:49 +00:00
|
|
|
theharvester tor
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# disk analysis
|
|
|
|
testdisk squashfs-tools-ng ddrescue volatility
|
2021-03-06 03:09:11 +00:00
|
|
|
stegseek apktool adbfs-rootless ursadb android-udev-rules
|
2021-05-27 19:08:05 +00:00
|
|
|
valgrind dos2unix file exiftool foremost pngcheck
|
|
|
|
docker xcd
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# exploit
|
|
|
|
doona metasploit twa wifite2 burpsuite wpscan wfuzz
|
2021-03-06 22:46:21 +00:00
|
|
|
sqlmap thc-hydra (callPackage ./pkgs/routersploit.nix { })
|
2021-03-06 22:32:47 +00:00
|
|
|
#dsniff
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# crack
|
2021-03-11 23:41:41 +00:00
|
|
|
hashcat mfoc pyrit john crunch diceware crowbar
|
2021-03-26 19:15:12 +00:00
|
|
|
cowpatty bully deepsea reaverwps amass medusa
|
2021-03-06 02:45:15 +00:00
|
|
|
|
|
|
|
# security scan
|
|
|
|
lynis chkrootkit
|
2021-03-06 03:09:11 +00:00
|
|
|
|
|
|
|
# development
|
|
|
|
arduino python3Packages.pip ino
|
2021-03-06 22:46:21 +00:00
|
|
|
|
2021-03-08 01:25:31 +00:00
|
|
|
# python3 packages
|
|
|
|
python3 python3Packages.bluepy python3Packages.future
|
|
|
|
python3Packages.requests python3Packages.paramiko python3Packages.pysnmp
|
|
|
|
python3Packages.pycryptodome python3Packages.setuptools
|
2021-03-08 01:52:10 +00:00
|
|
|
python3Packages.binwalk
|
2021-03-08 01:25:31 +00:00
|
|
|
|
2021-03-06 22:46:21 +00:00
|
|
|
# disclosure
|
2021-05-27 19:08:05 +00:00
|
|
|
catgirl
|
2021-03-06 02:45:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
environment.variables.GC_INITIAL_HEAP_SIZE = "1M";
|
|
|
|
boot.kernel.sysctl."vm.overcommit_memory" = "1";
|
|
|
|
boot.consoleLogLevel = 7;
|
|
|
|
networking.firewall.logRefusedConnections = false;
|
|
|
|
system.extraDependencies = with pkgs; [ stdenv stdenvNoCC busybox jq ];
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
}
|