https://github.com/botsarefuture/security_c
https://github.com/botsarefuture/security_c
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/botsarefuture/security_c
- Owner: botsarefuture
- License: mit
- Created: 2023-12-17T13:09:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T17:36:29.000Z (almost 2 years ago)
- Last Synced: 2024-09-06T20:55:30.271Z (almost 2 years ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security.sh
Awesome Lists containing this project
README
# Security Check Script
This script performs various security checks on a Linux server, including user listing, log file integrity check, fail2ban status, virus scan, and rootkit scan.
## Installation
1. **Clone the Repository:**
```bash
git clone https://github.com/botsarefuture/security_c.git
cd security-check-script
```
2. **Make the Script Executable:**
```bash
chmod +x script.sh
```
3. **Run the Script:**
```bash
./script.sh
```
## Script Overview
1. **Check Users:**
Lists the users on the server.
2. **Check Log File Integrity:**
Checks if a specified log file has been manipulated.
3. **Check fail2ban Status:**
Checks if fail2ban is up and running, and installs it if not.
4. **Run Virus Scan:**
Uses clamscan to perform a virus scan on the entire system.
5. **Run Rootkit Scan:**
Uses rkhunter to perform a rootkit scan.
6. **Save Results:**
Saves the results of all checks to a text file (`security_check_results.txt`).
## Notes
- Some tasks may require elevated privileges. Ensure you run the script with `sudo` or as the root user when needed.
- Adjust the paths and configuration in the script based on your system.
## One line command
```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/botsarefuture/security_c/main/script.sh)"
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Feel free to contribute, open issues, or provide feedback!