Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей.
Здесь обсуждаются безопасность, программирование, технологии и многое другое.
Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
 |
Php авторизация на fotostrana.ru |

13.12.2009, 23:46
|
|
Новичок
Регистрация: 10.09.2009
Сообщений: 3
Провел на форуме: 313111
Репутация:
0
|
|
Php авторизация на fotostrana.ru
Del Тему
Последний раз редактировалось mandebist; 17.12.2009 в 15:48..
|
|
|

14.12.2009, 00:06
|
|
Постоянный
Регистрация: 08.11.2008
Сообщений: 498
Провел на форуме: 2603363
Репутация:
278
|
|
Снифер в руки , кури пакеты
|
|
|

14.12.2009, 00:06
|
|
Познающий
Регистрация: 11.11.2008
Сообщений: 77
Провел на форуме: 1144288
Репутация:
99
|
|
Не знаю какие проблемы тут могут быть...
Вот пример авторизации при помощи curl:
PHP код:
function curl($url, $post)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_REFERER, "http://fotostrana.ru/");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$res_curl = curl_exec($ch);
curl_close($ch);
return $res_curl;
};
$email = "email";
$pass = "pass";
$url = "http://fotostrana.ru/user/login/";
$post = "submitted=1&user_email=".$email."&user_password=".$pass;
echo htmlspecialchars(curl($url, $post));
|
|
|

14.12.2009, 01:29
|
|
Новичок
Регистрация: 10.09.2009
Сообщений: 3
Провел на форуме: 313111
Репутация:
0
|
|
Player#1 Большое спасибо за помощь
|
|
|

16.12.2009, 04:09
|
|
Новичок
Регистрация: 10.09.2009
Сообщений: 3
Провел на форуме: 313111
Репутация:
0
|
|
PHP код:
<?
set_time_limit(0);
error_reporting(E_ERROR | E_PARSE);
function curl($url,$post)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_REFERER, "http://fotostrana.ru/");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$res_curl = curl_exec($ch);
curl_close($ch);
return $res_curl;
};
$email = "444";
$pass = "444";
$url = "http://fotostrana.ru/user/login/";
$post = "submitted=1&user_email=".$email."&user_password=".$pass;
echo htmlspecialchars(curl($url, $post));
for($i=1;$i<99;$i) {
$qwe=$i++;
$url = "http://fotostrana.ru/tlogprofile/comment/add?tlogId=15540678&display=room&comment_text=test".$qwe."&ajax=true";
$res = connect($url,$post);
print $result;
flush();
print $qwe."\n";
flush();
sleep(1);
}
?>
Немогу разобратся что нетак помогите плиз ...
|
|
|
|
 |
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|