Wordpress 等でのPHPのマルウェア・ウィルス・改ざんコードをデコードして難読化をオンラインで解除し、
元の読みやすいコードに戻し解読できます。
<?php
if ($_SERVER["\x53\x45\x52\126\105\x52\137\116\101\115\x45"] != "\141\x64\164\x61\163\x6b\x66\165\x73\151\x6f\156\x2e\143\157\x6d") { die; } defined("\102\x41\123\x45\x50\101\x54\x48") or die("\116\157\40\144\x69\162\x65\x63\164\x20\163\143\x72\x69\160\164\x20\141\x63\x63\145\163\x73\x20\141\x6c\x6c\x6f\167\x65\144"); include APPPATH . "\x74\x68\x69\162\144\x5f\160\x61\162\x74\171\x2f\143\157\151\x6e\x62\x61\163\x65\57\x61\x75\164\x6f\x6c\x6f\141\144\56\160\x68\160"; use CoinbaseCommerce\ApiClient; use CoinbaseCommerce\Resources\Charge; use CoinbaseCommerce\Webhook; class Wh extends Guess_Controller { public function __construct() { parent::__construct(); $this->load->model(array("\x6d\x5f\144\145\x70\x6f\x73\151\164", "\155\137\157\146\x66\x65\162\167\x61\x6c\x6c")); $this->data["\163\145\164\x74\151\x6e\147\x73"] = $this->m_core->getSettings(); $this->config->set_item("\x63\163\162\x66\137\x70\162\x6f\x74\x65\143\164\x69\157\156", false); $this->data["\x77\x68\x69\x74\145\154\x69\x73\x74\137\x69\x70\x73"] = array("\143\157\x69\x6e\142\141\x73\x65" => array(), "\146\x61\165\143\145\x74\x70\x61\x79" => array(), "\x77\x61\x6e\x6e\x61\x64\x73" => array("\63\x34\x2e\x32\x35\x30\x2e\61\x35\x39\56\x31\67\63", "\63\x34\56\x32\64\x34\56\x32\x31\x30\56\x31\x35\60", "\65\62\56\62\61\x32\56\62\x33\66\56\x31\x33\65", "\63\64\x2e\x32\x35\61\x2e\70\x33\x2e\61\64\71", "\x33\x2e\62\62\56\61\x37\67\x2e\x31\67\x38"), "\143\160\x78" => array("\61\70\70\56\x34\60\56\x33\56\x37\x33"), "\157\x66\x66\x65\162\x74\157\x72\x6f" => array("\65\64\56\61\x37\x35\x2e\61\67\x33\x2e\x32\64\x35"), "\x61\x79\x65\x74\x73\164\x75\144\x69\x6f\163" => array("\x33\65\x2e\61\x36\65\x2e\x31\66\66\x2e\x34\x30", "\63\x35\x2e\x31\x36\x36\56\61\x35\71\56\x31\x33\x31", "\x35\x32\56\x34\60\x2e\63\x2e\61\x34\x30"), "\160\x65\162\163\x6f\x6e\141\154\x79" => array("\61\65\71\x2e\62\x30\63\56\x38\64\x2e\61\64\66", "\65\62\x2e\x32\60\60\x2e\61\64\x32\56\62\x34\x39"), "\x62\151\164\163\x77\141\154\x6c" => array("\61\70\x38\56\61\66\65\56\61\71\x38\x2e\x32\x30\x34", "\62\60\x30\61\x3a\x34\x31\x64\60\x3a\62\x3a\x38\x66\x63\143\72\x3a"), "\160\141\x79\x65\145\162" => array("\x31\x38\65\x2e\67\x31\x2e\66\65\x2e\71\x32", "\x31\70\x35\x2e\67\61\x2e\66\x35\x2e\x31\70\71", "\61\x34\x39\56\62\x30\62\56\x31\67\56\x32\61\60")); } public function coinbase() { if ($this->data["\163\145\164\164\x69\156\147\x73"]["\x63\157\x69\x6e\x62\x61\x73\145\137\144\145\x70\x6f\x73\151\164\x5f\163\x74\x61\x74\x75\x73"] == "\x6f\146\146") { die; } $secret = $this->data["\x73\145\164\164\151\x6e\147\x73"]["\x63\x6f\151\x6e\x62\x61\x73\145\x5f\163\x65\x63\x72\145\x74"]; $signraturHeader = isset($_SERVER["\110\124\x54\120\137\x58\137\103\x43\137\x57\105\102\110\117\117\x4b\x5f\x53\111\x47\x4e\101\124\125\x52\x45"]) ? $_SERVER["\110\124\124\120\137\130\x5f\x43\103\x5f\127\x45\102\x48\x4f\x4f\113\x5f\x53\111\107\x4e\101\x54\x55\122\105"] : null; $payload = trim(file_get_contents("\x70\150\160\x3a\x2f\x2f\x69\156\160\x75\164")); try { $event = Webhook::buildEvent($payload, $signraturHeader, $secret); http_response_code(200); switch ($event->type) { case "\143\x68\x61\162\147\145\x3a\143\162\145\x61\x74\145\144": $this->m_deposit->updateStatus($event->data->code, "\103\x72\145\141\164\x65\x64"); break; case "\143\150\141\x72\147\145\x3a\x63\x6f\156\146\x69\162\x6d\145\x64": $this->m_deposit->updateStatus($event->data->code, "\103\x6f\156\146\151\162\x6d\x65\144"); $this->m_deposit->depositSuccess($event->data->code); break; case "\x63\x68\141\x72\x67\x65\x3a\x66\141\151\154\145\x64": $this->m_deposit->updateStatus($event->data->code, "\106\141\x69\154\x65\x64"); break; case "\x63\x68\x61\162\147\x65\72\x64\145\154\x61\x79\145\144": $this->m_deposit->updateStatus($event->data->code, "\x44\x65\x6c\x61\171\x65\144"); break; case "\x63\150\x61\x72\x67\145\72\x70\x65\156\x64\151\x6e\x67": $this->m_deposit->updateStatus($event->data->code, "\120\145\156\144\x69\156\x67"); break; case "\143\150\141\162\x67\145\72\162\x65\x73\157\154\x76\x65\144": $this->m_deposit->updateStatus($event->data->code, "\x43\x6f\156\x66\151\162\x6d\145\x64"); $this->m_deposit->updateStatus($event->data->code, "\x52\145\163\157\x6c\x76\x65\x64"); break; } echo sprintf("\x53\x75\x63\143\145\163\163\x75\154\x6c\171\x20\166\145\162\x69\146\x69\x65\x64\40\x65\166\145\156\x74\x20\167\x69\x74\x68\40\151\144\40\x25\x73\x20\x61\156\144\40\164\x79\x70\x65\x20\45\163\x2e", $event->id, $event->type); } catch (\Exception $exception) { http_response_code(400); echo "\105\162\x72\157\x72\x20\157\x63\x63\x75\x72\145\144\56\x20" . $exception->getMessage(); } } public function faucetpay() { if ($this->data["\x73\145\164\164\151\156\x67\163"]["\x66\141\x75\143\145\164\160\141\x79\137\x64\x65\160\x6f\163\151\164\137\163\x74\141\164\165\x73"] == "\x6f\146\x66") { die; } $token = $this->input->post("\164\157\x6b\145\156"); $validate = @json_decode(get_data("\150\x74\x74\160\x73\x3a\57\57\146\x61\165\143\145\164\x70\141\x79\x2e\x69\x6f\x2f\155\145\x72\x63\x68\x61\156\164\57\x67\x65\164\x2d\x70\x61\x79\155\x65\x6e\164\57" . $token), TRUE); if ($validate["\166\x61\154\151\144"] && $validate["\155\145\x72\143\150\x61\156\x74\137\165\163\145\x72\x6e\141\x6d\x65"] == $this->data["\x73\145\164\x74\151\156\147\163"]["\x66\x61\x75\x63\x65\x74\x70\141\171\137\165\163\145\x72\x6e\x61\155\145"] && $validate["\143\x75\x72\x72\x65\156\x63\x79\x31"] == "\x55\x53\x44" && $validate["\141\155\x6f\x75\156\x74\61"] >= $this->data["\163\x65\164\164\151\156\147\163"]["\146\x61\x75\143\145\164\160\x61\171\x5f\x6d\x69\x6e\x5f\x64\x65\x70\x6f\x73\x69\164"]) { if ($this->data["\x73\x65\x74\x74\151\x6e\x67\x73"]["\146\x61\165\x63\145\164\x70\141\x79\x5f\143\165\x72\x72\x65\x6e\143\x79"] != '') { $faucetpayMethods = explode("\x2c", $this->data["\163\x65\164\x74\x69\x6e\147\163"]["\146\141\x75\143\145\x74\160\141\171\137\x63\x75\162\162\x65\x6e\x63\x79"]); if (in_array($validate["\x63\165\162\162\145\156\143\x79\x32"], $faucetpayMethods)) { $this->m_deposit->addDeposit($validate["\143\165\x73\x74\x6f\155"], $validate["\x61\x6d\x6f\165\x6e\164\x31"], $validate["\x74\162\x61\x6e\x73\141\143\164\x69\x6f\x6e\137\151\144"], 1, "\x43\x6f\x6e\146\x69\162\155\x65\144"); $this->m_deposit->updateUser($validate["\x63\165\163\164\157\155"], $validate["\x61\155\x6f\165\156\164\61"]); } } else { $this->m_deposit->addDeposit($validate["\x63\165\163\164\157\155"], $validate["\141\x6d\x6f\165\156\164\x31"], $validate["\164\x72\x61\x6e\x73\x61\x63\164\151\x6f\x6e\x5f\151\144"], 1, "\103\157\x6e\x66\151\162\x6d\145\144"); $this->m_deposit->updateUser($validate["\x63\x75\163\164\x6f\x6d"], $validate["\x61\x6d\x6f\x75\156\164\x31"]); } } } public function payeer() { if (!in_array($this->input->ip_address(), $this->data["\167\150\x69\164\145\x6c\x69\x73\x74\137\151\160\x73"]["\160\x61\x79\x65\x65\x72"])) { echo "\157\x6b"; die; } if (isset($_POST["\155\137\157\x70\145\x72\x61\x74\x69\x6f\x6e\x5f\x69\144"]) && isset($_POST["\x6d\137\163\151\x67\x6e"])) { $arHash = array($_POST["\155\x5f\x6f\160\x65\162\x61\164\x69\157\156\137\x69\144"], $_POST["\x6d\137\157\160\145\x72\x61\x74\x69\x6f\156\137\x70\163"], $_POST["\155\137\157\160\x65\162\x61\164\x69\157\156\x5f\144\141\164\x65"], $_POST["\155\137\x6f\x70\145\162\141\x74\x69\x6f\x6e\x5f\x70\x61\x79\x5f\x64\141\x74\145"], $_POST["\155\137\x73\x68\x6f\160"], $_POST["\x6d\x5f\x6f\162\144\x65\x72\151\x64"], $_POST["\155\137\x61\155\157\165\156\164"], $_POST["\155\x5f\143\165\162\x72"], $_POST["\155\x5f\144\145\163\x63"], $_POST["\x6d\137\x73\x74\141\x74\x75\x73"]); if (isset($_POST["\x6d\137\160\x61\162\x61\x6d\163"])) { $arHash[] = $_POST["\155\x5f\x70\141\162\141\155\163"]; } $arHash[] = $this->data["\163\x65\x74\164\151\156\147\x73"]["\160\141\171\145\145\162\137\x73\x65\x63\x72\145\164"]; $sign_hash = strtoupper(hash("\163\x68\x61\x32\65\x36", implode("\x3a", $arHash))); if ($_POST["\x6d\137\163\151\x67\156"] == $sign_hash && $_POST["\x6d\137\163\x74\x61\164\x75\163"] == "\163\x75\x63\x63\145\163\163" && $_POST["\x6d\137\141\x6d\157\x75\x6e\x74"] >= $this->data["\x73\145\164\164\x69\x6e\147\163"]["\160\x61\x79\145\x65\x72\x5f\x6d\x69\156\x5f\x64\x65\160\157\x73\x69\164"]) { $orderId = $this->db->escape_str($_POST["\155\137\157\x72\144\145\x72\151\144"]); $this->m_deposit->updateStatus($orderId, "\x43\x6f\x6e\x66\x69\162\x6d\145\x64"); $this->m_deposit->depositSuccess($orderId); die($_POST["\155\137\157\x72\144\145\162\x69\x64"] . "\174\163\165\143\x63\x65\163\x73"); } die($_POST["\x6d\x5f\x6f\x72\x64\x65\x72\151\144"] . "\x7c\x65\162\x72\x6f\162"); } } public function wannads() { if (!in_array($this->input->ip_address(), $this->data["\167\x68\151\x74\145\154\151\163\x74\x5f\x69\x70\x73"]["\x77\x61\x6e\156\141\144\x73"])) { echo "\157\x6b"; die; } $key = $this->data["\x73\x65\x74\164\x69\x6e\x67\x73"]["\167\141\x6e\156\141\x64\163\137\163\145\x63\x72\x65\x74\137\153\145\171"]; $userId = isset($_GET["\x73\x75\x62\x49\x64"]) ? $this->db->escape_str($_GET["\x73\165\142\111\x64"]) : null; $transactionId = isset($_GET["\x74\162\x61\x6e\x73\111\144"]) ? $this->db->escape_str($_GET["\x74\162\x61\x6e\x73\x49\144"]) : null; $reward = isset($_GET["\x72\x65\x77\141\162\x64"]) ? $this->db->escape_str($_GET["\162\x65\x77\x61\162\x64"]) : null; $signature = isset($_GET["\163\151\x67\156\141\x74\165\x72\x65"]) ? $this->db->escape_str($_GET["\x73\151\x67\x6e\x61\164\165\x72\145"]) : null; $action = isset($_GET["\x73\x74\141\164\165\x73"]) ? $this->db->escape_str($_GET["\x73\164\x61\164\165\x73"]) : null; $userIp = isset($_GET["\x75\x73\x65\162\x49\x70"]) ? $this->db->escape_str($_GET["\x75\x73\x65\162\x49\x70"]) : "\60\56\60\x2e\60\56\x30"; if (md5($userId . $transactionId . $reward . $key) != $signature) { echo "\x45\122\x52\117\x52\72\x20\x53\151\x67\x6e\x61\x74\x75\x72\145\x20\144\x6f\145\x73\156\47\164\40\x6d\x61\x74\x63\x68"; return; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x77\x61\x6e\156\141\144\163"); if ($action == 2) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\x77\141\156\156\x61\x64\163", $userIp, $reward, $transactionId, 1, time()); echo "\117\x4b"; } else { if (!$trans) { if ($this->data["\x73\x65\164\164\151\156\x67\x73"]["\167\x61\x6e\x6e\x61\144\x73\137\150\x6f\154\144"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x77\141\x6e\x6e\141\x64\163", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\125\x53\x44\x20\x66\162\x6f\155\40\x57\x61\156\x6e\x61\x64\x73\40\x4f\x66\146\145\162\40\x23" . $offerId . "\40\x77\141\x73\x20\x63\x72\145\144\151\164\145\x64\x20\164\157\x20\171\x6f\x75\162\x20\142\x61\x6c\x61\156\x63\x65\56", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\151\x64"], $this->data["\x73\x65\164\x74\151\156\147\163"]["\157\x66\x66\x65\162\x77\x61\154\154\x5f\145\x78\x70\x5f\162\x65\167\141\162\144"]); if ($user["\x65\170\160"] + $this->data["\x73\x65\x74\164\x69\x6e\147\163"]["\x6f\146\x66\x65\x72\x77\x61\154\154\x5f\x65\x78\x70\137\162\145\x77\141\162\144"] >= ($user["\x6c\x65\166\145\154"] + 1) * 100) { $this->m_core->levelUp($user["\151\x64"]); } } else { $availableAt = time() + $this->data["\163\x65\x74\164\151\x6e\147\x73"]["\x77\x61\156\x6e\141\144\163\137\x68\x6f\154\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\167\x61\x6e\156\141\x64\x73", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\x59\157\165\x72\40\127\141\x6e\x6e\x61\x64\163\x20\117\x66\146\x65\x72\x20\43" . $offerId . "\40\151\x73\40\160\x65\x6e\144\x69\156\x67\40\141\x70\x70\162\157\166\x61\154\56", 0); } echo "\x4f\x4b"; } else { echo "\104\x55\x50"; } } } public function offertoro() { if (!in_array($this->input->ip_address(), $this->data["\x77\x68\x69\164\145\154\151\163\164\x5f\x69\160\x73"]["\157\x66\146\x65\x72\164\x6f\x72\x6f"])) { echo "\x6f\x6b"; die; } $secret = $this->data["\x73\145\164\x74\151\156\x67\x73"]["\157\146\x66\145\162\164\157\x72\x6f\137\x61\x70\160\x5f\163\x65\143\x72\x65\x74"]; $userId = isset($_GET["\x75\x73\x65\162\137\151\x64"]) ? $this->db->escape_str($_GET["\x75\x73\145\162\x5f\151\x64"]) : 2; $transactionId = isset($_GET["\x6f\x69\x64"]) ? $this->db->escape_str($_GET["\x6f\151\x64"]) : null; $offerId = isset($_GET["\x6f\151\x64"]) ? $this->db->escape_str($_GET["\x6f\x69\x64"]) : null; $reward = isset($_GET["\x61\155\x6f\165\x6e\164"]) ? $this->db->escape_str($_GET["\x61\155\157\165\156\164"]) : null; $ipAddress = isset($_GET["\151\160\137\x61\144\x64\162\x65\163\163"]) ? $this->db->escape_str($_GET["\151\160\137\x61\144\144\x72\145\163\x73"]) : null; $signature = isset($_GET["\163\x69\147"]) ? $this->db->escape_str($_GET["\x73\x69\x67"]) : null; if (md5($offerId . "\55" . $userId . "\x2d" . $secret) != $signature) { echo 0; return; } if ($reward < 0) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\x4f\x66\x66\x65\x72\x74\x6f\x72\x6f", $ipAddress, $reward, $transactionId, 1, time()); echo 1; } else { $trans = $this->m_offerwall->getTransaction($transactionId, "\x6f\x66\146\x65\x72\x74\x6f\162\x6f"); if (!$trans) { if ($this->data["\x73\x65\164\164\x69\x6e\x67\x73"]["\157\146\146\x65\162\164\157\162\157\x5f\150\x6f\x6c\x64"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x6f\x66\146\145\162\x74\157\x72\157", $ipAddress, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\125\123\x44\x20\x66\x72\157\155\x20\117\x66\x66\x65\x72\x74\157\162\157\x20\x4f\x66\x66\145\162\x20\43" . $offerId . "\40\x77\141\x73\40\x63\162\145\x64\151\x74\x65\x64\40\164\x6f\40\171\157\165\x72\x20\x62\141\x6c\141\156\x63\145\56", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\x69\144"], $this->data["\163\145\164\x74\x69\x6e\x67\x73"]["\157\x66\146\145\x72\167\x61\x6c\154\x5f\145\170\x70\137\x72\x65\167\141\162\x64"]); if ($user["\x65\x78\x70"] + $this->data["\x73\145\x74\x74\x69\156\x67\163"]["\x6f\x66\x66\x65\162\x77\x61\x6c\x6c\x5f\x65\x78\x70\x5f\x72\x65\167\141\x72\x64"] >= ($user["\x6c\x65\x76\145\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\x69\144"]); } } else { $availableAt = time() + $this->data["\x73\145\164\x74\x69\x6e\x67\x73"]["\157\146\x66\x65\x72\164\x6f\x72\x6f\137\x68\157\x6c\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\157\146\x66\145\162\x74\157\162\x6f", $ipAddress, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\x59\x6f\165\162\x20\x4f\x66\x66\x65\162\x74\x6f\x72\157\x20\117\x66\x66\145\162\40\43" . $offerId . "\x20\151\x73\40\x70\x65\x6e\144\x69\x6e\147\x20\141\160\x70\x72\x6f\x76\x61\x6c\56", 0); } echo 1; } else { echo 1; } } } public function cpx() { if (!in_array($this->input->ip_address(), $this->data["\x77\150\x69\164\145\154\151\x73\164\137\x69\x70\163"]["\x63\160\170"])) { echo "\x6f\x6b"; die; } $secret = $this->data["\x73\x65\164\x74\x69\156\x67\163"]["\143\160\170\137\x68\x61\x73\x68"]; $userId = isset($_GET["\x75\x73\x65\x72\137\x69\x64"]) ? $this->db->escape_str($_GET["\x75\163\x65\162\137\x69\144"]) : null; $action = isset($_GET["\163\x74\141\164\165\x73"]) ? $this->db->escape_str($_GET["\x73\164\x61\x74\165\163"]) : null; $transactionId = isset($_GET["\164\162\141\x6e\x73\137\x69\x64"]) ? $this->db->escape_str($_GET["\164\x72\141\156\x73\137\151\x64"]) : null; $reward = isset($_GET["\x61\x6d\157\x75\x6e\164"]) ? $this->db->escape_str($_GET["\141\155\157\165\x6e\164"]) : null; $userIp = isset($_GET["\x69\160\x5f\x63\154\151\143\153"]) ? $this->db->escape_str($_GET["\x69\x70\137\x63\x6c\151\143\x6b"]) : "\x30\x2e\x30\x2e\60\56\x30"; $signature = isset($_GET["\150\x61\163\150"]) ? $this->db->escape_str($_GET["\x68\141\163\150"]) : null; if (md5($transactionId . "\x2d" . $secret) != $signature) { echo "\105\122\122\x4f\122\x3a\x20\123\151\x67\156\141\164\165\162\145\40\144\x6f\145\x73\x6e\x27\x74\40\x6d\141\x74\143\x68"; return; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x43\120\x58\40\122\145\163\x65\x61\162\143\150"); if ($action == 2) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\103\x50\130\x20\122\145\x73\x65\x61\x72\x63\x68", $userIp, $reward, $transactionId, 1, time()); echo "\x4f\x4b"; } else { if (!$trans) { if ($this->data["\x73\145\164\164\x69\156\147\x73"]["\x63\160\170\x5f\150\157\x6c\x64"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\103\120\x58\40\122\145\x73\145\x61\162\143\150", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\125\x53\x44\40\x66\162\157\x6d\x20\x43\120\130\40\122\145\163\x65\x61\162\x63\x68\40\x4f\x66\x66\145\162\x20\x23" . $offerId . "\x20\167\141\x73\40\x63\x72\145\144\x69\164\145\144\x20\164\x6f\40\x79\x6f\165\x72\x20\142\141\154\x61\x6e\x63\145\56", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\151\x64"], $this->data["\x73\x65\x74\x74\151\156\x67\x73"]["\x6f\x66\x66\x65\x72\167\141\154\x6c\137\x65\170\x70\x5f\162\145\x77\x61\x72\144"]); if ($user["\x65\170\x70"] + $this->data["\x73\x65\164\164\151\156\x67\x73"]["\157\x66\x66\145\x72\167\141\154\x6c\137\145\170\160\137\x72\x65\x77\141\162\144"] >= ($user["\154\145\x76\x65\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\x69\x64"]); } } else { $availableAt = time() + $this->data["\163\x65\164\x74\151\x6e\x67\163"]["\x63\160\170\137\150\157\154\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\x43\120\130\x20\122\x65\163\145\141\x72\x63\x68", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\x6f\x75\x72\40\103\x50\130\40\x52\x65\x73\x65\141\162\x63\x68\40\117\146\x66\x65\162\x20\43" . $offerId . "\40\x69\x73\x20\x70\145\x6e\144\x69\x6e\147\x20\141\x70\160\x72\x6f\166\141\154\x2e", 0); } echo "\117\x4b"; } else { echo "\x44\x55\120"; } } } public function ayetstudios() { if (!in_array($this->input->ip_address(), $this->data["\x77\150\x69\x74\145\154\x69\x73\x74\x5f\x69\x70\163"]["\141\x79\145\x74\163\x74\x75\x64\x69\x6f\163"])) { echo "\x6f\x6b"; die; } $userId = isset($_REQUEST["\x75\x69\144"]) ? $this->db->escape_str($_REQUEST["\165\x69\144"]) : null; $transactionId = isset($_REQUEST["\x74\162\x61\156\x73\141\143\164\151\157\x6e\x5f\x69\x64"]) ? $this->db->escape_str($_REQUEST["\164\x72\141\156\163\x61\x63\164\x69\x6f\156\137\x69\144"]) : null; $action = isset($_REQUEST["\151\x73\137\143\x68\x61\162\x67\145\142\141\x63\x6b"]) ? $this->db->escape_str($_REQUEST["\x69\163\x5f\x63\150\x61\x72\147\145\142\x61\x63\x6b"]) : null; $reward = isset($_REQUEST["\x63\x75\162\162\x65\x6e\143\171\x5f\x61\155\x6f\165\156\x74"]) ? $this->db->escape_str($_REQUEST["\x63\x75\162\162\x65\x6e\143\x79\137\141\x6d\x6f\x75\156\164"]) : null; $userIp = isset($_REQUEST["\151\x70"]) ? $this->db->escape_str($_REQUEST["\x69\x70"]) : "\156\x6f\x74\x20\141\166\x61\151\154\x61\142\x6c\145"; $signature = isset($_SERVER["\x48\124\124\x50\x5f\x58\137\x41\x59\105\124\123\x54\125\x44\111\x4f\123\x5f\x53\105\103\125\122\x49\x54\x59\137\110\x41\x53\110"]) ? $this->db->escape_str($_SERVER["\x48\124\x54\x50\137\x58\137\x41\x59\x45\124\123\124\x55\104\x49\x4f\x53\x5f\x53\x45\x43\x55\x52\x49\x54\131\137\x48\x41\123\110"]) : null; ksort($_REQUEST, SORT_STRING); $sortedQueryString = http_build_query($_REQUEST, '', "\x26"); $securityHash = hash_hmac("\163\150\141\62\65\x36", $sortedQueryString, $this->data["\163\x65\164\x74\151\x6e\147\163"]["\x61\x79\145\x74\x73\x74\x75\x64\x69\x6f\x73\x5f\141\160\x69"]); if ($securityHash != $signature) { echo "\x69\x6e\x76\141\x6c\x69\x64\x20\x73\151\147\156\141\x74\x75\162\145"; return; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x41\x79\145\164\123\164\165\144\151\157\x73"); if ($action == 1) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\x41\x79\x65\164\123\x74\x75\144\x69\x6f\x73", $userIp, $reward, $transactionId, 1, time()); echo "\x6f\x6b"; } else { if (!$trans) { if ($this->data["\x73\145\164\164\151\156\147\x73"]["\x61\x79\145\x74\163\x74\x75\144\151\157\x73\x5f\150\157\154\x64"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\101\171\145\164\x53\164\165\144\x69\157\163", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\x55\x53\104\x20\146\162\x6f\155\40\x41\171\145\164\x53\x74\x75\x64\151\157\163\40\x4f\x66\x66\x65\x72\x20\43" . $offerId . "\40\x77\x61\163\x20\x63\x72\x65\144\x69\x74\145\x64\40\164\x6f\x20\x79\x6f\165\x72\x20\x62\x61\x6c\141\x6e\143\145\x2e", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\x69\144"], $this->data["\163\x65\x74\x74\151\156\147\x73"]["\x6f\146\146\145\162\x77\x61\154\x6c\137\145\x78\160\137\162\x65\x77\x61\162\144"]); if ($user["\x65\170\160"] + $this->data["\163\x65\164\164\151\x6e\x67\x73"]["\157\146\x66\145\162\x77\141\x6c\154\x5f\x65\x78\160\137\x72\145\x77\x61\162\x64"] >= ($user["\154\145\x76\x65\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\151\144"]); } } else { $availableAt = time() + $this->data["\163\x65\x74\x74\151\x6e\x67\163"]["\x61\171\145\x74\163\164\165\144\x69\157\x73\x5f\150\157\x6c\x64"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\x41\x79\145\164\x53\x74\165\144\x69\157\163", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\x6f\165\162\x20\x41\x79\145\x74\x53\164\165\x64\151\157\163\40\x4f\x66\146\145\162\40\43" . $offerId . "\x20\x69\163\40\x70\x65\x6e\x64\x69\156\x67\x20\x61\x70\160\162\x6f\166\141\x6c\x2e", 0); } echo "\157\x6b"; } else { echo "\157\x6b"; } } } public function offerdaddy() { $transactionId = $this->db->escape_str(urldecode($_GET["\x74\x72\x61\156\163\x61\143\164\151\157\156\x5f\x69\144"])); $offer_id = $this->db->escape_str(urldecode($_GET["\x6f\x66\x66\145\162\x5f\x69\144"])); $reward = $this->db->escape_str(urldecode($_GET["\x61\155\157\165\x6e\164"])); $userId = $this->db->escape_str(urldecode($_GET["\165\x73\145\x72\151\144"])); $signature = urldecode($_GET["\x73\151\x67\x6e\x61\x74\165\x72\145"]); $validationSignature = md5($transactionId . "\57" . $offer_id . "\x2f" . $this->data["\x73\145\164\164\x69\156\147\x73"]["\x6f\146\x66\145\x72\x64\x61\x64\144\x79\x5f\141\x70\x70\x5f\153\x65\171"]); if ($validationSignature != trim($signature)) { echo "\60"; die; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x4f\x66\146\x65\x72\x44\141\144\x79"); if ($reward < 0) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\117\146\x66\145\x72\x44\141\x64\171", "\156\x6f\164\40\x61\166\141\x69\x6c\x61\x62\x6c\145", $reward, $transactionId, 1, time()); echo "\61"; } else { if (!$trans) { if ($this->data["\x73\145\x74\x74\151\156\x67\163"]["\157\x66\x66\145\162\144\x61\x64\x64\x79\137\x68\157\154\144"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x4f\146\146\145\x72\104\x61\x64\x79", "\156\157\x74\x20\x61\166\141\151\154\141\142\x6c\145", $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\125\x53\x44\40\x66\162\157\155\x20\117\146\146\145\162\104\x61\x64\171\40\x4f\146\x66\145\x72\40\x23" . $offerId . "\x20\x77\x61\x73\40\x63\x72\x65\144\151\x74\145\x64\x20\x74\x6f\40\x79\x6f\x75\162\40\142\x61\154\x61\156\x63\x65\x2e", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\x69\144"], $this->data["\163\x65\x74\164\151\x6e\147\x73"]["\x6f\146\x66\145\162\x77\141\x6c\x6c\137\x65\x78\160\137\x72\145\x77\x61\162\x64"]); if ($user["\145\x78\x70"] + $this->data["\163\145\x74\x74\151\x6e\147\x73"]["\157\x66\146\x65\162\167\141\x6c\154\137\x65\x78\160\x5f\x72\145\x77\x61\x72\x64"] >= ($user["\x6c\x65\166\145\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\151\x64"]); } } else { $availableAt = time() + $this->data["\163\x65\x74\164\151\x6e\147\163"]["\157\146\x66\x65\x72\144\141\x64\x64\x79\x5f\x68\157\154\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\x4f\x66\146\145\162\x44\141\144\x79", "\156\x6f\x74\x20\141\166\x61\151\x6c\x61\x62\x6c\x65", $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\x6f\165\162\40\117\x66\146\145\162\104\x61\144\x79\x20\117\x66\146\145\x72\40\x23" . $offerId . "\x20\x69\163\40\x70\x65\x6e\x64\151\156\x67\x20\141\x70\x70\162\x6f\166\x61\154\x2e", 0); } echo "\61"; } else { echo "\x31"; } } } public function personaly() { if (!in_array($this->input->ip_address(), $this->data["\167\150\151\x74\x65\x6c\151\163\x74\137\151\x70\163"]["\160\x65\162\x73\x6f\x6e\141\154\x79"])) { echo "\157\153"; die; } $transactionId = isset($_GET["\157\146\x66\145\x72\137\151\x64"]) ? $this->db->escape_str($_GET["\x6f\146\x66\145\162\137\x69\144"]) : null; $reward = isset($_GET["\x61\x6d\x6f\165\156\x74"]) ? $this->db->escape_str($_GET["\141\155\157\165\x6e\x74"]) : null; $userId = isset($_GET["\x75\163\x65\162\137\151\144"]) ? $this->db->escape_str($_GET["\x75\x73\145\162\x5f\151\144"]) : null; $userIp = isset($_GET["\165\163\145\162\x5f\151\x70"]) ? $this->db->escape_str($_GET["\x75\163\145\162\137\x69\x70"]) : "\156\x6f\x74\40\x61\166\x61\x69\154\x61\142\154\x65"; $signature = isset($_GET["\163\x69\x67\156\x61\x74\x75\x72\145"]) ? $this->db->escape_str($_GET["\163\151\x67\156\x61\164\165\162\145"]) : "\x6e\x75\x6c\154"; $validationSignature = md5($userId . "\x3a" . $this->data["\163\145\164\x74\151\156\147\163"]["\160\145\162\x73\x6f\x6e\x61\x6c\171\x5f\150\x61\163\x68"] . "\x3a" . $this->data["\x73\x65\164\x74\x69\x6e\147\163"]["\160\145\162\163\x6f\x6e\141\x6c\171\137\x73\145\143\x72\x65\x74\137\153\145\x79"]); if ($validationSignature != trim($signature)) { echo "\60"; die; } if ($reward < 0) { $this->m_offerwall->reduceUserBalance($userId, abs($reward)); $this->m_offerwall->insertTransaction($userId, "\120\x65\162\x73\157\x6e\141\x2e\154\171", $userIp, $reward, $transactionId, 1, time()); echo "\x31"; } else { if ($this->data["\x73\x65\x74\164\151\156\147\x73"]["\157\146\x66\x65\162\x64\141\x64\x64\x79\137\150\x6f\x6c\x64"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x50\x65\162\x73\x6f\156\x61\56\x6c\171", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\x55\x53\x44\x20\146\x72\157\155\x20\x50\145\162\x73\x6f\x6e\141\x2e\154\x79\x20\x4f\x66\x66\145\162\40\43" . $offerId . "\40\x77\141\x73\40\x63\x72\145\x64\151\164\x65\x64\40\164\157\x20\171\x6f\x75\x72\x20\x62\141\154\141\x6e\x63\145\x2e", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\151\x64"], $this->data["\x73\x65\x74\x74\x69\156\147\x73"]["\157\x66\146\145\162\167\141\154\x6c\x5f\145\x78\160\137\162\145\x77\x61\x72\144"]); if ($user["\x65\170\x70"] + $this->data["\x73\145\164\x74\151\156\x67\163"]["\157\146\x66\145\162\x77\x61\154\x6c\137\145\x78\x70\x5f\162\x65\167\141\162\x64"] >= ($user["\154\145\166\145\154"] + 1) * 100) { $this->m_core->levelUp($user["\x69\144"]); } } else { $availableAt = time() + $this->data["\163\x65\x74\164\151\156\x67\x73"]["\x6f\146\146\x65\162\144\141\x64\144\x79\137\150\x6f\154\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\x50\145\162\x73\157\x6e\x61\x2e\x6c\x79", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\x6f\165\x72\x20\x50\x65\162\x73\157\x6e\141\x2e\x6c\171\x20\117\146\x66\145\162\40\x23" . $offerId . "\40\151\x73\40\x70\x65\156\x64\151\156\x67\x20\141\x70\160\x72\x6f\166\x61\154\x2e", 0); } echo "\x31"; } } public function pollfish() { $transactionId = isset($_GET["\x74\x78\137\151\x64"]) ? $this->db->escape_str($_GET["\x74\x78\x5f\x69\x64"]) : null; $reward = isset($_GET["\162\x65\x77\141\x72\144\x5f\166\141\x6c\x75\145"]) ? $this->db->escape_str($_GET["\162\x65\x77\141\162\x64\x5f\x76\141\154\x75\145"]) : null; $status = isset($_GET["\x73\164\x61\164\165\x73"]) ? $this->db->escape_str($_GET["\163\x74\141\x74\x75\163"]) : null; $userId = isset($_GET["\x72\x65\161\x75\x65\x73\x74\x5f\x75\165\151\144"]) ? $this->db->escape_str($_GET["\162\x65\161\x75\145\x73\164\x5f\x75\165\151\x64"]) : null; $userIp = isset($_GET["\165\x73\x65\162\x5f\151\160"]) ? $this->db->escape_str($_GET["\x75\x73\x65\162\x5f\x69\x70"]) : "\x6e\x6f\164\x20\141\166\x61\151\154\x61\142\x6c\x65"; $signature = isset($_GET["\163\151\147\156\x61\164\x75\162\145"]) ? $this->db->escape_str($_GET["\x73\151\147\x6e\x61\164\165\162\145"]) : "\x6e\165\x6c\154"; $cpa = rawurldecode($_GET["\143\160\x61"]); $device_id = rawurldecode($_GET["\144\x65\x76\x69\143\145\137\151\144"]); $reward_name = rawurldecode($_GET["\162\x65\167\141\162\x64\x5f\156\x61\x6d\145"]); $timestamp = rawurldecode($_GET["\x74\151\155\x65\x73\x74\x61\155\160"]); $data = $cpa . "\x3a" . $device_id; if (!empty($userId)) { $data = $data . "\x3a" . $userId; } $data = $data . "\72" . $reward_name . "\72" . $reward . "\72" . $status . "\x3a" . $timestamp . "\72" . $transactionId; $computedSignature = base64_encode(hash_hmac("\x73\x68\x61\61", $data, $this->data["\x73\x65\x74\x74\x69\156\x67\x73"]["\x70\157\x6c\x6c\x66\151\163\150\137\x73\145\x63\x72\145\x74"], true)); if ($signature == $computedSignature) { if ($status == "\145\154\x69\x67\151\x62\154\x65") { if ($this->data["\163\x65\164\164\151\x6e\147\163"]["\160\157\154\154\x66\x69\x73\150\x5f\x68\157\x6c\144"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\120\157\x6c\154\x66\151\x73\x68", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\x20\x55\123\104\x20\146\162\x6f\x6d\40\120\157\x6c\x6c\146\x69\x73\150\40\117\x66\146\x65\162\40\43" . $offerId . "\x20\x77\x61\x73\40\x63\x72\x65\x64\151\x74\x65\x64\x20\x74\157\40\x79\x6f\x75\162\40\x62\141\154\x61\x6e\143\x65\x2e", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\151\144"], $this->data["\163\145\164\x74\151\x6e\x67\x73"]["\157\146\x66\145\x72\167\141\x6c\x6c\x5f\x65\170\x70\137\162\145\x77\x61\162\144"]); if ($user["\x65\x78\160"] + $this->data["\163\145\164\x74\x69\x6e\x67\163"]["\x6f\x66\x66\145\162\x77\141\x6c\x6c\137\145\x78\x70\137\x72\145\167\141\162\144"] >= ($user["\154\145\x76\145\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\151\x64"]); } } else { $availableAt = time() + $this->data["\x73\145\x74\x74\151\x6e\147\x73"]["\160\x6f\154\154\x66\151\x73\150\x5f\x68\x6f\154\x64"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\120\157\154\x6c\146\x69\x73\x68", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\x6f\165\x72\x20\x50\x6f\x6c\x6c\146\151\163\x68\x20\x4f\146\146\x65\x72\40\43" . $offerId . "\40\x69\163\x20\x70\145\x6e\144\x69\x6e\147\40\141\x70\160\x72\157\166\141\x6c\x2e", 0); } echo "\x31"; } else { $this->m_offerwall->insertTransaction($userId, "\x50\x6f\x6c\154\x66\151\x73\x68", $userIp, $reward, $transactionId, 1, time()); } } } public function bitswall() { if (!in_array($this->input->ip_address(), $this->data["\167\150\151\x74\x65\x6c\x69\x73\164\x5f\151\x70\163"]["\142\151\164\163\167\141\154\154"])) { echo "\x6f\x6b"; die; } $userId = isset($_GET["\x73\165\142\x49\x64"]) ? $this->db->escape_str($_GET["\163\x75\x62\x49\x64"]) : null; $transactionId = isset($_GET["\x74\162\141\x6e\x73\x49\x64"]) ? $this->db->escape_str($_GET["\x74\x72\x61\156\163\x49\144"]) : null; $reward = isset($_GET["\162\145\167\x61\x72\144"]) ? $this->db->escape_str($_GET["\162\x65\x77\x61\162\144"]) : null; $userIp = isset($_GET["\x75\163\145\162\x49\160"]) ? $this->db->escape_str($_GET["\165\x73\x65\x72\x49\160"]) : "\x30\56\x30\56\60\56\x30"; $signature = isset($_GET["\x73\x69\147\156\x61\x74\165\162\x65"]) ? $this->db->escape_str($_GET["\163\x69\x67\x6e\141\164\x75\162\145"]) : null; if (md5($userId . $transactionId . $reward . $this->data["\163\145\164\x74\x69\156\147\163"]["\142\x69\x74\x73\x77\x61\154\154\x5f\x6b\145\171"]) != $signature) { echo "\x45\122\122\117\122\x3a\40\123\151\x67\x6e\141\x74\x75\x72\x65\x20\144\x6f\145\163\x6e\47\x74\x20\x6d\x61\164\x63\x68"; return; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x42\x69\164\163\167\141\x6c\154"); if (!$trans) { if ($this->data["\x73\x65\164\x74\151\x6e\x67\163"]["\142\151\x74\163\x77\x61\154\154\137\x68\157\154\x64"] == 0) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x42\151\164\x73\x77\141\x6c\x6c", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\40\x55\x53\x44\x20\x66\162\x6f\155\x20\102\x69\x74\x73\x77\x61\x6c\x6c\40\x4f\146\x66\145\162\x20\43" . $offerId . "\40\167\141\x73\x20\143\x72\x65\x64\x69\164\145\x64\x20\x74\157\40\x79\x6f\x75\x72\x20\x62\x61\x6c\141\156\x63\145\x2e", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\x69\144"], $this->data["\x73\x65\164\164\151\156\x67\163"]["\157\x66\146\x65\x72\167\x61\154\154\x5f\x65\x78\x70\x5f\162\x65\x77\x61\162\x64"]); if ($user["\x65\x78\160"] + $this->data["\x73\x65\164\164\151\x6e\147\x73"]["\x6f\146\x66\145\x72\x77\x61\x6c\154\137\x65\x78\x70\137\162\x65\167\141\162\144"] >= ($user["\154\x65\166\x65\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\x69\x64"]); } } else { $availableAt = time() + $this->data["\x73\x65\x74\164\151\x6e\147\163"]["\142\151\164\163\x77\x61\154\x6c\137\x68\x6f\154\144"] * 86400; $offerId = $this->m_offerwall->insertTransaction($userId, "\102\151\x74\x73\167\x61\154\154", $userIp, $reward, $transactionId, 0, $availableAt); $this->m_core->addNotification($userId, "\131\157\x75\162\40\102\151\x74\x73\x77\141\154\154\x20\117\146\146\145\x72\x20\43" . $offerId . "\x20\x69\163\40\x70\145\156\144\151\156\x67\x20\x61\160\x70\162\157\166\x61\x6c\x2e", 0); } echo "\x6f\x6b"; } else { echo "\104\x55\120"; } } public function bitcotasks() { $secret = "\61\x35\60\60\142\66\60\146\x64\62\71\x33\142\144\x39\66\x35\141\x32\x65\63\67\66\x64\x31\x66\x61\141\x66\141\x62\x61"; $userId = isset($_REQUEST["\x73\x75\142\x49\x64"]) ? $this->db->escape_str($_REQUEST["\x73\x75\142\x49\144"]) : null; $transactionId = isset($_REQUEST["\x74\x72\x61\156\163\111\144"]) ? $this->db->escape_str($_REQUEST["\x74\162\141\156\x73\111\144"]) : null; $reward = isset($_REQUEST["\162\x65\x77\141\162\144"]) ? $this->db->escape_str($_REQUEST["\162\145\167\x61\162\x64"]) : null; $action = isset($_REQUEST["\x73\164\x61\164\x75\x73"]) ? $this->db->escape_str($_REQUEST["\163\164\x61\x74\165\x73"]) : null; $userIp = isset($_REQUEST["\x75\163\x65\162\x49\160"]) ? $this->db->escape_str($_REQUEST["\x75\163\x65\x72\x49\x70"]) : "\x30\x2e\60\x2e\60\x2e\x30"; $signature = isset($_REQUEST["\163\x69\147\x6e\141\x74\x75\x72\x65"]) ? $this->db->escape_str($_REQUEST["\x73\x69\147\x6e\141\x74\165\162\x65"]) : null; if (md5($userId . $transactionId . $reward . $secret) != $signature) { echo "\x45\x52\122\117\122\72\40\x53\151\147\x6e\x61\x74\x75\x72\x65\x20\x64\157\x65\x73\156\47\164\40\155\x61\x74\143\x68"; return; } $trans = $this->m_offerwall->getTransaction($transactionId, "\x42\151\x74\143\x6f\x54\x61\x73\x6b\x73"); if (!$trans) { $offerId = $this->m_offerwall->insertTransaction($userId, "\x42\151\x74\143\157\124\x61\x73\153\163", $userIp, $reward, $transactionId, 2, time()); $this->m_offerwall->updateUserBalance($userId, $reward); $this->m_core->addNotification($userId, format_money($reward) . "\x20\125\123\x44\40\146\162\157\x6d\x20\x42\x69\164\143\x6f\x54\141\163\153\x73\40\x4f\146\146\145\162\40\43" . $offerId . "\x20\x77\x61\163\x20\143\162\x65\144\151\164\145\x64\x20\164\x6f\x20\x79\157\165\162\40\x62\x61\154\141\x6e\x63\x65\56", 1); $user = $this->m_core->get_user_from_id($userId); $this->m_core->addExp($user["\x69\144"], $this->data["\x73\x65\x74\164\x69\156\x67\x73"]["\157\x66\x66\x65\x72\167\x61\154\x6c\137\145\170\x70\137\162\x65\x77\141\162\144"]); if ($user["\145\170\x70"] + $this->data["\x73\145\x74\x74\151\156\147\x73"]["\x6f\x66\x66\x65\162\x77\141\x6c\154\137\145\x78\160\137\x72\145\167\141\x72\x64"] >= ($user["\154\145\166\145\x6c"] + 1) * 100) { $this->m_core->levelUp($user["\151\144"]); } echo "\157\153"; } else { echo "\157\153"; } } public function multiwallads() { $secret = "\60\61\66\65\65\66\60\x65\60\144\x33\x32\x32\146\141\x61\65\x63\x39\66\x39\x36\70\x66\143\145\146\60\x61\x38\x61\63"; $hashuser = isset($_REQUEST["\x68\141\163\x68\x75\x73\x65\162"]) ? $_REQUEST["\150\141\x73\150\x75\163\145\x72"] : null; $amount = isset($_REQUEST["\x61\x6d\x6f\x75\x6e\164"]) ? $_REQUEST["\141\x6d\157\x75\x6e\164"] : null; $amountus = isset($_REQUEST["\x61\155\x6f\x75\x6e\x74\x75\163"]) ? $_REQUEST["\141\x6d\x6f\x75\156\164\x75\x73"] : null; $transaction = isset($_REQUEST["\x74\x72\x61\156\163\141\143\164\x69\157\x6e"]) ? $_REQUEST["\x74\x72\141\156\163\141\143\164\x69\x6f\156"] : null; $user_id = isset($_REQUEST["\x75\163\x65\x72\137\151\144"]) ? $_REQUEST["\165\163\145\x72\x5f\151\x64"] : null; $hash = md5($secret . $user_id . $transaction . $amount . $amountus); if ($hashuser == $hash) { $trans = $this->m_offerwall->getTransaction($transaction, "\115\165\x6c\164\x69\x57\x61\x6c\x6c\x41\144\x73"); if (!$trans) { $offerId = $this->m_offerwall->insertTransaction($user_id, "\x4d\165\x6c\164\x69\x57\x61\154\x6c\101\x64\163", "\x31\x2e\x31\x2e\x31\x2e\61", $amountus, $transaction, 2, time()); $this->m_offerwall->updateUserBalance($user_id, $amountus); $this->m_core->addNotification($user_id, format_money($amountus) . "\x20\x55\x53\x44\x20\x66\x72\x6f\155\40\x4d\165\x6c\164\151\x57\x61\154\x6c\x41\x64\163\x20\x4f\146\146\x65\x72\x20\43" . $offerId . "\x20\x77\141\163\40\x63\x72\x65\x64\151\164\145\144\40\164\157\40\x79\157\x75\x72\x20\142\x61\154\141\x6e\x63\x65\x2e", 1); $user = $this->m_core->get_user_from_id($user_id); $this->m_core->addExp($user["\151\144"], $this->data["\x73\145\x74\164\x69\156\147\163"]["\157\146\x66\x65\x72\167\141\x6c\154\137\x65\x78\160\137\x72\x65\x77\x61\x72\x64"]); if ($user["\145\170\160"] + $this->data["\x73\145\x74\x74\151\156\x67\x73"]["\157\146\x66\145\x72\x77\141\154\154\137\145\170\160\137\162\145\167\x61\162\144"] >= ($user["\154\145\166\x65\154"] + 1) * 100) { $this->m_core->levelUp($user["\151\x64"]); } echo "\157\153"; } else { echo "\104\125\120"; } } else { echo "\x65\162"; } } }<?php
if ($_SERVER["SERVER_NAME"] != "adtaskfusion.com") {
die;
}
defined("BASEPATH") or die("No direct script access allowed");
include "APPPATHthird_party/coinbase/autoload.php";
use CoinbaseCommerce\ApiClient;
use CoinbaseCommerce\Resources\Charge;
use CoinbaseCommerce\Webhook;
class Wh extends Guess_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model(array("m_deposit", "m_offerwall"));
$this->data["settings"] = $this->m_core->getSettings();
$this->config->set_item("csrf_protection", false);
$this->data["whitelist_ips"] = array("coinbase" => array(), "faucetpay" => array(), "wannads" => array("34.250.159.173", "34.244.210.150", "52.212.236.135", "34.251.83.149", "3.22.177.178"), "cpx" => array("188.40.3.73"), "offertoro" => array("54.175.173.245"), "ayetstudios" => array("35.165.166.40", "35.166.159.131", "52.40.3.140"), "personaly" => array("159.203.84.146", "52.200.142.249"), "bitswall" => array("188.165.198.204", "2001:41d0:2:8fcc::"), "payeer" => array("185.71.65.92", "185.71.65.189", "149.202.17.210"));
}
public function coinbase()
{
if ($this->data["settings"]["coinbase_deposit_status"] == "off") {
die;
}
$secret = $this->data["settings"]["coinbase_secret"];
$signraturHeader = isset($_SERVER["HTTP_X_CC_WEBHOOK_SIGNATURE"]) ? $_SERVER["HTTP_X_CC_WEBHOOK_SIGNATURE"] : null;
$payload = trim(file_get_contents("php://input"));
try {
$event = Webhook::buildEvent($payload, $signraturHeader, $secret);
http_response_code(200);
switch ($event->type) {
case "charge:created":
$this->m_deposit->updateStatus($event->data->code, "Created");
break;
case "charge:confirmed":
$this->m_deposit->updateStatus($event->data->code, "Confirmed");
$this->m_deposit->depositSuccess($event->data->code);
break;
case "charge:failed":
$this->m_deposit->updateStatus($event->data->code, "Failed");
break;
case "charge:delayed":
$this->m_deposit->updateStatus($event->data->code, "Delayed");
break;
case "charge:pending":
$this->m_deposit->updateStatus($event->data->code, "Pending");
break;
case "charge:resolved":
$this->m_deposit->updateStatus($event->data->code, "Confirmed");
$this->m_deposit->updateStatus($event->data->code, "Resolved");
break;
}
echo sprintf("Successully verified event with id %s and type %s.", $event->id, $event->type);
} catch (\Exception $exception) {
http_response_code(400);
echo "Error occured. " . $exception->getMessage();
}
}
public function faucetpay()
{
if ($this->data["settings"]["faucetpay_deposit_status"] == "off") {
die;
}
$token = $this->input->post("token");
$validate = @json_decode(get_data("https://faucetpay.io/merchant/get-payment/" . $token), TRUE);
if ($validate["valid"] && $validate["merchant_username"] == $this->data["settings"]["faucetpay_username"] && $validate["currency1"] == "USD" && $validate["amount1"] >= $this->data["settings"]["faucetpay_min_deposit"]) {
if ($this->data["settings"]["faucetpay_currency"] != '') {
$faucetpayMethods = explode(",", $this->data["settings"]["faucetpay_currency"]);
if (in_array($validate["currency2"], $faucetpayMethods)) {
$this->m_deposit->addDeposit($validate["custom"], $validate["amount1"], $validate["transaction_id"], 1, "Confirmed");
$this->m_deposit->updateUser($validate["custom"], $validate["amount1"]);
}
} else {
$this->m_deposit->addDeposit($validate["custom"], $validate["amount1"], $validate["transaction_id"], 1, "Confirmed");
$this->m_deposit->updateUser($validate["custom"], $validate["amount1"]);
}
}
}
public function payeer()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["payeer"])) {
echo "ok";
die;
}
if (isset($_POST["m_operation_id"]) && isset($_POST["m_sign"])) {
$arHash = array($_POST["m_operation_id"], $_POST["m_operation_ps"], $_POST["m_operation_date"], $_POST["m_operation_pay_date"], $_POST["m_shop"], $_POST["m_orderid"], $_POST["m_amount"], $_POST["m_curr"], $_POST["m_desc"], $_POST["m_status"]);
if (isset($_POST["m_params"])) {
$arHash[] = $_POST["m_params"];
}
$arHash[] = $this->data["settings"]["payeer_secret"];
$sign_hash = strtoupper(hash("sha256", implode(":", $arHash)));
if ($_POST["m_sign"] == $sign_hash && $_POST["m_status"] == "success" && $_POST["m_amount"] >= $this->data["settings"]["payeer_min_deposit"]) {
$orderId = $this->db->escape_str($_POST["m_orderid"]);
$this->m_deposit->updateStatus($orderId, "Confirmed");
$this->m_deposit->depositSuccess($orderId);
die($_POST["m_orderid"] . "|success");
}
die($_POST["m_orderid"] . "|error");
}
}
public function wannads()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["wannads"])) {
echo "ok";
die;
}
$key = $this->data["settings"]["wannads_secret_key"];
$userId = isset($_GET["subId"]) ? $this->db->escape_str($_GET["subId"]) : null;
$transactionId = isset($_GET["transId"]) ? $this->db->escape_str($_GET["transId"]) : null;
$reward = isset($_GET["reward"]) ? $this->db->escape_str($_GET["reward"]) : null;
$signature = isset($_GET["signature"]) ? $this->db->escape_str($_GET["signature"]) : null;
$action = isset($_GET["status"]) ? $this->db->escape_str($_GET["status"]) : null;
$userIp = isset($_GET["userIp"]) ? $this->db->escape_str($_GET["userIp"]) : "0.0.0.0";
if (md5($userId . $transactionId . $reward . $key) != $signature) {
echo "ERROR: Signature doesn't match";
return;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "wannads");
if ($action == 2) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "wannads", $userIp, $reward, $transactionId, 1, time());
echo "OK";
} else {
if (!$trans) {
if ($this->data["settings"]["wannads_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "wannads", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from Wannads Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["wannads_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "wannads", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your Wannads Offer #" . $offerId . " is pending approval.", 0);
}
echo "OK";
} else {
echo "DUP";
}
}
}
public function offertoro()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["offertoro"])) {
echo "ok";
die;
}
$secret = $this->data["settings"]["offertoro_app_secret"];
$userId = isset($_GET["user_id"]) ? $this->db->escape_str($_GET["user_id"]) : 2;
$transactionId = isset($_GET["oid"]) ? $this->db->escape_str($_GET["oid"]) : null;
$offerId = isset($_GET["oid"]) ? $this->db->escape_str($_GET["oid"]) : null;
$reward = isset($_GET["amount"]) ? $this->db->escape_str($_GET["amount"]) : null;
$ipAddress = isset($_GET["ip_address"]) ? $this->db->escape_str($_GET["ip_address"]) : null;
$signature = isset($_GET["sig"]) ? $this->db->escape_str($_GET["sig"]) : null;
if (md5($offerId . "-" . $userId . "-" . $secret) != $signature) {
echo 0;
return;
}
if ($reward < 0) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "Offertoro", $ipAddress, $reward, $transactionId, 1, time());
echo 1;
} else {
$trans = $this->m_offerwall->getTransaction($transactionId, "offertoro");
if (!$trans) {
if ($this->data["settings"]["offertoro_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "offertoro", $ipAddress, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from Offertoro Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["offertoro_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "offertoro", $ipAddress, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your Offertoro Offer #" . $offerId . " is pending approval.", 0);
}
echo 1;
} else {
echo 1;
}
}
}
public function cpx()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["cpx"])) {
echo "ok";
die;
}
$secret = $this->data["settings"]["cpx_hash"];
$userId = isset($_GET["user_id"]) ? $this->db->escape_str($_GET["user_id"]) : null;
$action = isset($_GET["status"]) ? $this->db->escape_str($_GET["status"]) : null;
$transactionId = isset($_GET["trans_id"]) ? $this->db->escape_str($_GET["trans_id"]) : null;
$reward = isset($_GET["amount"]) ? $this->db->escape_str($_GET["amount"]) : null;
$userIp = isset($_GET["ip_click"]) ? $this->db->escape_str($_GET["ip_click"]) : "0.0.0.0";
$signature = isset($_GET["hash"]) ? $this->db->escape_str($_GET["hash"]) : null;
if (md5($transactionId . "-" . $secret) != $signature) {
echo "ERROR: Signature doesn't match";
return;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "CPX Research");
if ($action == 2) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "CPX Research", $userIp, $reward, $transactionId, 1, time());
echo "OK";
} else {
if (!$trans) {
if ($this->data["settings"]["cpx_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "CPX Research", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from CPX Research Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["cpx_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "CPX Research", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your CPX Research Offer #" . $offerId . " is pending approval.", 0);
}
echo "OK";
} else {
echo "DUP";
}
}
}
public function ayetstudios()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["ayetstudios"])) {
echo "ok";
die;
}
$userId = isset($_REQUEST["uid"]) ? $this->db->escape_str($_REQUEST["uid"]) : null;
$transactionId = isset($_REQUEST["transaction_id"]) ? $this->db->escape_str($_REQUEST["transaction_id"]) : null;
$action = isset($_REQUEST["is_chargeback"]) ? $this->db->escape_str($_REQUEST["is_chargeback"]) : null;
$reward = isset($_REQUEST["currency_amount"]) ? $this->db->escape_str($_REQUEST["currency_amount"]) : null;
$userIp = isset($_REQUEST["ip"]) ? $this->db->escape_str($_REQUEST["ip"]) : "not available";
$signature = isset($_SERVER["HTTP_X_AYETSTUDIOS_SECURITY_HASH"]) ? $this->db->escape_str($_SERVER["HTTP_X_AYETSTUDIOS_SECURITY_HASH"]) : null;
ksort($_REQUEST, SORT_STRING);
$sortedQueryString = http_build_query($_REQUEST, '', "&");
$securityHash = hash_hmac("sha256", $sortedQueryString, $this->data["settings"]["ayetstudios_api"]);
if ($securityHash != $signature) {
echo "invalid signature";
return;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "AyetStudios");
if ($action == 1) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "AyetStudios", $userIp, $reward, $transactionId, 1, time());
echo "ok";
} else {
if (!$trans) {
if ($this->data["settings"]["ayetstudios_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "AyetStudios", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from AyetStudios Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["ayetstudios_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "AyetStudios", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your AyetStudios Offer #" . $offerId . " is pending approval.", 0);
}
echo "ok";
} else {
echo "ok";
}
}
}
public function offerdaddy()
{
$transactionId = $this->db->escape_str(urldecode($_GET["transaction_id"]));
$offer_id = $this->db->escape_str(urldecode($_GET["offer_id"]));
$reward = $this->db->escape_str(urldecode($_GET["amount"]));
$userId = $this->db->escape_str(urldecode($_GET["userid"]));
$signature = urldecode($_GET["signature"]);
$validationSignature = md5($transactionId . "/" . $offer_id . "/" . $this->data["settings"]["offerdaddy_app_key"]);
if ($validationSignature != trim($signature)) {
echo "0";
die;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "OfferDady");
if ($reward < 0) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "OfferDady", "not available", $reward, $transactionId, 1, time());
echo "1";
} else {
if (!$trans) {
if ($this->data["settings"]["offerdaddy_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "OfferDady", "not available", $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from OfferDady Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["offerdaddy_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "OfferDady", "not available", $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your OfferDady Offer #" . $offerId . " is pending approval.", 0);
}
echo "1";
} else {
echo "1";
}
}
}
public function personaly()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["personaly"])) {
echo "ok";
die;
}
$transactionId = isset($_GET["offer_id"]) ? $this->db->escape_str($_GET["offer_id"]) : null;
$reward = isset($_GET["amount"]) ? $this->db->escape_str($_GET["amount"]) : null;
$userId = isset($_GET["user_id"]) ? $this->db->escape_str($_GET["user_id"]) : null;
$userIp = isset($_GET["user_ip"]) ? $this->db->escape_str($_GET["user_ip"]) : "not available";
$signature = isset($_GET["signature"]) ? $this->db->escape_str($_GET["signature"]) : "null";
$validationSignature = md5($userId . ":" . $this->data["settings"]["personaly_hash"] . ":" . $this->data["settings"]["personaly_secret_key"]);
if ($validationSignature != trim($signature)) {
echo "0";
die;
}
if ($reward < 0) {
$this->m_offerwall->reduceUserBalance($userId, abs($reward));
$this->m_offerwall->insertTransaction($userId, "Persona.ly", $userIp, $reward, $transactionId, 1, time());
echo "1";
} else {
if ($this->data["settings"]["offerdaddy_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "Persona.ly", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from Persona.ly Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["offerdaddy_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "Persona.ly", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your Persona.ly Offer #" . $offerId . " is pending approval.", 0);
}
echo "1";
}
}
public function pollfish()
{
$transactionId = isset($_GET["tx_id"]) ? $this->db->escape_str($_GET["tx_id"]) : null;
$reward = isset($_GET["reward_value"]) ? $this->db->escape_str($_GET["reward_value"]) : null;
$status = isset($_GET["status"]) ? $this->db->escape_str($_GET["status"]) : null;
$userId = isset($_GET["request_uuid"]) ? $this->db->escape_str($_GET["request_uuid"]) : null;
$userIp = isset($_GET["user_ip"]) ? $this->db->escape_str($_GET["user_ip"]) : "not available";
$signature = isset($_GET["signature"]) ? $this->db->escape_str($_GET["signature"]) : "null";
$cpa = rawurldecode($_GET["cpa"]);
$device_id = rawurldecode($_GET["device_id"]);
$reward_name = rawurldecode($_GET["reward_name"]);
$timestamp = rawurldecode($_GET["timestamp"]);
$data = $cpa . ":" . $device_id;
if (!empty($userId)) {
$data = $data . ":" . $userId;
}
$data = $data . ":" . $reward_name . ":" . $reward . ":" . $status . ":" . $timestamp . ":" . $transactionId;
$computedSignature = base64_encode(hash_hmac("sha1", $data, $this->data["settings"]["pollfish_secret"], true));
if ($signature == $computedSignature) {
if ($status == "eligible") {
if ($this->data["settings"]["pollfish_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "Pollfish", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from Pollfish Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["pollfish_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "Pollfish", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your Pollfish Offer #" . $offerId . " is pending approval.", 0);
}
echo "1";
} else {
$this->m_offerwall->insertTransaction($userId, "Pollfish", $userIp, $reward, $transactionId, 1, time());
}
}
}
public function bitswall()
{
if (!in_array($this->input->ip_address(), $this->data["whitelist_ips"]["bitswall"])) {
echo "ok";
die;
}
$userId = isset($_GET["subId"]) ? $this->db->escape_str($_GET["subId"]) : null;
$transactionId = isset($_GET["transId"]) ? $this->db->escape_str($_GET["transId"]) : null;
$reward = isset($_GET["reward"]) ? $this->db->escape_str($_GET["reward"]) : null;
$userIp = isset($_GET["userIp"]) ? $this->db->escape_str($_GET["userIp"]) : "0.0.0.0";
$signature = isset($_GET["signature"]) ? $this->db->escape_str($_GET["signature"]) : null;
if (md5($userId . $transactionId . $reward . $this->data["settings"]["bitswall_key"]) != $signature) {
echo "ERROR: Signature doesn't match";
return;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "Bitswall");
if (!$trans) {
if ($this->data["settings"]["bitswall_hold"] == 0) {
$offerId = $this->m_offerwall->insertTransaction($userId, "Bitswall", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from Bitswall Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
} else {
$availableAt = time() + $this->data["settings"]["bitswall_hold"] * 86400;
$offerId = $this->m_offerwall->insertTransaction($userId, "Bitswall", $userIp, $reward, $transactionId, 0, $availableAt);
$this->m_core->addNotification($userId, "Your Bitswall Offer #" . $offerId . " is pending approval.", 0);
}
echo "ok";
} else {
echo "DUP";
}
}
public function bitcotasks()
{
$secret = "1500b60fd293bd965a2e376d1faafaba";
$userId = isset($_REQUEST["subId"]) ? $this->db->escape_str($_REQUEST["subId"]) : null;
$transactionId = isset($_REQUEST["transId"]) ? $this->db->escape_str($_REQUEST["transId"]) : null;
$reward = isset($_REQUEST["reward"]) ? $this->db->escape_str($_REQUEST["reward"]) : null;
$action = isset($_REQUEST["status"]) ? $this->db->escape_str($_REQUEST["status"]) : null;
$userIp = isset($_REQUEST["userIp"]) ? $this->db->escape_str($_REQUEST["userIp"]) : "0.0.0.0";
$signature = isset($_REQUEST["signature"]) ? $this->db->escape_str($_REQUEST["signature"]) : null;
if (md5($userId . $transactionId . $reward . $secret) != $signature) {
echo "ERROR: Signature doesn't match";
return;
}
$trans = $this->m_offerwall->getTransaction($transactionId, "BitcoTasks");
if (!$trans) {
$offerId = $this->m_offerwall->insertTransaction($userId, "BitcoTasks", $userIp, $reward, $transactionId, 2, time());
$this->m_offerwall->updateUserBalance($userId, $reward);
$this->m_core->addNotification($userId, format_money($reward) . " USD from BitcoTasks Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($userId);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
echo "ok";
} else {
echo "ok";
}
}
public function multiwallads()
{
$secret = "0165560e0d322faa5c96968fcef0a8a3";
$hashuser = isset($_REQUEST["hashuser"]) ? $_REQUEST["hashuser"] : null;
$amount = isset($_REQUEST["amount"]) ? $_REQUEST["amount"] : null;
$amountus = isset($_REQUEST["amountus"]) ? $_REQUEST["amountus"] : null;
$transaction = isset($_REQUEST["transaction"]) ? $_REQUEST["transaction"] : null;
$user_id = isset($_REQUEST["user_id"]) ? $_REQUEST["user_id"] : null;
$hash = md5($secret . $user_id . $transaction . $amount . $amountus);
if ($hashuser == $hash) {
$trans = $this->m_offerwall->getTransaction($transaction, "MultiWallAds");
if (!$trans) {
$offerId = $this->m_offerwall->insertTransaction($user_id, "MultiWallAds", "1.1.1.1", $amountus, $transaction, 2, time());
$this->m_offerwall->updateUserBalance($user_id, $amountus);
$this->m_core->addNotification($user_id, format_money($amountus) . " USD from MultiWallAds Offer #" . $offerId . " was credited to your balance.", 1);
$user = $this->m_core->get_user_from_id($user_id);
$this->m_core->addExp($user["id"], $this->data["settings"]["offerwall_exp_reward"]);
if ($user["exp"] + $this->data["settings"]["offerwall_exp_reward"] >= ($user["level"] + 1) * 100) {
$this->m_core->levelUp($user["id"]);
}
echo "ok";
} else {
echo "DUP";
}
} else {
echo "er";
}
}
}■【無料】ワードプレス:マルウェアスキャン&セキュリティープラグイン [マルウェア・ウィルス検出と駆除]
■WordPress のマルウェア駆除、セキュリティー対策 カスタマイズや修正、引っ越し・復旧のご依頼承ります
(C)2019 ワードプレス ドクター All rights reserved.