Welcome to the CCDC Linux Bash Scripting Repository! This repository contains a collection of Bash scripts designed to help participants in Cyber Defense Competitions (CCDC) and anyone interested in securing Linux systems and firewalls, managing users, and automating tasks with crontab. These scripts are here to make your life easier as you defend, secure, and maintain your Linux systems.
Cyber Defense Competitions are intense events where teams must defend their network infrastructure from attackers while ensuring services are available and secure. This repository provides Bash scripts to help automate common tasks, enhance system security, manage users, and schedule tasks with crontab.
-
firewall-setup.sh
- This script helps you set up and configure a firewall on your Linux system to restrict incoming and outgoing network traffic based on predefined rules. -
ssh-hardening.sh
- Use this script to harden your SSH server by configuring secure settings, such as disabling root login, enforcing strong ciphers, and setting up public key authentication. -
security-audit.sh
- This script performs a security audit on your system by checking for common security vulnerabilities and providing recommendations for improvements.
-
user-add.sh
- Simplify user creation with this script. It prompts you for user details and creates the user account, sets a password, and adds the user to the necessary groups. -
user-delete.sh
- Safely delete a user account using this script. It prompts you for the username and removes the user while preserving their home directory.
cron-job.sh
- Automate recurring tasks using crontab with this script. It guides you through scheduling tasks, specifying time intervals, and executing scripts at predefined times.
To use these scripts, follow these general steps:
-
Clone this repository to your Linux system:
git clone https://github.com/ptcc-ccdc/LinuxServerSEC.git
-
Navigate to the repository directory:
cd LinuxServerSEC
-
Make the desired script executable:
chmod +x script-name.sh
-
Execute the script:
./script-name.sh
Please refer to each script's documentation within the repository for specific usage instructions and options.
We welcome contributions from the CCDC community and other users. If you have a script to share, an enhancement to suggest, or a bug to report, please open an issue or submit a pull request. Your contributions are highly appreciated.
This repository is licensed under the MIT License. Feel free to use, modify, and distribute these scripts in accordance with the license terms.
Happy scripting and best of luck in your CCDC competition! If you have any questions or need assistance, don't hesitate to reach out to the community.