Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ee89494f5 | ||
|
|
67de76e5af | ||
|
|
33e11feed6 | ||
|
|
16df3b64cf | ||
|
|
0f17684f0d | ||
|
|
647d3058f5 | ||
|
|
3d21efa6f3 | ||
|
|
95c3f29fbf | ||
|
|
1cebb3b95e | ||
|
|
18bb8fbd60 | ||
|
|
29e86305bd | ||
|
|
9fda572195 | ||
|
|
4aea14ed36 | ||
|
|
c6ec77b32d | ||
|
|
db9f08bfca | ||
|
|
6aa8d2b50d | ||
|
|
67c612a6e0 | ||
|
|
94ffa077b1 | ||
|
|
dfd2b73cbe | ||
|
|
1f164f216a | ||
|
|
2f0d75869c | ||
|
|
b59cb73591 | ||
|
|
c4fd562eba | ||
|
|
53c54dd668 | ||
|
|
a427f46b36 | ||
|
|
ade44cc0c9 | ||
|
|
499c4ead2a | ||
|
|
783a4fb7dc | ||
|
|
eaa5b33d33 | ||
|
|
b50da28861 | ||
|
|
51fcb3223f | ||
|
|
85547aadf0 | ||
|
|
790738f267 | ||
|
|
d5cc93f573 | ||
|
|
9e634e35af | ||
|
|
d4719bcf4a |
93
preseed.cfg
Normal file
93
preseed.cfg
Normal file
@@ -0,0 +1,93 @@
|
||||
### 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 American English
|
||||
d-i keyboard-configuration/model select American English
|
||||
d-i console-keymaps-at/keymap select American English
|
||||
d-i keyboard-configuration/layout select American English
|
||||
|
||||
### 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-lvm/confirm_nooverwrite boolean true
|
||||
d-i partman-auto-lvm/guided_size string max
|
||||
d-i partman-auto/choose_recipe select atomic
|
||||
d-i partman-partitioning/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
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
|
||||
|
||||
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/bootdev string default
|
||||
|
||||
### 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
|
||||
|
||||
Reference in New Issue
Block a user