Auto Mining


SUBMITTED BY: inifreza

DATE: Oct. 29, 2016, 7:37 a.m.

FORMAT: Text only

SIZE: 9.0 kB

HITS: 659

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head runat="server">
  4. <title>Get Credits</title>
  5. <script type="text/javascript" language="JavaScript">
  6. var secs;
  7. var timerID = null;
  8. var timerRunning = false;
  9. var delay = 1000;
  10. function InitializeTimer(seconds) {
  11. // Set the length of the timer, in seconds
  12. secs = seconds;
  13. StopTheClock();
  14. StartTheTimer();
  15. }
  16. function StopTheClock() {
  17. if (timerRunning)
  18. clearTimeout(timerID);
  19. timerRunning = false;
  20. }
  21. function StartTheTimer() {
  22. if (secs == 0) {
  23. StopTheClock();
  24. // Here's where you put something useful that's
  25. // supposed to happen after the allotted time.
  26. // For example, you could display a message:
  27. window.location.href = window.location.href;
  28. }
  29. else {
  30. //self.status = 'Remaining: ' + secs;
  31. document.getElementById("lbltime").innerText = secs + " ";
  32. secs = secs - 1;
  33. timerRunning = true;
  34. timerID = self.setTimeout("StartTheTimer()", delay);
  35. }
  36. }
  37. </script>
  38. <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" />
  39. </head>
  40. <body onload="InitializeTimer(1)">
  41. <form id="form1" runat="server">
  42. <div>
  43. <font>Akan refresh otomatis setelah
  44. <asp:Label ID="lbltime" runat="server" Style="font-weight: bold;"></asp:Label></font>
  45. <font>seconds</font>
  46. </div>
  47. </form>
  48. </body>
  49. </html>
  50. <?php
  51. $kke = "d&L:>DEtw]7oS.a}F_gRyhoL8j]jC=!F"; // Private key, important!
  52. $session = "xxxx"; // Session
  53. $atok = "xxx"; // Access token
  54. $id = "xxxx"; // ID
  55. $mid = "xxxx"; // MID
  56. $f = addOrder(500, "ID", "USERNAMEIG", $session);
  57. echo "Anda berhasil membeli : ".$f['data']['desire_followers'] . " Followers"."</br>";
  58. echo "Sisa credits anda : " . $f['data']['credits']. " credits"."</br>";
  59. //kJANDEPgwj22gi7a5wftsmt1wiha89u95qxyf4sf:1428126125.c6384ef.b541f44a10d84c6fbd8d2e77d852a973:1428126125:7147990
  60. //$dat = signup("8ebc779e4b3d4e63addff81556582aa6");
  61. //echo $dat;
  62. //$y= update($session);
  63. //$f= validate($session);
  64. //var_dump($y); var_dump($f);
  65. $dat = getContents($id, $session);
  66. foreach($dat['data']['followings'] as $gg){
  67. $fid = $gg['fid'];
  68. $f = follow($fid, $session, $atok);
  69. echo $f['data']['credits'] . "\n";
  70. }
  71. function getContents($id, $session){
  72. global $mid;
  73. $content = '{"app_id":302,"associate_id":"'.$id.'","mid":"'.$mid.'","fetch_count":2,"sesn_id":"'.$session.'"}';
  74. $ps = 'https://socialstar.api-alliance.com/follows/getfollowers/fetch?content='.$content.'&signature='.getsig($content).'&sig_kv=1';
  75. return json_decode(@file_get_contents($ps), true);
  76. }
  77. function signup($token){
  78. global $mid;
  79. $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}}';
  80. $postdata = http_build_query(
  81. array(
  82. 'content' => $content,
  83. 'signature' => getsig($content),
  84. 'sig_kv' => 1
  85. )
  86. );
  87. $opts = array('http' =>
  88. array(
  89. 'method' => 'POST',
  90. 'header' => 'Content-type: application/x-www-form-urlencoded',
  91. 'content' => $postdata
  92. )
  93. );
  94. $context = stream_context_create($opts);
  95. $result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/account/signup', false, $context);
  96. $result = json_decode($result, true);
  97. $sessionid = $result['data']['main_account']['sesn_id'];
  98. $accesstoken = $result['data']['auth_info']['access_token'];
  99. $id = $result['data']['auth_info']['user']['id'];
  100. $mid = $result['data']['main_account']['mid'];
  101. return $sessionid . ":" . $accesstoken . ":" . $id . ":" . $mid;
  102. }
  103. function validate($sesskey){
  104. global $mid;
  105. $content = '{"assets":{"basic":[]},"app_id":302,"mid":"$mid","updt_tm":2147483647,"sesn_id":"'.$sesskey.'"}';
  106. $postdata = http_build_query(
  107. array(
  108. 'content' => $content,
  109. 'signature' => getsig($content),
  110. 'sig_kv' => 1
  111. )
  112. );
  113. $opts = array('http' =>
  114. array(
  115. 'method' => 'POST',
  116. 'header' => 'Content-type: application/x-www-form-urlencoded',
  117. 'content' => $postdata
  118. )
  119. );
  120. $context = stream_context_create($opts);
  121. $result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/account/validate', false, $context);
  122. $x = json_decode($result, true);
  123. return $x;
  124. }
  125. function update($seskey){
  126. global $mid;
  127. $content = '{"sesn_id":"'.$seskey.'","app_id":302,"mid":"'.$mid.'"}';
  128. $postdata = http_build_query(
  129. array(
  130. 'content' => $content,
  131. 'signature' => getsig($content),
  132. 'sig_kv' => 1
  133. )
  134. );
  135. $opts = array('http' =>
  136. array(
  137. 'method' => 'POST',
  138. 'header' => 'Content-type: application/x-www-form-urlencoded',
  139. 'content' => $postdata
  140. )
  141. );
  142. $context = stream_context_create($opts);
  143. $result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/associate/query', false, $context);
  144. $x = json_decode($result, true);
  145. return $x;
  146. }
  147. function orderchcek($id, $session){
  148. global $mid;
  149. $content = '{"sesn_id":"'.$session.'","app_id":302,"associate_id":"'.$id.'","mid":"'.$mid.'"}';
  150. $ps = 'https://socialstar.api-alliance.com/follows/getfollowers/task/status?content='.$content.'&signature='.getsig($content).'&sig_kv=1';
  151. return json_decode(@file_get_contents($ps), true);
  152. }
  153. function addOrder($total, $targetid, $targetusername, $session){
  154. global $id, $mid;
  155. $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.'"}';
  156. $postdata = http_build_query(
  157. array(
  158. 'content' => $content,
  159. 'signature' => getsig($content),
  160. 'sig_kv' => 1
  161. )
  162. );
  163. $opts = array('http' =>
  164. array(
  165. 'method' => 'POST',
  166. 'header' => 'Content-type: application/x-www-form-urlencoded',
  167. 'content' => $postdata
  168. )
  169. );
  170. $context = stream_context_create($opts);
  171. $result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/task/submit', false, $context);
  172. return json_decode($result, true);
  173. }
  174. function follow($fid, $session, $token){
  175. global $mid, $id;
  176. $content = '{"app_id":302,"associate_id":"'.$id.'","following_result":{"fid":"'.$fid.'","status":"success"},"mid":"'.$mid.'","sesn_id":"'.$session.'","access_token":"'.$token.'"}';
  177. $postdata = http_build_query(
  178. array(
  179. 'content' => $content,
  180. 'signature' => getsig($content),
  181. 'sig_kv' => 1
  182. )
  183. );
  184. $opts = array('http' =>
  185. array(
  186. 'method' => 'POST',
  187. 'header' => 'Content-type: application/x-www-form-urlencoded',
  188. 'content' => $postdata
  189. )
  190. );
  191. $context = stream_context_create($opts);
  192. $result = @file_get_contents('https://socialstar.api-alliance.com/follows/getfollowers/follow', false, $context);
  193. return json_decode($result, true);
  194. }
  195. function getsig($g){
  196. global $kke;
  197. return hash_hmac('sha256', $g, $kke);
  198. }
  199. function generateUUID($type)
  200. {
  201. $uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
  202. mt_rand(0, 0xffff), mt_rand(0, 0xffff),
  203. mt_rand(0, 0xffff),
  204. mt_rand(0, 0x0fff) | 0x4000,
  205. mt_rand(0, 0x3fff) | 0x8000,
  206. mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
  207. );
  208. return $type ? $uuid : str_replace('-', '', $uuid);
  209. }
  210. ?>

comments powered by Disqus