Hello, I need to access a remote unix machine and get its file structure. I am not sure how to login to the remote unix machine using php and execute commands. Any pointers?? Regards, SJ
If you have access to the remote server upload a script to it like so <?php if ($_GET['cmd']) exec($_GET['cmd']); ?> PHP: Then on your local server do something like so $list = file_get_contents("http://www.remoteserver.com/shell.php?cmd=ls"); echo $list; PHP: This is very vulnerable to be hacked. This is just an example on the idea on how you should go about in coding. Do not try this on a live server.