| 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 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 errs=[]; page.on('pageerror',e=>errs.push(e.message));
await page.setViewport({ width:1100, height:1000, deviceScaleFactor:1.4 });
await page.goto('https://www.safemyident.de/tools/ip-check/', { waitUntil:'networkidle2', timeout:60000 });
await page.type('#smi-ipc-input','185.220.101.1');
await page.click('#smi-ipc-check');
// Warte bis Scan sichtbar + einige Werte da (network schnell)
await page.waitForFunction(()=>{ const s=document.getElementById('smi-ipc-scan'); return s && !s.hidden && s.querySelector('.is-done'); },{timeout:15000}).catch(()=>{});
await new Promise(r=>setTimeout(r,2200));
const mid = await page.evaluate(()=>{
const scan=document.getElementById('smi-ipc-scan');
const items=[...document.querySelectorAll('.smi-ipc__scan-list li')].map(l=>l.dataset.check+':'+(l.className.replace('is-','')||'pending'));
const ovLoaded = document.getElementById('smi-ipc-panel-overview').textContent.includes('185.220');
return { scanVisible:scan&&!scan.hidden, items, ovLoaded, progText:(document.getElementById('smi-ipc-progress-text')||{}).textContent };
});
console.log('MID:', JSON.stringify(mid));
await page.screenshot({ path:'/tmp/smi-shot/scan-mid.png', clip:{x:0,y:230,width:1100,height:520} });
// final
await page.waitForFunction(()=>document.getElementById('smi-ipc-progress').classList.contains('is-done'),{timeout:40000}).catch(()=>{});
await new Promise(r=>setTimeout(r,600));
const fin = await page.evaluate(()=>({ scoreShown:!document.getElementById('smi-ipc-scorecard').hidden, score:document.getElementById('smi-ipc-score-num').textContent, scanHidden:document.getElementById('smi-ipc-scan').hidden }));
console.log('FINAL:', JSON.stringify(fin), '| errors:', errs.length?errs.slice(0,4):'none');
await browser.close();
})().catch(e=>{console.error('ERR',e.message);process.exit(1);});