Log Locations

General: cPanel/WHM Initial Installation Errors: Location : /var/log/cpanel*install* Description : These log files contain cPanel installation logs & should be referenced first for any issues resulting from new cPanel installations.. Cpanel/WHM Service Status Logs: Location : /var/log/chkservd.log Description :The service monitoring demon (chkservd) logs all service checks here. Failed service are represented with a [-]…


Gospel of Tux

Gospel of Tux Every generation has a mythology. Every millenium has a doomsday cult. Every legend gets the distortion knob wound up until the speaker melts. Archeologists at the University of Helsinki today uncovered what could be the earliest known writings from the Cult of Tux, a fanatical religious sect that flourished during the early…


Recover lost root password

1) Reboot your system. 2) When GRUB comes up type e . 3) Now select entry that begins with kernel. 4) Add then end of the kernel entry type either s or single, now hit enter. ‘kernel/ single’ make sure to add a space after kernel/ 5) Type b, the box will boot up and…


Clamscan

freshclam && clamscan -i -r –log=/root/clamscan.log /home/*/public_html & find /home/*/public_html -type f \( -name “*.cgi” -o -name “*.php” \) -print0 | xargs -0 egrep ‘(\/tmp\/cmdtemp|SnIpEr_SA|Bhl ynx|x2300|c99shell|r57shell|milw0rm|g00nshell|locus7|MyShell|PHP\ Shell|phpshell|PHPShell|PHPKonsole|Haxplorer|phpRemoteView|w4ck1ng|PHP-Proxy|Locus7s|ccteam)’ | cut -d ‘:’ -f1 | sort | uniq > shellcheck.txt && cat shellcheck.txt |mail -s “shellcheck from `hostname` on `date`” [email protected] & find /home/*/public_html -type f -print0…


send email @ reboot

crontab -e @reboot echo “Rebooted, now online” | Mail -s “`hostname` PAGE” [email protected]


How do I capture the output of “top” to a file?

top -b -n1 > /tmp/top.txt This will run top once write the output to a file and exit. The command top can also be run so that it will give multiple reports. To run top 5 times and wait 5 seconds between each output the command would be: top -b -n5 -d5 > /tmp/top.txt


Perspectives Firefox Addon

Perspectives is a new approach to help clients securely identify Internet servers in order to avoid “man-in-the-middle” attacks. Perspectives is simple and cheap compared to existing approaches because it automatically builds a robust database of network identities using lightweight network probing by “network notaries” located in multiple vantage points across the Internet. The extension provides…


Make your nic card blink

Which physical interface is eth0? ethtool -p eth0 5 This blinks the LED on the interface for five seconds–without interrupting network traffic. supported only by the following drivers: ewrk3 s2io sky2 tg3 e100 pcnet32 bnx2 skge e1000 sk98lin ixgb


Install APF Firewall

Login to your server through SSH and su to the root user. 1. cd /root/downloads or another temporary folder where you store your files. 2. wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz 3. tar -xvzf apf-current.tar.gz 4. cd apf-0.9.5-1/ or whatever the latest version is. 5. Run the install file: ./install.sh You will receive a message saying it has been…


Install BFD (Brute Force Detection)

What is Brute Force Detection? (BFD) BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little…