Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiab77/rkhunter-manage
RootKit Hunter management script
https://github.com/jiab77/rkhunter-manage
Last synced: 2 days ago
JSON representation
RootKit Hunter management script
- Host: GitHub
- URL: https://github.com/jiab77/rkhunter-manage
- Owner: Jiab77
- License: mit
- Created: 2021-04-25T16:46:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T16:04:10.000Z (9 months ago)
- Last Synced: 2024-04-11T19:04:00.680Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rkhunter-manage
Rootkit Hunter management script
## Context
Based on this [article](https://www.getpagespeed.com/server-setup/security/sane-use-of-rkhunter-in-centos-7) I wanted to make something useful for everyone not matter the linux distro they are using.
As I did something pretty similar for the [Vuls](https://github.com/future-architect/vuls) project named [vuls-manage](https://github.com/Jiab77/vuls-scripts/blob/master/native/vuls-manage.sh), why not doing same for [Rootkit Hunter](http://rkhunter.sourceforge.net/)?
Here is how [rkhunter-manage](rkhunter-manage.sh) is born.
## Installation
```bash
# Get the latest version of the script
wget https://raw.githubusercontent.com/Jiab77/rkhunter-manage/main/rkhunter-manage.sh -O rkhunter-manage.sh# Make the script executable
chmod -v +x rkhunter-manage.sh# Install globally (optional)
sudo mv -v rkhunter-manage.sh /usr/local/bin/rkhunter-manage
```> When installed globally, the `.sh` extension is removed for convenience. You can then call the script simply by typing `rkhunter-manage`.
## Usage
```console
$ rkhunter-manageRootkit Hunter management script / Jiab77 - 2021
Usage: rkhunter-manage
configure - Configure existing Rootkit Hunter installation
restore - Restore RootKit Hunter configuration from backup file
update - Download and update Rootkit Hunter database files
scan - Run Rootkit Hunter scan
scan-from-cron - Run Rootkit Hunter scan from CRON
show-log - Show log from last scan
help - Show help
```> The `scan` option will enable tests that are disabled by default for some reasons. This will make the scan more longer than usual but __it's an expected behavior__.
## Initialization
Before running the initial scan, you must configure `rkhunter` and download latest database files.
Here is how to do it:
1. `rkhunter-manage` __configure__
2. `rkhunter-manage` __update__
3. `rkhunter-manage` __scan__> If you want to restore the original `rkhunter` config, simply run `rkhunter-manage` __restore__.
## Credit
* [@Jiab77](https://github.com/jiab77)