0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ターミナルを作るスクリプト

Posted at

サーバーを操作できてしまうので非常に危険。
実際に使う場合は、外部に漏れないようにしたり、パスワードかけたり、権限を管理者だけにするのがおすすめ。
あんまり使わないと思うけど。

comand.php
<!DOCTYPE HTML>
<meta charset="utf-8">
<h1>ターミナル</h1>
<form action="" method="GET">
  コマンドを入力:<input type="text" name="cm">
  <input type="submit">
</form>
<hr>
<b>result:</b>
<br>
<?php
$cm = (!empty($_GET['cm'])) ? $_GET['cm'] : '' ;
echo exec($cm);
?>
0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?