General Links
About Our Groups
Competitions
- DSU Competitions
- DCDC (Mock CCDC)
- External Competitions
- More coming soon
This is an old revision of the document!
Windows reset firewalls:
netsh advfirewall reset netsh advfirewall set allprofiles state off
Windows reset admin:
net user Administrator /active:yes net user Administrator Password1!
Windows → ENABLE SMB!
Linux clear history: (we are purposely not removing apt logs and such)
rm -f /root/.viminfo rm -f /root/.bash_history rm -f /root/.zsh_history
Linux add users:
for user in $(cat users.txt); do useradd -m -s /bin/bash $user; echo "$user:Password1!" | chpasswd; done
Linux set static IP:
/etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.11 netmask 255.255.255.0 network 192.168.0.1 broadcast 192.168.0.255 gateway 192.168.0.1
/etc/netplan/01-ethernet.yaml network: version: 2 renderer: networkd ethernets: ens160: dhcp4: no addresses: [198.168.0.10/24] gateway4: 192.168.0.1 nameservers: addresses: [192.168.0.11,172.16.3.100]
Linux find and replace recursively
find . -name '*.txt*' -exec sed -i 's/user1/user2/g' {} +