| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/smi-shot/ |
Upload File : |
const puppeteer = require('puppeteer');
(async () => {
const q = process.argv[2] || '8.8.8.8';
const out = process.argv[3] || '/tmp/smi-shot/ipc.png';
const width = parseInt(process.argv[4] || '1100', 10);
const browser = await puppeteer.launch({ headless: 'new',
args: ['--no-sandbox','--disable-setuid-sandbox','--disable-dev-shm-usage','--font-render-hinting=none',
'--host-resolver-rules=MAP www.safemyident.de 127.0.0.1','--ignore-certificate-errors'] });
const page = await browser.newPage();
const errors = [];
page.on('console', m => { if (m.type()==='error') errors.push(m.text()); });
page.on('pageerror', e => errors.push('PAGEERR: '+e.message));
await page.setViewport({ width, height: 1000, deviceScaleFactor: 1 });
await page.goto('https://www.safemyident.de/tools/ip-check/', { waitUntil: 'networkidle2', timeout: 60000 });
await page.type('#smi-ipc-input', q);
await page.click('#smi-ipc-check');
// Auf Score warten.
try { await page.waitForFunction(() => { const n=document.getElementById('smi-ipc-score-num'); return n && n.textContent && n.textContent!=='–'; }, { timeout: 30000 }); } catch(e){ errors.push('no-score-timeout'); }
await new Promise(r=>setTimeout(r, 3500));
const info = await page.evaluate(() => {
const g=(id)=>{const e=document.getElementById(id);return e?e.textContent.trim():null;};
const tabs=[...document.querySelectorAll('.smi-ipc__tab')].map(t=>t.textContent.trim());
return { score:g('smi-ipc-score-num'), badge:g('smi-ipc-score-badge'), target:g('smi-ipc-score-target'), tabs };
});
console.log(JSON.stringify(info));
console.log('JS errors:', errors.length? errors.slice(0,6): 'none');
await page.screenshot({ path: out, fullPage: true });
await browser.close();
})().catch(e=>{console.error('ERR',e.message);process.exit(1);});