suid binaries on CDROM

V13 v13 at priest.com
Mon Sep 2 23:19:01 EEST 2002


On Monday 02 September 2002 22:15, Alexandros Papadopoulos wrote:

Desto ligo diaforetika:

> [0] Paw kai ftiaxnw ena partition mege8ous 10MB
> [1] Tou rixnw ext2fs apo panw
> [2] Antigrafw ena shell (px /bin/bash) ekei, kai to kanw suid root
> [3] Ftiaxnw ena image tou partition (me to dd ypo8etw) sto arxeio img.cd
> [4] Kaiw to img.cd se ena CDROM me ta katallhla switches

Exeis enan disko.. Ftiaxneis ena partition kai bazeis ext2 + suid shell (btw 
to bash den tha soy itan kai oply ofelimo san suid, alla leme)

> Ws edw exoume ena ext2fs me ena suid root shell sto CD.
To idio, alla se ena partition enos diskoy

> Meta:
>
> [5] Paw mia bolta se enan filo linuxa
> [6] Kanw mount to CDROM mou (exei bare8ei na bgalei to suid bit apo to
> /bin/mount sto systhma tou)

Bazeis ton disko sto tray poy exei (esto).

> [7] Epishs exei bare8ei na balei to option nosuid sto /etc/fstab tou.
> [8] Ektelw to shell mou san restricted xrhsths

Ta idia..

> To apotelesma einai na exw ena root shell sto kseno mhxanhma xwris na exw
> kanei tipota idiaitero. Einai dynaton na einai toso eykolo?

Efoson o typos barethike na alaksei to fstab tha barethike na alaksei kai to 
lilo, opote dinontas sto prompt toy lilo: linux "init=/bin/bash" (h kati 
tetoio) tha exeis ena apo ta idia, xvris na xreiazetai oli ayti i fasaria.

To idio mporeis na kaneis kai me disketa...

tha moy peis .. ma den mporo na kano mount partition san xristis... 
nai alla oyte kai cd mporeis na kaneis mount san xristis ektos an exei 
peiraksei to fstab toy.

> -A
<<V13>>



More information about the Linux-greek-users mailing list