-
Notifications
You must be signed in to change notification settings - Fork 38
/
kubik.php
68 lines (64 loc) · 2.64 KB
/
kubik.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
date_default_timezone_set('Asia/Jakarta');
require_once("sdata-modules.php");
/**
* @Author: Eka Syahwan
* @Date: 2017-12-11 17:01:26
* @Last Modified by: Eka Syahwan
* @Last Modified time: 2018-08-17 15:13:34
*/
##############################################################################################################
$config['deviceCode'] = '3551230xxxxxxx';
$config['tk'] = 'ACGmNhoexxxxxx';
$config['token'] = '35a7oDTxxxxxxx';
$config['uuid'] = 'abdacad4xxxxxx4';
$config['sign'] = '12988158bxxxxxx';
$config['android_id'] = 'a28a65fbbxxxxxx';
##############################################################################################################
for ($x=0; $x <1; $x++) {
$url = array();
for ($cid=0; $cid <20; $cid++) {
for ($page=0; $page <10; $page++) {
$url[] = array(
'url' => 'http://api.beritaqu.net/content/getList?cid='.$cid.'&page='.$page,
'note' => 'optional',
);
}
$ambilBerita = $sdata->sdata($url); unset($url);unset($header);
foreach ($ambilBerita as $key => $value) {
$jdata = json_decode($value[respons],true);
foreach ($jdata[data][data] as $key => $dataArtikel) {
$artikel[] = $dataArtikel[id];
}
}
$artikel = array_unique($artikel);
echo "[+] Mengambil data artikel (CID : ".$cid.") ==> ".count(array_unique($artikel))."\r\n";
}
while (TRUE) {
$timeIn30Minutes = time() + 30*60;
$rnd = array_rand($artikel);
$id = $artikel[$rnd];
$url[] = array(
'url' => 'http://api.beritaqu.net/timing/read',
'note' => $rnd,
);
$header[] = array(
'post' => 'OSVersion=8.0.0&android_channel=google&android_id='.$config['android_id'].'&content_id='.$id.'&content_type=1&deviceCode='.$config['deviceCode'].'&device_brand=samsung&device_ip=114.124.239.'.rand(0,255).'&device_version=SM-A730F&dtu=001&lat=&lon=&network=wifi&pack_channel=google&time='.$timeIn30Minutes.'&tk='.$config['tk'].'&token='.$config['token'].'&uuid='.$config['uuid'].'&version=10047&versionName=1.4.7&sign='.$config['sign'],
);
$respons = $sdata->sdata($url , $header);
unset($url);unset($header);
foreach ($respons as $key => $value) {
$rjson = json_decode($value[respons],true);
echo "[+][".$id." (Live : ".count($artikel).")] Message : ".$rjson['message']." | Poin : ".$rjson['data']['amount']." | Read Second : ".$rjson['data']['current_read_second']."\r\n";
if($rjson[code] == '-20003' || $rjson['data']['current_read_second'] == '330' || $rjson['data']['amount'] == 0){
unset($artikel[$value[data][note]]);
}
}
if(count($artikel) == 0){
sleep(30);
break;
}
sleep(5);
}
$x++;
}