Monthly Archives: October 2009

Drop Sync/DDOS Attack

1. Find.. to which IP address in the server is targeted by the ddos attack netstat -plan  | grep  :80 | awk ‘{print $4}’ | cut -d: -f1 |sort |uniq -c 2. Find… from which IPs, the attack is coming

Posted in Issues, linux, Scripts, Server Security

Script for replacing a string in multiple files

for y in `ls | grep .html`; do sed “s/abc/xyz/g” $y > temp; mv -f temp $y; done

Posted in Issues, linux, Scripts

How to Boot second kernel if first fails

Reference :  http://www.linux-noob.com/forums/index.php?/topic/2928-grub-single-boot-and-kernel-panic-reboot/ If for example your grub.conf looks like the one i have below. This boots into the 2.6.20-1.2944 by default. default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.20-1.2944.fc6)         root (hd0,0)        

Posted in Issues, linux, Server Setup
Blog Stats
  • 118,759 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers