jeromelaliag
Forum Guru
- Joined
- Sep 25, 2012
- Posts
- 1,974
- Solutions
- 4
- Reaction
- 7,149
- Points
- 1,197
No need ng GLA ang Quick View kaya madali lang gawan ng Checker.
Ang download ng source code ay nasa baba.
Eto ang mirror download link kung hindi madownload: You do not have permission to view the full content of this post. Log in or register now.
Sa web ganito ang gagawin.
Enter URL:
Sa terminal naman ganito ang gagawin.
Execute:
Kung hindi naman madownload sa 2 option. Eto ang source code:
Ang download ng source code ay nasa baba.
Eto ang mirror download link kung hindi madownload: You do not have permission to view the full content of this post. Log in or register now.
Sa web ganito ang gagawin.
Enter URL:
Code:
http://127.0.0.1/gigalife.php?number=09123456789
Sa terminal naman ganito ang gagawin.
Execute:
Code:
php gigalife.php 091222222222
Kung hindi naman madownload sa 2 option. Eto ang source code:
PHP:
<?php
# HIDE ERRORS
error_reporting(0);
set_time_limit(0);
# HEADER
header("Content-Type: text/plain");
if ($argv[1] | $_GET["number"]) {
$number = $argv[1] | $_GET["number"];
$number = ltrim($number, '0');
# EXTRACT STRINGS
function GetStr($string, $start, $end)
{
$str = explode($start, $string);
$str = explode($end, $str[1]);
return $str[0];
}
# QUICK VIEW GET TOKEN
$url = "https://app1.smart.com.ph/api/v2/get-terms-and-conditions-token?number=63$number&token=QV";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"X-Application-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHBfaWQiOiJpb3MiLCJpYXQiOjE1OTg1ODY1MjYsIm5iZiI6MTU5ODU4NjUyNiwiZXhwIjoxOTEzOTQ2NTI2fQ.xVM2s_Owt4zNWLOlllhPXcRQ4b23x6KQpqs_2NGu9zPlQ9hjOsSS6pr9Qams7jfsyMPXtik2MFvv8V_nT8oG5Q"
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$resp = curl_exec($curl);
curl_close($curl);
# EXTRACT TOKEN STRING
$token = getstr($resp, 'token":"', '"');
if (empty($token)) {
exit();
}
# QUICK VIEW
$url = "https://app1.smart.com.ph/api/v2/quick-view?number=63$number";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"X-Application-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHBfaWQiOiJpb3MiLCJpYXQiOjE1OTg1ODY1MjYsIm5iZiI6MTU5ODU4NjUyNiwiZXhwIjoxOTEzOTQ2NTI2fQ.xVM2s_Owt4zNWLOlllhPXcRQ4b23x6KQpqs_2NGu9zPlQ9hjOsSS6pr9Qams7jfsyMPXtik2MFvv8V_nT8oG5Q",
"Authorization: Bearer $token"
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$resp = curl_exec($curl);
curl_close($curl);
# echo "$resp";
# EXTRACT JSON STRING RESPONSE
$number = getstr($resp, '"accountMIN":"', '"');
$balance = getstr($resp, '{"load_balance":{"balance":"', '"');
$expiration = getstr($resp, '' . $balance . '","_expiration":"', '"');
$pbalance = getstr($resp, '"points":{"balance":"', '"');
$pexpiration = getstr($resp, '"_expiration":"' . $pbalance . ' Points Exp ', '"');
# RESPONSE
echo 'Number: ' . $number . '
Load Balance: ' . $balance . '
Load Expiration: ' . $expiration . '
Points Balance: ' . $pbalance . '
Points Expiration: ' . $pexpiration . '
';
}
?>
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Last edited: