Script For Guruku
unknown
php
4 years ago
1.6 kB
4
Indexable
<!-- Biar Keren --> <style type="text/css"> html{ background-color: black; color: green; } </style> <!-- End Biar Keren --> <?php function post_curl($end_point, $post) { $_post = array(); if (is_array($post)) { foreach ($post as $name => $value) { $_post[] = $name.'='.urlencode($value); } } $ch = curl_init($end_point); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); if (is_array($post)) { curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post)); } curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'); $result = curl_exec($ch); if (curl_errno($ch) != 0 && empty($result)) { $result = false; } curl_close($ch); return $result; } function exec($x, $api_key, $data, $service_id, $quantity){ $jumlah = rand(900, 1000); $post_api = array( 'key' => $api_key, // api key Anda 'action' => 'order', 'service' => $service_id, // id layanan 'target' => $data, 'quantity' => $quantity ); $curl = post_curl("https://indorestore.com/api/order", $post_api); $result = json_decode($curl, true); return "#$x Result Server : $curl"; } $x = 1; $max = 999; // Maximal Looping $api_key = ""; // Api Key $data = ""; // Target $service_id = ""; // Id Layanan $quantity = ""; // Jumlah while($x <= $max) { $result = exec($x, $api_key, $data, $service_id, $quantity); echo "<pre><a style='color: #green;'>$result </a></pre>"; flush(); $x++; }
Editor is loading...