Difference between revisions of "Main Page"

From James Dooley's Wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
==Knowledge==
+
<categorytree mode=pages>One Liners</categorytree>
−
===[[Monitorix Install cPanel]]===
 
  
−
Instructions for installing Monitorix on a cPanel box.
+
<categorytree mode=pages>Scripts</categorytree>
  
−
===[[Find and Replace in SQL database]]===
+
<categorytree mode=pages>GreaseMonkey</categorytree>
  
−
Find and replace contents of a field in MySQL.
+
<categorytree mode=pages>Knowledge</categorytree>
  
−
===[[CentOS 6 Minimum Template Changes]]===
+
<categorytree mode=pages>LogStash</categorytree>
  
−
Packages that need to be installed to the base template to add standard functionality.
+
<categorytree mode=pages>Misc</categorytree>
−
 
 
−
===[[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.
 
−
 
 
−
===[[Change default check_mem function nagios]]===
 
−
 
 
−
Basic install instructions for changing from check_mem to check_mem.pl function to show proper memory usage.
 
−
 
 
−
==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.
 
−
 
 
−
===[[Examine large SQL queries]]===
 
−
 
 
−
Process for examining queries that seem to take a long time to send (ie "Waiting for net")
 
−
 
 
−
==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.
 
−
 
 
−
===[[MySQL Memory Usage Verbose]]===
 
−
 
 
−
==Solutions (Multi Step)==
 
−
 
 
−
===[[MySQL Import Progress]]===
 

Latest revision as of 20:33, 7 April 2012