### General Config d-i debian-installer/language string en d-i debian-installer/country string US d-i debian-installer/locale string en_US.UTF-8 d-i clock-setup/utc boolean true d-i time/zone string US/Eastern # Disable volatile and security d-i apt-setup/services-select multiselect # Enable contrib and non-free d-i apt-setup/non-free boolean true d-i apt-setup/contrib boolean true ### Keyboard Config d-i console-setup/ask_detect boolean false d-i keyboard-configuration/xkb-keymap select us ### Network Config d-i netcfg/get_hostname string unassigned-hostname d-i netcfg/get_domain string unassigned-domain d-i netcfg/hostname string kali-cleanroom ### Root Account Setup d-i passwd/root-login boolean true d-i passwd/make_user boolean false d-i passwd/root-password password d-i passwd/root-password-again password d-i user-setup/encrypt-home boolean false ### RedTeam User Setup d-i passwd/make-user boolean true d-i passwd/user-fullname string RedTeam d-i passwd/username string redteam d-i passwd/user-password password Changeme!! d-i passwd/user-password-again password Changeme!! d-i user-setup/encrypt-home boolean false d-i user-setup/allow-password-weak boolean false d-i passwd/user-default-groups string audo cdrom video admin sudo ### Partitioning d-i partman-auto/method string lvm d-i partman-lvm/device_remove_lvm boolean true d-i partman-md/device_remove_md boolean true d-i partman-lvm/confirm boolean true d-i partman-auto-lvm/guided_size string max d-i partman-partitioning/confirm_write_new_label boolean true d-i partman-auto/choose_recipe select atomic d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true ### Mirror Settings d-i mirror/country string enter information manually d-i mirror/http/hostname string http.kali.org d-i mirror/http/directory string /kali d-i mirror/http/proxy string ### APT Setup #d-i apt-setup/local0/repository string http://archive.kali.org/kali-security kali/updates main #d-i apt-setup/local0/comment string Security updates #d-i apt-setup/local0/source boolean false d-i apt-setup/use_mirror boolean true tasksel tasksel/first multiselect standard d-i pkgsel/upgrade select full-upgrade d-i pkgsel/include string openssh-server ### Bootloader d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean false ### Finishing Up d-i preseed/late_command string \ echo 'redteam ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/redteam ; \ in-target chmod 400 /etc/sudoers.d/redteam ; \ in-target systemctl enable ssh.service ; \ in-target sh -c 'sed -i "s/^#PermitRootLogin.*\$/PermitRootLogin yes/g" /etc/ssh/sshd_config' ; \ in-target mkdir -p /home/redteam/.ssh ; \ echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIanH253TBKhhuqoIXEEjAb1h8teaff+gzWQrG0hHecn' >/target/home/redteam/.ssh/authorized_keys ; \ in-target chown -R redteam:redteam /home/redteam/.ssh ; \ in-target sh -c 'systemctl enable ssh' ; d-i finish-install/reboot_in_progress note