Monthly Archives: October 2009

25 10, 2009

Drop Sync/DDOS Attack

By |October 25th, 2009|Issues, linux, Scripts, Server Security|1 Comment

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 netstat -plan  | grep  :80 | awk ‘{print $5}’ | cut -d: -f1 |sort |uniq [...]

24 10, 2009

Script for replacing a string in multiple files

By |October 24th, 2009|Issues, linux, Scripts|1 Comment

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

6 10, 2009

How to Boot second kernel if first fails

By |October 6th, 2009|Issues, linux, Server Setup|1 Comment

Reference : 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)         kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=LABEL=/ acpi=off         initrd /initrd-2.6.20-1.2944.fc6.img title Fedora Core   [...]

Load More Posts