powered by linux .::.: started in 1998 .::.:    


giancarlo erra .: tech homepage :.
Contacts


.: email . info@bluecodes.com
.: icq . 69177714
.: fax . (0039) 06 233218527
Links

.:: http://www.nosound.net
.:: http://www.bluecodes.com
.:: http://www.synesthesiasense.com
.:: http://nolistening.nosound.net
1 .:: homepage
homepage, news, updates.
2 .:: who am I?
something more about me, my life, my friends.
3 .:: the alfalinux project
the alfalinux minidistribution homepage: documentation, downloads, links, related projects.
4 .:: php factory
some works related to the php world: documentation, tutorials, scripts.
5 .:: documentation
documentation/tutorials/articles I wrote or translated.
6 .:: other linux projects
all my linux software & projects.
7 .:: resources
miscellaneous tech resources
8 .:: thanks
people I like to thanks..







:. pcom







:: Pcom - php commander

(c) 2000 Giancarlo Erra

This software is under the GNU Public License (GPL)





DESCRIPTION
Pcom is a PHP-driven webtelnet, that is a web interface to execute shell commands/external programs on a server. Obviously there are limitations, derived mainly by security limitations on the webserver (ie safe_mode in php). There is also a limitation on the program function itself, because you can only use non-interactive commands: you can launch a command or a program that doesn't need user interaction, but you cannot use something like lynx or irc (you can onlylaunch an interactive application in background, driving it automatically by arguments and/or scripts -where possible-). Remember that you can only launch a command, you don't drive a real shell. So, if you launch a ping it will go forever because you cannot take back the control on the stdin, while launching a traceroute you should get back control and output of the command because it terminates itself without user interaction.

INSTALLATION:
Unpack the archive, copy pcom.jpg and pcom.php3 files in your webserver and enjoy. Tested only on Apache and PHP (as module), without any limitation (bad idea :P) in configuration, such as safe_mode and all the other security stuff.

DISCLAIMER
I know this software is potentially dangerous, but YOU (have to) know that PHP can limit things like this easily. Use it at your own risk.

Screenshot of an ls -la in Pcom




:. Download (http) Pcom (14k)





..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..::..
© 2002