Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $TEXTlogin = 'Логин';
- $TEXTpass = 'Пароль';
- $auth = file_get_contents('http://login.vk.com/
- act=login&email='.$TEXTlogin.'&pass='.$TEXTpass);
- if (preg_match('/hash=([a-z0-9]{1,32})/', $auth, $hash)) {
- $url= 'http://vk.com/login.php?act=slogin&role=fast&redirect=1&to=&s=1&<strong>__q_hash=</strong>' . $hash[1];
- $res = file_get_contents($url);
- preg_match('/remixsid=(.*?);/', $res, $sid);
- $cookie = 'remixdt=-3600; remixlang=0; audio_vol=100; remixseenads=2; remixflash=11.4.402; remixsid=' . $sid[1];
- // Тут Авторизовался что ли?
- }
- else {
- // А тут нет?
- }
- if (preg_match('/hash=([a-z0-9]{1,32})/', $auth, $hash)) {
- // Всё получилось
- } else {
- // Ошибка
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement