Файл: ftp/index.php
Строк: 31
<?php
error_reporting(0);
require_once '../api_core/apicms_system.php';
/*
FTP-сервер : 144.76.98.91
Логин : user12792
Пароль: DzLJuoZx
*/
include_once("cnfg.php");
$login=$user['isp_login'];
$pass=$user['isp_paswd'];
$v=100;
$arr=array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F",
"G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y",
"Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r",
"s","t","u","v","w","x","y","z");
$key=$arr[rand(0,61)].$arr[rand(0,61)].$arr[rand(0,61)].$arr[rand(0,61)].$arr[rand(0,61)].$arr[rand(0,61)].$arr[rand(0,61)];
$repl=array("^"=>""); $time=time(); $server=strtolower(trim(strtr($server,$repl)));
$login=trim(strtr($login,$repl)); $pass=trim(strtr($pass,$repl));
$v=trim($_GET['v']); if ($v==NULL) {$v=20;} elseif (($v<10)||($v>100)) {$v=20;}
$s=trim($_GET['s']); if ($s==1) {$sz=1;} else {$sz=0;}
$i=trim($_GET['i']); if ($i==1) {$ib=1;} else {$ib=0;}
$str=$key."^$server^$login^$pass^$v^$time^$sz^$ibrn"; $fl=@file("userkeys.dat");
if ($fl<>NULL) {
for ($i=0;$i<count($fl);$i++) {
list($p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8)=split('^',trim($fl[$i]));
if ($p1==$key) {
header("Location: $dftp/index.php?server=$server&login=$login&pass=$pass"); exit;
}
if (($time-$p6<2700)&&($p2<>$server)&&($p3<>$login)) {$str.=$fl[$i];}
else {
include_once("freedata.php"); freedata($p1);
}
}
}
$f=@fopen("userkeys.dat","w"); @fwrite($f,$str); @fclose($f);
$dir=""; if (($d<>NULL)&&($d<>"/")) {$dir="&d=".rawurlencode($d);}
$dir=str_replace(".htaccess",".|htaccess",$dir);
header("Location: $dftp/ftp.php?k=$key$dir"); exit;
?>