-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdorf.php
51 lines (41 loc) · 2.15 KB
/
dorf.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
<?php
session_start();
set_time_limit(7200);
$msisdn = $_SESSION['msisdn'];
$sessionId = $_SESSION['sessionId'];
$ch = curl_init();
//8111300
//$serviceid=13361;
for($serviceid = 1000; $serviceid<=9999; $serviceid++) {
$header =array('Host: my.xl.co.id',
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0',
'Accept: application/json, text/plain, */*',
'Accept-Language: en-US,en;q=0.5',
'Accept-Encoding: gzip, deflate, br',
'Referer: http://my.xl.co.id/pre/index1.html',
'Content-Type: application/json',
);
$payload= array( );
//$body= '{"Header":null,"Body":{"Header":{"ReqID":"20190628191636","IMEI":1695480090},"opPutOfferStatusRq":{"msisdn":"'.$msisdn.'","status":"VIEWED","offerId":"'.$serviceid.'"}},"sessionId":"'.$sessionId.'","platform":"04","serviceId":"","packageAmt":"","reloadType":"","reloadAmt":"","packageRegUnreg":"","appVersion":"3.8.2","sourceName":"Firefox","sourceVersion":"","msisdn_Type":"P","screenName":"home.campaignManagement.cmsOfferBuy","mbb_category":""}';
$body= '{"Header":null,"Body":{"Header":{"ReqID":"20190725054422","IMEI":3573566081},"opPutOfferStatusRq":{"msisdn":"'.$msisdn.'","status":"ACCEPTED","offerId":"'.$serviceid.'"}},"sessionId":"'.$sessionId.'","platform":"04","serviceId":"","packageAmt":"","reloadType":"","reloadAmt":"","packageRegUnreg":"","appVersion":"3.8.2","sourceName":"Firefox","sourceVersion":"","msisdn_Type":"P","screenName":"home.campaignManagement.cmsOfferBuy","mbb_category":""}';
$url='https://my.xl.co.id/pre/opPutOfferStatusRq';
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
ulang:
$result = curl_exec($ch);
if($result== '{"responseCode":"04","message":"Database Issue Please Contact Admin"}'){
goto ulang;
}
/*if($result != '{"responseCode":"04","message":"Service ID dont not match"}'){
echo "<br/>";
}*/
//echo $serviceid;
/*echo $body;
echo $result;
echo "<br/>";
*/
}
?>