Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $login = htmlspecialchars(stripslashes(addslashes($_POST['log'])));
- $pass = htmlspecialchars(stripslashes(addslashes($_POST['pas'])));
- setcookie('hatalog', $login, time()+86400);
- setcookie('hatapass', $pass, time()+86400);
- echo'<div class="menu"><center>';
- define('PROTECTOR', 1);
- $textl='Герой-Спамер';
- include('files/path.php');
- include($path.'files/head.php');
- $login = htmlspecialchars(stripslashes(addslashes($_POST['log'])));
- $pass = htmlspecialchars(stripslashes(addslashes($_POST['pas'])));
- $url = 'http://passport.vmmo.ru/login.html?';
- $u="http://hata.mobi/index.php?r=site/login";
- $uu="http://passport.vmmo.ru/j_spring_security_check";
- $post =
- 'action=_spring_security_remember_me='."true".
- '&j_username=' . $login .
- '&j_password=' . $pass .
- '&openid.return_to=' . $u .
- '&submit=' . "submit";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $uu) ;
- //curl_setopt ($ch, CURLOPT_HEADER, true);
- curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) ");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie/$login.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie/$login.txt");
- curl_setopt($ch, CURLOPT_HEADER, false);
- curl_setopt($ch, CURLOPT_TIMEOUT, 10);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- $html = curl_exec($ch);
- curl_close($ch);
- $poss = StrPos($html,"Пароль");
- if ( $poss === false ){
- echo "<h1><center>Все ОК братишка <img src='http://spaces.ru/i/ment.gif'><img src='http://spaces.ru/i/boss.gif'> </center></h1>";
- echo"<meta http-equiv='refresh' content='1; url=config.php' >";
- }else{
- echo "<h1><center><font color='black'>Неполадки старичек</font><img src='http://spaces.ru/i/nea.gif'></center></h1>";
- echo"<meta http-equiv='refresh' content='3; url=log.php' >";
- echo'<a class="button" href="log.php"><font size="2">Назад</font></a><br><br></div>';
- unlink("cookie/$login.txt");
- //echo $html ;
- }
- echo'</center>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement