Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Для мыла */
- $sim="qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP"; //символы
- $max=10; //длина
- $size=StrLen($sim)-1;
- $user=null;
- while($max--)
- $user.=$sim[rand(0,$size)];
- $pref = "@asdasd.ru";
- $mylo = $user.$pref;
- /*---------*/
- /* Функция отправки запроса */
- function make_http_post_request($url, $post, $ssl = false, $headers = '', $uagent = '') {
- if (empty($url)) {
- return false;
- }
- $_post = Array();
- if (is_array($post)) {
- foreach ($post as $name => $value) {
- $_post[] = $name.'='.urlencode($value);
- }
- }
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- if (is_array($post)) {
- curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
- }
- if (is_array($headers)) {
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- }
- if (!empty($uagent)) {
- curl_setopt($ch, CURLOPT_USERAGENT, $uagent);
- }
- $result = curl_exec($ch);
- if (curl_errno($ch) != 0 && empty($result)) {
- $result = false;
- }
- curl_close($ch);
- return $result;
- }
- /*---------*/
- /* Запрос для отправки ICQ на мыло */
- $post = Array('mail' => $mylo, 'act' => 'send');
- $headers = Array();
- $headers[] = "Content-type: application/x-www-form-urlencoded";
- $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)');
- /*--------------------------*/
- sleep(5); // ждем 5 сек прихода e-mail
- /* Заходим в почту, колдуем */
- $pochta = file_get_contents("http://asdasd.ru/?u=".$user);
- preg_match("#read(.*?)?u=#si", $pochta, $matches); // парсим id сбщ с icq
- //print $matches[1]; // выводим id сообщения с icq
- /*-------------------------*/
- /* Получаем сбщ с ICQ */
- $sep ="u=";
- $domain = "http://asdasd.ru/read";
- $urlmsg = $domain.$matches[1];
- $final = file_get_contents($urlmsg.$sep.$user); // мой говнокод
- /* Вывод ICQ */
- preg_match("#UIN(.*?)-----#si", $final, $match); //парсим UIN и пасс
- $uin=str_replace("Пароль","Password",$match[0]); //замена кракозябра, так, чисто для эксперимента =)
- echo $uin;
- /*-------------------------*/
- //echo $final; //просмотр сообщения с icq
- ?>
Advertisement
Add Comment
Please, Sign In to add comment