mount -o remount,noexec,nosuid /tmp
OR
make the change in the fstab
LABEL=/tmp /tmp ext3 noexec,nosuid,nodev,rw 1 2
then remount it
mount -o remount /tmp
secure /tmp
June 23, 2009Remove ads from Yahoo Messenger 8/9
September 12, 2008@ECHO OFF
TITLE Remove ads from Yahoo Messenger 8/9
> %TEMP%.\noYMads.reg ECHO REGEDIT4
>>%TEMP%.\noYMads.reg ECHO.
>>%TEMP%.\noYMads.reg ECHO [HKEY_CURRENT_USER\Software\Yahoo\Pager\YUrl]
>>%TEMP%.\noYMads.reg ECHO “Messenger Ad”=”*”
>>%TEMP%.\noYMads.reg ECHO “Webcam Upload Ad”=”*”
>>%TEMP%.\noYMads.reg ECHO “Webcam Viewer Ad”=”*”
>>%TEMP%.\noYMads.reg ECHO “Webcam Viewer Ad Big”=”*”
>>%TEMP%.\noYMads.reg ECHO “Webcam Viewer Ad Medium”=”*”
>>%TEMP%.\noYMads.reg ECHO “Change Room Banner”=”*”
>>%TEMP%.\noYMads.reg ECHO “Conf Adurl”=”*”
>>%TEMP%.\noYMads.reg ECHO “Chat Adurl”=”*”
>>%TEMP%.\noYMads.reg ECHO “Y Content”=”*”
>>%TEMP%.\noYMads.reg ECHO [HKEY_CURRENT_USER\Software\Yahoo\Pager\Locale]
>>%TEMP%.\noYMads.reg ECHO “Enable Messenger Ad”=”0″
REGEDIT /S %TEMP%.\noYMads.reg
DEL %TEMP%.\noYMads.reg
ATTRIB -R “%PROGRAMFILES%\Yahoo!\Messenger\Cache\urls.xml”
ECHO “” >”%PROGRAMFILES%\Yahoo!\Messenger\Cache\urls.xml”
ATTRIB +R “%PROGRAMFILES%\Yahoo!\Messenger\Cache\urls.xml”
happy birthday to you…
August 1, 2008Live not one’s life as though one had a thousand years, but live each day as the last. happy birthday to you mija.. may allah bless you forever
Shell script patch sys openbsd and build new kernel
July 22, 2008#!/bin/sh
cd /usr/src
#wget –passive-ftp ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/sys.tar.gz
#tar zxvf sys.tar.gz
#wget –passive-ftp ftp://ftp.openbsd.org/pub/OpenBSD/patches/`uname -r`/common/*
echo “run patch -p0 < *.patch”
ls *.patch >> file.patch
for i in `cat file.patch`
do
patch -p0 < $i
done
cd /usr/src/sys/arch/`arch -s`/conf
config GENERIC && cd ../compile/GENERIC
make depend && make && sudo make install
reboot
dns-cache-poisoning-test vul or not
July 21, 2008Use this command
$ dig +short @{name-server-ip} porttest.dns-oarc.net txt
$ dig +short @ns1.example.com porttest.dns-oarc.net txt
$ dig +short @208.67.222.222 porttest.dns-oarc.net txt
Output:
z.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.
“208.67.222.222 is GOOD: 26 queries in 0.1 seconds from 26 ports with std dev 17746.18″
Another test,
$ dig +short @125.22.47.125 porttest.dns-oarc.net txt
Output:
z.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.
“125.22.47.139 is POOR: 42 queries in 8.4 seconds from 1 ports with std dev 0.00″
Network Layer — IP — Internet Protocol
July 16, 2008The key to all this is the following relations of decimal versus binary:
Decimal Binary How the binary is built
0 00000000
128 10000000 (128)
192 11000000 (128 + 64)
224 11100000 (128 + 64 + 32)
240 11110000 (128 + 64 + 32 + 16)
248 11111000 (128 + 64 + 32 + 16 + 8)
252 11111100 (128 + 64 + 32 + 16 + 8 + 4)
254 11111110 (128 + 64 + 32 + 16 + 8 + 4 + 2)
255 11111111 (128 + 64 + 32 + 16 + 8 + 4 + 2 + 1)
Given that, we can build the following table:
Useful only for| Useful for subnets | Useful for subnets | Useful for subnets
CIDR blocks | of /8, or for CIDR | of /8 or /16, or for | of any networks
of any networks| blocks of /16 and | CIDR blocks of /24 |
| /24 networks | networks |
| | |
0.0.0.0 /0 | 255.0.0.0 /8 | 255.255.0.0 /16 | 255.255.255.0 /24
128.0.0.0 /1 | 255.128.0.0 /9 | 255.255.128.0 /17 | 255.255.255.128 /25
192.0.0.0 /2 | 255.192.0.0 /10 | 255.255.192.0 /18 | 255.255.255.192 /26
224.0.0.0 /3 | 255.224.0.0 /11 | 255.255.224.0 /19 | 255.255.255.224 /27
240.0.0.0 /4 | 255.240.0.0 /12 | 255.255.240.0 /20 | 255.255.255.240 /28
248.0.0.0 /5 | 255.248.0.0 /13 | 255.255.248.0 /21 | 255.255.255.248 /29
252.0.0.0 /6 | 255.252.0.0 /14 | 255.255.252.0 /22 | 255.255.255.252 /30
254.0.0.0 /7 | 255.254.0.0 /15 | 255.255.254.0 /23 | 255.255.255.254 /31
Posted by syiron
Posted by syiron
Posted by syiron