On 4/24/07, Tijnema ! <tijnema@xxxxxxxxx> wrote:
On 4/24/07, Davi <davividal@xxxxxxxxxxxxxxxx> wrote: > Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: > > On 4/23/07, Davi <davividal@xxxxxxxxxxxxxxxx> wrote: > > > Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: > > > > On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: > > > > > <?php $MAC = system("arp 192.168.200.254"); echo $MAC; ?> > > > > > does not give me any > > > > > output. I have copied arp to a place that the apache user can execute > > > > > from and ensured arp is executable. > > > > > > > > Use exec and the extra args to get error codes. > > > > > > ARP is a root-command... =] > > > > Ok, maybe it's because i've builded my own Linux, and didn't wanted to > > have any security, but /sbin/arp has chmod value 755 on my system, and > > so, i can execute it with any user. > > > > cheatter... =P I hate security ;) Also, i have Apache running as root, so i can execute everything i want :)
I hope you never make your server public then or try to become a server-administrator.. Wow. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php