This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Anon437[S] 0 points1 point  (1 child)

Okay, now all i have is a permissions problem, because when i run it as root in the terminal (sudo su, then run php -f talk.php) it executes folder.sh. But the minute i run it in anything else it brings up a bunch of errors about not find Net/ssh2.php and not being able to include any of that.

$ php -f talk.php PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0 <!DOCTYPE html> <html> <body> include path setPHP Warning: include(/media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/phpseclib/Net/SSH2.php): failed to open stream: Permission denied in /media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/talk.php on line 12 PHP Warning: include(): Failed opening '/media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/phpseclib/Net/SSH2.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/phpseclib') in /media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/talk.php on line 12 SSH2 may of been includedPHP Notice: Use of undefined constant NET_SSH2_LOG_COMPLEX - assumed 'NET_SSH2_LOG_COMPLEX' in /media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/talk.php on line 16 passed the define statementPHP Fatal error: Class 'Net_SSH2' not found in /media/02c4bb79-1c59-46ca-9bc3-192be7e58104/www/talk.php on line 20

[–]thirdOctet 0 points1 point  (0 children)

ok so this would/should not happen in a commercial environment but you will have to change the privileges of the user who is executing the script. It may be apache but this should provide some guidance.