Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
etc /
cron.daily /
[ HOME SHELL ]
Name
Size
Permission
Action
certwatch
2.19
KB
-rwxr-xr-x
cluebringer
40
B
-rwxr-xr-x
csget
3.24
KB
-rwx------
cwp
247
B
-rwxr-xr-x
cwp_acme.sh
36
B
-rwxr-xr-x
cwp_bandwidth
88
B
-rwxr-xr-x
cwp_php_autoupdate
135
B
-rwxr-xr-x
logrotate
219
B
-rwx------
maldet
3.71
KB
-rwxr-xr-x
man-db.cron
618
B
-rwxr-xr-x
mlocate
208
B
-rwx------
rkhunter
1.7
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : certwatch
#!/bin/bash # # Issue warning e-mails if SSL certificates expire, using # certwatch(1). Set NOCERTWATCH=yes in /etc/sysconfig/httpd # to disable. Pass additional options to certwatch in the # CERTWATCH_OPTS variable; see the man page for details. # # For certificates in pem files watch_files_certs() { test -x /etc/httpd/modules/mod_ssl.so || return 0 test -r /etc/httpd/conf/httpd.conf || return 0 set -o pipefail # pick up exit code of httpd not sort certs=`${httpd} ${OPTIONS} -t -DDUMP_CERTS 2>/dev/null | /bin/sort -u` RETVAL=$? test $RETVAL -eq 0 || return for c in $certs; do # Check whether a warning message is needed, then issue one if so. /usr/bin/certwatch $CERTWATCH_OPTS -q "$c" && /usr/bin/certwatch $CERTWATCH_OPTS "$c" | /usr/sbin/sendmail -oem -oi -t 2>/dev/null done } # For certificates in the database watch_database_certs() { test -x /usr/bin/certutil || return 0 test -x /etc/httpd/modules/libmodnss.so || return 0 test -r /etc/httpd/conf.d/nss.conf || return 0 # find path to mod_nss' database database=`/usr/bin/gawk '/^NSSCertificateDatabase/ { print $2 }' /etc/httpd/conf.d/nss.conf` # find the database prefix if any from the mod_nss config file dbprefix=`/usr/bin/gawk '/^NSSDBPrefix/ { print $2 }' /etc/httpd/conf.d/nss.conf` set -o pipefail # pick up exit code of certutil not gawk nicknames=`certutil -L -d $database | /usr/bin/gawk '{ print $1 }'` RETVAL=$? test $RETVAL -eq 0 || return 0 for n in $nicknames; do # Check whether a warning message is needed, then issue one if so. /usr/bin/certwatch $CERTWATCH_OPTS -q -d "$database" -c "$dbprefix" -k "$dbprefix" "$n" && /usr/bin/certwatch $CERTWATCH_OPTS -d "$database" -c "$dbprefix" -k "$dbprefix" "$n" | /usr/sbin/sendmail -oem -oi -t 2>/dev/null done } [ -r /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd # Use configured httpd binary httpd=${HTTPD-/usr/sbin/httpd} # Sanity checks test -z "${NOCERTWATCH}" || exit 0 test -x ${httpd} || exit 0 test -x /usr/bin/certwatch || exit 0 test -x /usr/sbin/sendmail || exit 0 test -x /bin/sort || exit 0 watch_files_certs watch_database_certs
Close