File Management

Main : Helpful Scripts : 
Category: Helpful Scripts Submitted by: suprsidr
  shellExec.php    Popular

Execute simple SSH shell commands via PHP

Usage:
Edit line 27 with your password.
Upload to a web accessible address on your php enabled web server.
Visit http://www.yoursite.com/path/to/shellExec.php

Hint:
Provided exec() is enabled on your server, you should be able to perform many SSH commandline operations.
Use full paths when performing operations like chmod and chown

chmod -R 0777 /usr/local/www/vhosts/mysite.com/httpdocs/uploads
or when calling a specific program like
/usr/local/bin/ffmpeg -formats
or
/usr/local/bin ls
for instance.

Enjoy!

** WARNING **
Do not leave this file on your webserver as a malicious person with the right skills could guess your password and do serious damage to your server.

  Ver:  1.1  Date: Apr.03.13   Rating: 0.00   979     4.08 KB  
 |  Download |  File Link |  Rate this File |  Report Broken File  |