Difference between revisions of "Main Page"
(→Greasy Monkey (GreaseMonkey Scripts)) |
|||
| Line 119: | Line 119: | ||
Script to clean up the stats side bar. Provides easier reading by aligning content and removing ugly links. | Script to clean up the stats side bar. Provides easier reading by aligning content and removing ugly links. | ||
| + | |||
| + | ===[[Less Detail]]=== | ||
| + | |||
| + | Script to clean up from response detail chart and only shows select staff. | ||
==Misc Script Fu== | ==Misc Script Fu== | ||
Revision as of 16:49, 24 January 2012
Contents
- 1 Knowledge
- 2 One Liners
- 2.1 Add PHP.ini to user directory
- 2.2 DOS IP with local port
- 2.3 Find all backups for user
- 2.4 Get status of MalDet hits
- 2.5 View Domlogs for top visitors
- 2.6 Hacker Term Search
- 2.7 Exim Queue Scripts
- 2.8 Top MySQL Slow Queries from log
- 2.9 WordPress Version Finder
- 2.10 Joomla Version Finder
- 2.11 Version Finder
- 2.12 Process Usage Scripts
- 2.13 Denied DNS Requests
- 2.14 Mail Bandwidth Usage Per Email Account
- 3 Scripts
- 4 Greasy Monkey (GreaseMonkey Scripts)
- 5 Misc Script Fu
- 6 Scripts by Others
- 7 Solutions (Multi Step)
Knowledge
Monitorix Install cPanel
Instructions for installing Monitorix on a cPanel box.
Find and Replace in SQL database
Find and replace contents of a field in MySQL.
CentOS 6 Minimum Template Changes
Packages that need to be installed to the base template to add standard functionality.
ModSec rules to block RapidLeech
ModSec rules designed to block users from installing and operating RapidLeach software
Gluster Performance
Basic study of performance loss when using Gluster in comparison to a physical drive or iSCSI mount.
One Liners
Add PHP.ini to user directory
Scripts to copy php.ini file to users directory and set .htaccess to protect the file. Need to know what PHP handler is set up to determin what script to run.
DOS IP with local port
One liner to return all IPs that are accessing the server and what port they are connecting to. Good for determining DOS attacks that are not targeting port 80.
Find all backups for user
Simple onliner that searches cPanel backup directories and returns all the backups for that user, provides ls -la output for time stamps.
Get status of MalDet hits
Collection of scripts that parse the latest Maldet scan and provide useful information about the files that were found. Also can chmod or delete infected files.
View Domlogs for top visitors
Several different scripts that parse the Apache domlogs for a single time period and returns the top visitors, the site they visted and their user agents.
Hacker Term Search
Simple script to search php and html files for different terms and provides a list of files that were found.
Exim Queue Scripts
Several different scripts to parse the exim queue directories looking for spam senders. Also has the ability to delete messages and handle very large queues.
Top MySQL Slow Queries from log
Script to sort the slow.log by the longest running queries. Can provide partial or full query.
WordPress Version Finder
Find wordpress versions installed on all sites. This is depreciated and will be removed shortly.
Joomla Version Finder
Find joomla versions installed on all sites. This is depreciated and will be removed shortly.
Version Finder
New version finder script that does a better job of searching user directories and searches for more known CMS packages.
Process Usage Scripts
Scripts that collate either CPU or memory usage by process type (ie httpd) and shows what programs are using the most memory.
Denied DNS Requests
Searches messages log and provides a list of the top denied DNS requests regardless of case.
Mail Bandwidth Usage Per Email Account
Script that parses the mail log and provides bandwidth usage per account.
Scripts
SwapClean
This script monitors swap usage and can automatically clear it out if the system is responsive and below several set thresholds.
errornotify
Personal script that processes the apache error log once a day and sends an email with the different error types.
ministat
Script to monitor common LAMP processes on a server. By default provides output from MySQL, Apache, Free, Top and loadavg every 10 seconds. Grows to terminal size so can be placed anywhere.
Disk Speed Test
Script to run several different intensive speed test scripts on a single drive. Good for testing performance between physical disks or network based disks. Runs each scan three times to give you a good average.
Apache Restart
Script to check the load on a server and automatically restart Apache if the load is determined to be above the threshold.
Bot Block
Scripts to block DDOS attacks based on the user agent. Will start working on a new version at some point that will run more efficiently.
adig
Script to dig against several different sources to provide a good overview of what is being reported for a domain. Checks agains resolv.conf, ns.liquidweb.com, google.com, and domains listed name servers. Colorizes the results to provide easier reading.
Greasy Monkey (GreaseMonkey Scripts)
HD Button Remove
Script to remove help desk buttons that are not used. Can update string to further limit or allow buttons.
Not So Important
Removes important customer tickets from the priority help desk view. This should be removed automatically with a later code push.
Side Bar Color Fixer
Script to clean up the stats side bar. Provides easier reading by aligning content and removing ugly links.
Less Detail
Script to clean up from response detail chart and only shows select staff.
Misc Script Fu
count*.gif? detection and removal
Several different scripts that have been used to try to repair pages that have injected code.
Scripts by Others
MySQL Memory Usage
Script that provides a summary of MySQL's memory usage based on the current settings. This will provide the maximum memory usage and may not reflect the real memory usage.