Scripts for NCAE Cyber Games 2025
sudo su -l
passwd
apt uninstall sudo # or whichever package manager
auto eth0
iface eth0 inet static
address 192.168.13.x
netmask 255.255.255.0
gateway 192.168.13.1
nameserver 192.168.13.12
systemctl restart networking.service
network:
# ...
ethernets:
ens18:
dhcp4: false
addresses:
- 192.168.13.x/24
gateway4: 192.168.13.1
nameservers:
addresses:
- 192.168.13.12
netplan apply
# ...
BOOTPROTO=none
IPADDR=192.168.13.x
PREFIX=24
GATEWAY=192.168.13.1
DNS1=192.168.13.12
nmcli connection reload
nmcli connection up eth0
git clone https://github.com/Liassica/ncae-2025
./ncae-2025/scripts/iptables
./ncae-2025/scripts/iptables -s -w
apt install openssh-server # w/e PM, may be just 'openssh' dep on distro
The comments aren't necessary in the real config:
echo "# Force key login
PasswordAuthentication no
AuthenticationMethods publickey
# Disable root SSH access
PermitRootLogin no
# Use root-configured authorized keys
AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u" >> /etc/ssh/sshd_config
For each scoring user, place their public SSH key in /etc/ssh/authorized_keys.d/<user>
:
./ncae-2025/scripts/ssh
systemctl enable --now sshd.service
systemctl restart sshd.service
See the other team members' notes and documentation :)
./ncae-2025/scripts/sysctl
./ncae-2025/scripts/cmdline