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_v2.php
<?php
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;
	}
}
if(isset($_POST['idVideo']))
{
	$id_Video = $_POST['idVideo'];
	$api = new Api();
	$services = $api->services(); # return all services
	$balance = $api->balance(); # return user balance
	$quantity = 1000;
	$id_service = 951;
	if(isset($_POST['chedo']) && $_POST['chedo'] == 'like')
	{
		$quantity = 10;
		$id_service = 958;
	}
	$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);
	echo '<script>alert("Thành công");</script>';
}
?>
<form method="POST">
	Id Video: <input type="text" name="idVideo"/><br/>
	Chế độ: <select name="chedo">
				<option value="view">View</option>
				<option value="like">Like</option>
			</select>
			<br/>
	<input type="submit" value="Gửi"/>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit