This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/scripts/perlinstaller ExtUtils::Installer | |
rm -f /var/cpanel/version/netssleay | |
/usr/local/cpanel/bin/nativessl-install | |
/usr/local/cpanel/etc/init/stopcpsrvd | |
/usr/local/cpanel/etc/init/startcpsrvd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
$stats = `/root/sysutils/usagestats.sh`; | |
chomp($hostname = `hostname`); | |
chomp($date = `date +%m/%d/%Y`); | |
open (OUT, "|/usr/sbin/sendmail -t"); | |
print OUT "From: nobody\@$hostname\n"; | |
print OUT "To: sysadmin\@hostpapasupport.com\n"; | |
print OUT "Subject: $hostname: Usage Stats for $date\n\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/root/sysutils/diskusage.pl | |
/root/sysutils/bandwidthusage.pl | |
/root/sysutils/cpuparse.pl | |
/root/sysutils/mysqldbsize.pl | |
/root/sysutils/mysqlslowq.pl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `tail -1000 /usr/local/apache/logs/error_log|grep "350111"| awk '{print $32}'|sort -n |uniq`;do /usr/sbin/csf -d $i wp-bruteforce;done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
alias cp="cp" | |
for i in `ls /home/`; do | |
if [ -f /home/$i/public_html/hplogo.gif ]; then | |
cp -vf /root/cpanel3-skel/public_html/hplogo.gif /home/$i/public_html/hplogo.gif | |
fi | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use File::stat; | |
use Time::localtime; | |
for my $user (`ls /var/cpanel/users`) { | |
chomp $user; | |
if (-f "/var/cpanel/suspended/$user") { | |
$suspended = "yes"; | |
chomp($reason = `cat /var/cpanel/suspended/$user`); | |
$date = ctime(stat("/var/cpanel/suspended/$user")->mtime); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in `cat /etc/userdomains| cut -d":" -f1 | grep -v \*`; do grep $i.zip /var/log/messages; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps aux | grep $1 | grep -v root | awk '{print $2}' | xargs kill -9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/sbin/ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1 | |
/sbin/ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in 1 2; do X=$Y; sleep 1; Y=$(/sbin/ifconfig eth0|grep TX\ bytes|awk '{ print $6 }'|cut -d : -f 2); echo "$(( Y-X ))"; done | tail -1 |