const os = require('os'); const crypto = require('crypto'); const express = require('express'); const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); const app = express(); const port = 3000; // ✔ HWID Hesaplama function getHWID() { const username = os.userInfo().username; const hostname = os.hostname(); const platform = os.platform(); const arch = os.arch(); const combined = `${username}-${hostname}-${platform}-${arch}`; return crypto.createHash('sha256').update(combined).digest('hex'); } // ✔ Yetkili HWID Listesi const allowedHWIDs = [ '0b69a3638a4b5157f5766182bdda7dc7431a2317917ad30d27ddc1293531c0ae', // örnek ]; // ✔ Kullanıcının HWID’si const userHWID = getHWID(); console.log('Kullanıcının HWID\'si:', userHWID); // ✔ HWID Kontrolü if (!allowedHWIDs.includes(userHWID)) { console.log('❌ Yetkisiz kullanıcı. HWID doğrulaması başarısız.'); console.log('Yetkili HWID\'ler:', allowedHWIDs); process.exit(1); } else { console.log('✅ HWID doğrulandı. Hoş geldin!'); } // ✔ Basit Express Sunucusu app.get('/', (req, res) => { res.send('Merhaba! Sunucu çalışıyor.'); }); // ✔ Örnek frontend endpoint'leri const files = { 'index.html': 'https://raw.githubusercontent.com/AminOgluOyundaa/porno/main/index.html', 'style.css': 'https://raw.githubusercontent.com/AminOgluOyundaa/porno/main/style.css', 'contact.html': 'https://raw.githubusercontent.com/AminOgluOyundaa/porno/main/contact.html', }; app.get('/frontend/:file', async (req, res) => { const fileName = req.params.file; const url = files[fileName]; if (!url) return res.status(404).send('Dosya bulunamadı.'); try { const response = await fetch(url); if (!response.ok) throw new Error(`İstek hatalı: ${response.status}`); const content = await response.text(); // İçerik türü ayarla (CSS için örnek) if (fileName.endsWith('.css')) { res.setHeader('Content-Type', 'text/css'); } res.send(content); } catch (err) { console.error('Hata:', err); res.status(500).send('Sunucu hatası: ' + err.message); } }); // ✔ Sunucu başlat app.listen(port, () => { console.log(`🚀 Sunucu başlatıldı: http://localhost:${port}`); });