Thursday, March 1, 2007


$(cat /etc/passwd|egrep zentyl\|sysadmin |cut -d":" -f6); do
$kill `ps auxww | grep pmta | egrep -v grep | awk '{print $2}'`; service pmta start
$sar -r 60 2000|awk '{print $5}'|sed -e /^$/d|sed '/^%/d'|head -n1
$kill `ps auxww | grep perl | egrep -v grep | awk '{print $2}'`; service mysql restart
$find /Public/ -name *.mp3 -exec rm {} \;
kill `ps auxww | grep perl awk '{print $2}'`

kill `ps auxww | grep mysql | egrep -v grep | awk '{print $2}'`

du -h --max-depth=1 /Public/|awk '{print $1}'
search and replace all :1,$s///g
find /home -type f -iname '*.php' -exec grep -l -i "c99_buff_prepare" {} \;

setsebool -P ftpd_disable_trans 1

LINKS: cronjob


HACKER'S PAGE - report24/default pass
RooT66 -
ShellOracle -
b0f -
Hardbeat ( just has a lame page at --iptablesx - apf






shell scripting:

SSL Certificate generation:

openssl genrsa -des3 -out cybercells.key
openssl req -new -key cybercells.key cybercells.csr


User Name:
Password: hallticket
Oink Code: dedf1dbb630464a56cb5494b856a0ffc15df9d90

Example for snort 2.3:
Change: url =

How to use snort:

Network Intrusion Detection (NIDS) mode snort -dev -l ./log -h
Reading the Snort logfile: snort -r ./Piglet/logfile
Running Snort in Packet Logger mode: snort -dev -l ./Piglet
A Snort monitoring rule: content: [!] "content_string";
A non-payload detection rule: alert ip any any -> any any (ip_proto:icmp;)
A rule to detect a particular string: alert tcp any any -> any any 21 (content:"user root";)

Kernel upgradation:
make menuconfig
select the features u want in ur kernel
exit the menuconfig and come on to the shell saving the new configuration
make dep
make bzImage
make modules
make modules_install
ur new kernel is in the directory ./arch/i386/boot/bzImage copy it in the directory /boot/
edit ur bootloader so that u may boot the new kernel


1. Check current version of kernel on server using command uname -a, if
its 2.4 then download latest release for 2.4 please do not download 2.6
You can download kernel from
if its 2.4 then, you can
check latest stable release from

2. wget kernel in /usr/local/src
3. untar it using tar -zxvf linux-2.x-xxxx
4. cd linux-2.x-x
5. make clean
6. make mrproper
7. If kernel is 2.4 then copy current version of config file from
/boot/config-’uname-r’ as .config in /usr/local/src/linux-2.x-xx, if
kernel is 2.6 then you do not need to make .config in current directory
8. make menuconfig, select and check if all required modules are selected,
also make sure that your kernel supports multiple cpu
you can check it and select from processor type, if it displays support
for more then 2 kernel then you do not need to modify anything there.
9. save configuration and exit
10. make modules if kernel is 2.4 then need to run make dep before running
make modules
11. make modules_install
12. make
13. if 2.4 kernel then need to run make bzImage and then make install, you
can directly run make install if kernel is 2.6
15. now make sure bootloader and modify default kernel accordingly
grubby –bootloader-probe if it displays grub then edit /etc/grub.conf and
if its lilo then edit lilo.conf and make compiled kernel as default kernel
16. If your boot loader is lilo then you need to run 9one more command
/sbin/lilo which will update lilo
17. now its time to reboot server ( fedora)

No comments: