You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 months ago | |
---|---|---|
utils | 2 months ago | |
README.md | 2 months ago | |
remote_updater.sh | 8 months ago | |
scan_chk.sh | 2 months ago | |
scan_clam.sh | 2 months ago | |
scan_rkh.sh | 2 months ago | |
updates_notifier.sh | 2 months ago |
README.md
Bash Scripts collection
Permanent enviroment variables in ~/.profile
Append file ~/.profile
with this variables:
# E7 Scripts
# ClamAV scan script
export E7S_CLAM_LOGPATH="/path/to/logs/"
# Multiple folders separate by space
export E7S_CLAM_DIRSTOSCAN="/path/to/target/"
# Global script variables
export E7S_GOTIFY_SERVER_URL="https://push.example.com"
export E7S_LOGS_PRESERVE_DAYS=30
export ES7_LOGS_SERVER_SSH="server.example.com"
export ES7_LOGS_PATH="/path/to/web/root/"
export ES7_LOGS_URL="https://logs.example.com"
Scripts
utils/gotifypush.sh
Send markdown notifications to gotify channel throught curl
- Usage:
./gotifypush.sh <title> <message> <priority> <token> <clickurl>
utils/logger.sh
Save logs into remote server and publish it into web server
- Usage:
./logger.sh <logfile> <relativepath>
scan_chk.sh
Scan rootkits into system with chkrootkit
- Usage:
./scan_chk.sh
scan_rkh.sh
Scan rootkits into system with rkhunter
- Usage:
./scan_rkh.sh
scan_clam.sh
Scan virus and malware into system with clamav
- Usage:
./scan_clam.sh