<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Get Credits</title>
<script type="text/javascript" language="JavaScript">
var secs;
var timerID = null;
var timerRunning = false;
var delay = 1000;
function InitializeTimer(seconds) {
// Set the length of the timer, in seconds
secs = seconds;
StopTheClock();
StartTheTimer();
}
function StopTheClock() {
if (timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function StartTheTimer() {
if (secs == 0) {
StopTheClock();
// Here's where you put something useful that's
// supposed to happen after the allotted time.
// For example, you could display a message:
window.location.href = window.location.href;
}
else {
//self.status = 'Remaining: ' + secs;
document.getElementById("lbltime").innerText = secs + " ";
secs = secs - 1;
timerRunning = true;
timerID = self.setTimeout("StartTheTimer()", delay);
}
}
</script>
<link rel="icon" type="image/jpg" href="https://scontent-sin6-1.xx.fbcdn.net/v/t1.0-9/14446094_1589214558040752_6013858931382098422_n.jpg?oh=578192ecd645d9ce13677445fbecaf4c&oe=586858EA" />
</head>
<body onload="InitializeTimer(1)">
<form id="form1" runat="server">
<div>
<font>Akan refresh otomatis setelah
<asp:Label ID="lbltime" runat="server" Style="font-weight: bold;"></asp:Label></font>
<font>seconds</font>
</div>
</form>
</body>
</html>
<?php
$kke = "d&L:>DEtw]7oS.a}F_gRyhoL8j]jC=!F"; // Private key, important!
$session = "xxxx"; // Session
$atok = "xxx"; // Access token
$id = "xxxx"; // ID
$mid = "xxxx"; // MID
$f = addOrder(500, "ID", "USERNAMEIG", $session);
echo "Anda berhasil membeli : ".$f['data']['desire_followers'] . " Followers"."</br>";
echo "Sisa credits anda : " . $f['data']['credits']. " credits"."</br>";
//kJANDEPgwj22gi7a5wftsmt1wiha89u95qxyf4sf:1428126125.c6384ef.b541f44a10d84c6fbd8d2e77d852a973:1428126125:7147990
//$dat = signup("8ebc779e4b3d4e63addff81556582aa6");
//echo $dat;
//$y= update($session);
//$f= validate($session);
//var_dump($y); var_dump($f);
$dat = getContents($id, $session);
foreach($dat['data']['followings'] as $gg){
$fid = $gg['fid'];
$f = follow($fid, $session, $atok);
echo $f['data']['credits'] . "\n";
}
function getContents($id, $session){
global $mid;
$content = '{"app_id":302,"associate_id":"'.$id.'","mid":"'.$mid.'","fetch_count":2,"sesn_id":"'.$session.'"}';
$ps = 'https://socialstar.api-alliance.com/follows/getfollowers/fetch?content='.$content.'&signature='.getsig($content).'&sig_kv=1';
return json_decode(@file_get_contents($ps), true);
}
function signup($token){
global $mid;
$content = '{"assets":{"basic":[]},"account_info":{"refrl":"google"},"tp_info":{"auth_code":"'.$token.'","acnt_typ":"instagram","client_verified":0,"auth_client_id":"c6384efb582f486980a4bc34debee3fa"},"app_id":302,"device_info":{"dvc_id":"'.generateUUID(true).'","enbl_ftur":"EnabledFeatures001Test","app_vrsn":"1.0.3","dvc_tkn":"","dvc_typ":"android","app_grp":"nuunnnnnnnnnnnnnnu","tst_usr":-1,"restrct_usr":false,"locl":"ID","dvc_os_vrsn":"4.4.2","dvc_tzone":25200}}';
$postdata = http_build_query(
array(
'content' => $content,
'signature' => getsig($content),
'sig_kv' => 1
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/account/signup', false, $context);
$result = json_decode($result, true);
$sessionid = $result['data']['main_account']['sesn_id'];
$accesstoken = $result['data']['auth_info']['access_token'];
$id = $result['data']['auth_info']['user']['id'];
$mid = $result['data']['main_account']['mid'];
return $sessionid . ":" . $accesstoken . ":" . $id . ":" . $mid;
}
function validate($sesskey){
global $mid;
$content = '{"assets":{"basic":[]},"app_id":302,"mid":"$mid","updt_tm":2147483647,"sesn_id":"'.$sesskey.'"}';
$postdata = http_build_query(
array(
'content' => $content,
'signature' => getsig($content),
'sig_kv' => 1
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/account/validate', false, $context);
$x = json_decode($result, true);
return $x;
}
function update($seskey){
global $mid;
$content = '{"sesn_id":"'.$seskey.'","app_id":302,"mid":"'.$mid.'"}';
$postdata = http_build_query(
array(
'content' => $content,
'signature' => getsig($content),
'sig_kv' => 1
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/associate/query', false, $context);
$x = json_decode($result, true);
return $x;
}
function orderchcek($id, $session){
global $mid;
$content = '{"sesn_id":"'.$session.'","app_id":302,"associate_id":"'.$id.'","mid":"'.$mid.'"}';
$ps = 'https://socialstar.api-alliance.com/follows/getfollowers/task/status?content='.$content.'&signature='.getsig($content).'&sig_kv=1';
return json_decode(@file_get_contents($ps), true);
}
function addOrder($total, $targetid, $targetusername, $session){
global $id, $mid;
$content = '{"credits":'.($total*2).',"quantity":'.$total.',"tobefollow":{"fid":"'.$targetid.'","portrait":"https:\/\/scontent.cdninstagram.com\/t51.2885-19\/11906329_960233084022564_1448528159_a.jpg","username":"'.$targetusername.'","private":0},"app_id":302,"associate_id":"'.$id.'","mid":"'.$mid.'","sesn_id":"'.$session.'"}';
$postdata = http_build_query(
array(
'content' => $content,
'signature' => getsig($content),
'sig_kv' => 1
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/task/submit', false, $context);
return json_decode($result, true);
}
function follow($fid, $session, $token){
global $mid, $id;
$content = '{"app_id":302,"associate_id":"'.$id.'","following_result":{"fid":"'.$fid.'","status":"success"},"mid":"'.$mid.'","sesn_id":"'.$session.'","access_token":"'.$token.'"}';
$postdata = http_build_query(
array(
'content' => $content,
'signature' => getsig($content),
'sig_kv' => 1
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/follow', false, $context);
return json_decode($result, true);
}
function getsig($g){
global $kke;
return hash_hmac('sha256', $g, $kke);
}
function generateUUID($type)
{
$uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
mt_rand(0, 0xffff), mt_rand(0, 0xffff),
mt_rand(0, 0xffff),
mt_rand(0, 0x0fff) | 0x4000,
mt_rand(0, 0x3fff) | 0x8000,
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
);
return $type ? $uuid : str_replace('-', '', $uuid);
}
?>