🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8586

Re: Ejecutar script con PHP

#8586
From: Iván Sánchez Ortega
Date: Sat, 26 Oct 2002 19:06
20 lines
2067 bytes
PATAN wrote:

> No, necestita leer el archivo messages el cual solo puede leerlo el root.

Hhhhmmm...

�El script se ejecuta como un shell script, o desde apache??

Si lo ejecutas como shell script (desde consola), puedes poner a 1 el bit de 
suid (como root, "chmod 4755 loquesea.php") y olvidarte de todo...

Si lo ejecutas desde apache, puedes hacer que el script llame a otro (con 
"exec" y su familia) que sea capaz de ejecutarse con suid.

----------------------------------
Iv�n S�nchez Ortega -ivansanchez-arroba-wanadoo-punto-e-ese-

Para un hombre, cuando su deseo ya ha alcanzado el fin, resulta la vida tan 
imposible como para otro cuyas fantas�as est�n paralizadas, ya que la 
felicidad es un conyt�nuo progreso.
Technical Details
Message-ID: <20021026190637.317ACE89.NOFFLE@BlueSpark.local>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
References: <qvdcpa.e48.ln@www.mardot.com> <20021026132540.60AC2444.NOFFLE@BlueSpark.local> <vlhepa.1kd.ln@www.mardot.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,bef4549bd8e541b0
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-26 12:06:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
From: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Ejecutar script con PHP
Date: Sat, 26 Oct 2002 21:06:37 +0200
Organization: acm.asoc.fi.upm.es
Lines: 20
Message-ID: <20021026190637.317ACE89.NOFFLE@BlueSpark.local>
References: <qvdcpa.e48.ln@www.mardot.com> <20021026132540.60AC2444.NOFFLE@BlueSpark.local> <vlhepa.1kd.ln@www.mardot.com>
Reply-To: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es>
NNTP-Posting-Host: 62-37-90-10.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Trace: pinsa.escomposlinux.org 1035659204 25109 62.37.90.10 (26 Oct 2002 19:06:44 GMT)
X-Complaints-To: newsmaster@pinsa.escomposlinux.org
NNTP-Posting-Date: Sat, 26 Oct 2002 19:06:44 +0000 (UTC)
User-Agent: KNode/0.7.1