PHPからUSERADDを実行する
$id = "username";
$passwd = crypt("passwd");
$cmd = "echo 'sudoPasswd' | sudo -S useradd -p $passwd $id";
exec($cmd, $output);
ROOTディレクトリを表示
//ls -a /root
$cmd2 = "echo…
htmlファイルでphpを動かすための.htaccessファイルの設定
.htaccessファイル内に以下の行を記述します。
AddType application/x-httpd-php .htm .html
当然の前提条件として、htaccessの動作が許可されているサーバに限ります。
graffiti on the web
この投稿へのコメント
コメントはまだありません。