|
|
| Version: 0.2 | Downloaded: 4673 times |
WatchMySQL is a script we wrote because some people out there where having problems with users abusing mysql and they could not figure out who it was. You should run this script in the background. It will connect into MySQL and stay connected. Every 10 minutes (default) it will check to make sure that the user has not gone over their concurrent connection limit. You can change the time/limits. As of version 0.2 the script has the ability to kill the users connections to mysql if they go over there limit. |
| |
| Version: 0.1 | Downloaded: 4553 times |
This script will scan and find vulnerable versions of phpBB 2.0.x. The script was created after a nasty hole was discovered in phpbb which allowed a unauthorized guest to execute code on the server. This script has a few options, run the script with the --help argument to get a list of options. |
| |
| Version: 0.1 | Downloaded: 4463 times |
This script cleans up old backups. If some of you have noticed cpanel leaves backups of old accounts that have been terminated. This can comsume valuble space. This script runs thru /var/cpanel/users and compares those users with the cpanel backups. If it finds a backup that does not have a user in /var/cpanel/users it takes whatever action you told it to do (Report, or Delete). This script can be run from cron, this script also checks for cpbackup and sleeps until cpbackup stops. |
| |
| Version: 0.1 | Downloaded: 4095 times |
This script was written because way too many people run versions of formmail which allow spammers to spam thru. This script scans your system, finds all *.cgi and *.pl files and looks for formmail. If it finds a formmail version in the script it pulls it and checks to make sure it's not vulnerable. This script gives you a cupple options, you can run it as a cron job and have the results emailed to you every night or you could also set the script to disable the insecure files (chmod 000 file). By default it prints the output to stdout.
Requires PerlMod File::Find::Rule |
| |
| Version: 0.3 | Downloaded: 4066 times |
The main reason this script was written was to help admins keep track of domains that still pointed to a server that they where trying to move accounts off of. This script was also found useful because it helped find mistakes. Some sales/admins forget to remove accounts of canceled customers. Basically this script scans thru a db file and resolves each domain and makes sure it points to the correct ip. If it does not point to the right ip then it will let you know.
|
| |
| Version: 0.1 | Downloaded: 4030 times |
Tired of seeing the 404.shtml cannot be found in the error_log? This script runs thru your system and creates 404.shtml for every user who doesnt have one. It also creates one in the cpanel3-skel dir. Depending on how many 404.shtml errors you get per sec this may help with cutting down some read/writes on your harddisk. |
| |
| Version: 0.1 | Downloaded: 3578 times |
This script will rebuild all your /var/named/*.db files. It first pulls every client from /var/cpanel/users and grabs each users domain and ip address. It then pulls the first 2 nameservers from /etc/wwwacct.conf and rebuilds the zones to how they would be if you just setup this account.
|
| |
| Version: 0.2 | Downloaded: 3417 times |
Portwatch counts the number of connections from a single ip to a specific port. This script is useful to see how many request are comming into somthing like apache/ftp/smtp/pop/imap/etc at that point in time from a single ip. Shows both UDP/TCP |
| |
| Version: 0.01 | Downloaded: 3301 times |
Runs thru /var/named and updates the serial on all zones. Update format allows for just numerical increments or YYYYMMDDRR. |
| |
| Version: 0.1 | Downloaded: 3149 times |
Check .bash_history files to see if any of the users have used cc/gcc (the compilers). If they have, it show's you what they ran. If the .bash_history file doesn't exist then the script creates one. Main purpose of this script was just a quick way to scan for and see if any body is compiling something they shouldn't be. Any smart hacker will clear the .bash_history and cover there tracks or if they use another shell type. |
| |
| Version: 0.1 | Downloaded: 3004 times |
This script fixes a problem where /home/mail/user/inbox and /home/mail/domain/user/inbox are not linked to the same inode (hardlinked). The problem is that some times this link is broken and 2 separate inbox's are created leaving one of them just sitting there eating up resources. This script will do one of the following depending on which arguments you pass to it. One, Combine the 2 separate mailboxes and recreate the hardlink or Two, Delete the bad mailbox and recreate the hardlinks. |
| |