Guest User

for antichat

a guest
Dec 10th, 2011
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.47 KB | None | 0 0
  1. <?php
  2.  
  3. /* Для мыла */
  4. $sim="qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP"; //символы
  5. $max=10; //длина
  6. $size=StrLen($sim)-1;
  7. $user=null;
  8. while($max--)
  9. $user.=$sim[rand(0,$size)];
  10. $pref = "@asdasd.ru";
  11. $mylo = $user.$pref;
  12. /*---------*/
  13.  
  14. /* Функция отправки запроса */
  15. function make_http_post_request($url, $post, $ssl = false, $headers = '', $uagent = '') {
  16.     if (empty($url)) {
  17.         return false;
  18.     }
  19.  
  20.     $_post = Array();
  21.  
  22.     if (is_array($post)) {
  23.         foreach ($post as $name => $value) {
  24.             $_post[] = $name.'='.urlencode($value);
  25.         }
  26.     }
  27.  
  28.     $ch = curl_init($url);
  29.    
  30.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  31.     curl_setopt($ch, CURLOPT_POST, 1);
  32.     curl_setopt($ch, CURLOPT_HEADER, 0);
  33.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  34.  
  35.     if (is_array($post)) {
  36.         curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
  37.     }
  38.  
  39.     if (is_array($headers)) {
  40.         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  41.     }
  42.  
  43.     if (!empty($uagent)) {
  44.         curl_setopt($ch, CURLOPT_USERAGENT, $uagent);
  45.     }
  46.  
  47.     $result = curl_exec($ch);
  48.  
  49.     if (curl_errno($ch) != 0 && empty($result)) {
  50.         $result = false;
  51.     }
  52.  
  53.     curl_close($ch);
  54.  
  55.     return $result;
  56. }
  57. /*---------*/
  58. /* Запрос для отправки ICQ на мыло */
  59. $post = Array('mail' => $mylo, 'act' => 'send');
  60. $headers   = Array();
  61. $headers[] = "Content-type: application/x-www-form-urlencoded";
  62.  
  63. $content = make_http_post_request('http://pux.su/icq/index.php', $post, false, $headers, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
  64. /*--------------------------*/
  65. sleep(5); // ждем 5 сек прихода e-mail
  66. /* Заходим в почту, колдуем */
  67. $pochta = file_get_contents("http://asdasd.ru/?u=".$user);
  68. preg_match("#read(.*?)?u=#si", $pochta, $matches); // парсим id сбщ с icq
  69. //print $matches[1]; // выводим id сообщения с icq
  70. /*-------------------------*/
  71. /* Получаем сбщ с ICQ */
  72. $sep ="u=";
  73. $domain = "http://asdasd.ru/read";
  74. $urlmsg = $domain.$matches[1];
  75. $final = file_get_contents($urlmsg.$sep.$user); // мой говнокод
  76. /* Вывод ICQ */
  77. preg_match("#UIN(.*?)-----#si", $final, $match); //парсим UIN и пасс
  78. $uin=str_replace("Пароль","Password",$match[0]); //замена кракозябра, так, чисто для эксперимента =)
  79. echo $uin;
  80. /*-------------------------*/
  81. //echo $final; //просмотр сообщения с icq
  82. ?>
  83.  
Advertisement
Add Comment
Please, Sign In to add comment