Month: May 2009

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…