Тема: curl +htts
Показать сообщение отдельно

  #3  
Старый 26.09.2009, 22:21
Pashkela
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
С нами: 9649706

Репутация: 3338


По умолчанию

PHP код:
<?php 
set_time_limit
(0); 
$url = "https://hashcracking.info/index.php?4"; 
$ref = "https://hashcracking.info/index.php"; 
$ua = "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.4) Gecko/2008102920 AdCentriaIM/1.7 Firefox/3.0.4"; 
$ch = curl_init($url); 
curl_setopt($ch, CURLOPT_USERAGENT, $ua); 
curl_setopt($ch, CURLOPT_REFERER, $ref); 
curl_setopt($ch, CURLOPT_COOKIEJAR, "./cook"); 
curl_setopt($ch, CURLOPT_COOKIEFILE, "./cook"); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 
$res = curl_exec($ch); 
preg_match_all('#[0-9a-f]{32}#i', $res, $matches); 
print_r($matches); 
?>
 
Ответить с цитированием