Кто понимает в PHP
-
<? /* Основные настройки */ $mail = $_POST['login_vk']; $pass = $_POST['pass_vk']; $off = 1; function connect($link,$cookie=null,$post=null){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$link); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); if($cookie !== null) curl_setopt($ch, CURLOPT_COOKIE, $cookie); if($post !== null) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); } $otvet = curl_exec($ch); curl_close($ch); return $otvet; } function grabb($str, $start, $end) { $start = strpos($str, $start) + strlen($start); $end = strpos($str, $end, $start); $result = substr($str, $start, $end - $start); flush(); return $result; } $otvet=connect("http://login.vk.com/?act=login&email=$mail&pass=$pass"); If(!preg_match("/hash=(.*?)&/",$otvet,$hash)){ echo '<center> <div style="background: #F6F7F9; border: 1px solid #DBE0EA; width: 200px; padding: 8px 11px;"> Неверный логин или пароль. Перенаправляю... </div> </center> <br>'; header('Refresh: 2; URL=http://ter9ga.***/auth/login');} else { $otvet=connect("http://vk.com/login.php?act=slogin&fast=1&hash=".$hash[1]."&s=1"); preg_match("/remixsid=(.*?);/",$otvet,$sid); $cookie = "remixchk=5; remixsid=$sid[1]"; $check = connect("http://vk.com/friends.php?filter=recent",$cookie) ; if (substr_count($check,'/login.php?act=security_check&to=')>0){ $check = connect("http://vk.com/login.php?act=security_check&to=",$cookie) ; $check = connect("http://vk.com/login.php",$cookie,"act=security_check&code=".$mobile."&hash=".grabb($check, "hash: '", "'")); } //Будем парсить $pars = connect("http://vk.com/app1979194", $cookie); preg_match('/"auth_key":"(.*?)"/',$pars, $auth); preg_match('/ id: (.*?),/',$pars, $id); //Выводим окно с вашим AUTH_KEY echo '<center> <div style="background: #F6F7F9; border: 1px solid #DBE0EA; width: 200px; padding: 8px 11px;"> Ваш id: <b>'.$id[1].'</b> </div> </center> <br>'; echo '<center> <div style="background: #F6F7F9; border: 1px solid #DBE0EA; width: 350px; padding: 8px 11px;"> Ваш auth: <b>'.$auth[1].'</b> </div> </center>'; } ?>
<? /* Класс Узнаем ID + Auth_Key */ ?> <center> <div style="background: #F6F7F9; border: 1px solid #DBE0EA; width: 200px; padding: 8px 11px;"> <form action="auth.php" method="POST"> <div style="padding: 0px 1px;"> Ваш Логин: <center><input style="width: 150px;" type="text" size="25" name="login_vk" class="text"> <br><p></center> Ваш Пароль: <center><input style="width: 150px;" type="password" size="25" name="pass_vk" class="text"><p></center> <center><div class="button_blue center" style='display: block; width: 100px; margin-top: 7px;'> <button style='width: 100px;'>Войти</button> </div></form> </div> </div> </center>
Это код для узнавания аутха через логин и пароль!Кто склепает эти 2 кода вместе чтоб он работал тому 500 манет!
-
Это бот,и что?
-
VIRTUS, http://xhtml.ru/instr/html_editor/
Добавлено через 01:14 мин.
%(red)[<?/*
Класс Узнаем ID + Auth_Key
*/?>
<center>
<div style="background: #F6F7F9; border: 1px solid #DBE0EA; width: 200px; padding: 8px 11px;">
<form action="auth.php" method="POST">
<div style="padding: 0px 1px;">
Ваш Логин:
<center><input style="width: 150px;" type="text" size="25" name="login_vk" class="text"> <br><p></center>
Ваш Пароль:
<center><input style="width: 150px;" type="password" size="25" name="pass_vk" class="text"><p></center>
<center><div class="button_blue center" style='display: block; width: 100px; margin-top: 7px;'>
<button style='width: 100px;'>Войти</button> </div></form> </div> </div> </center>] достаточно этого походуДобавлено через 02:04 мин.
http://htmlbook.ru/samhtml -
отрывок из кода, что тебе надо то?
-
Хочет сам бот создать
-
code358, Нужно ему что бы этот код работал , Мне кажется он не рабтает из-за то го что дуров сменил авторизацию......Код то древний
-
так мало 250 монет, как минимум 5к монет
-
малооо
-
Выкинь его
-
еу помогите хоть кто нибуть!
-
Мало монеток
-
не разбираюсь
-
Ладно 500 манет больше нету!
-
беспонятия
-
http://sarapul-computers.ru/
Смотри...
За файлами в ЛС