Réf.: Re: [PEAR-DEV] how to submit a class about telnet ?

From: Date: Tue, 25 Mar 2003 17:48:05 +0000
Subject: Réf.: Re: [PEAR-DEV] how to submit a class about telnet ?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14617@lists.php.net to get a copy of this message
Le Tue, 25 Mar 2003 09:26:00 -0800 (PST), Xavier Noguer a écrit : > > El Lun 24 Mar 2003 12:35, jp@vincent.net escribió: > > Hello > > For business use, i needed to execute commands on a > > remote host, but nothing about telnet has been created > > in the pear project, so I wrote one. > > I like the idea of a telnet class for pear, but I > don't like the idea of > using processes instead of sockets. It could be a > serious security problem: > > require_once('./Telnet.php'); > > $telnet = new Net_Telnet(); > $telnet->_cmd_lancer_telnet = 'rm -f *'; > $telnet->telnet('127.0.0.1', '', ''); > > Is there a particular reason for not using sockets? > > > Xavier Yes, sockets would have been preferable, but there wasn't easy way (for me) to use it. After having tried to read the rfc and instead of creating a telnet terminal on my own, I decided to use the one of the machine where the php code is executed. Jean-Pierre VINCENT

« previous php.pear.dev (#14617) next »