| 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 b=await puppeteer.launch({headless:'new',args:['--no-sandbox','--disable-setuid-sandbox','--host-resolver-rules=MAP www.safemyident.de 127.0.0.1','--ignore-certificate-errors']});
async function chk(url){
const p=await b.newPage();
await p.setCookie({name:'wordpress_logged_in_8ee7c555d1ecbc630d9be8fb20481a97',value:process.env.CVAL,domain:'www.safemyident.de',path:'/',httpOnly:true,secure:true});
await p.goto(url,{waitUntil:'networkidle2',timeout:60000});
const info=await p.evaluate(()=>{
const s=document.getElementById('smi-idg-country');
return {count:s.options.length, selected:s.value, first3:[...s.options].slice(0,3).map(o=>o.textContent), hasTR:[...s.options].some(o=>o.value==='TR'), trLabel:[...s.options].find(o=>o.value==='TR')?.textContent};
});
console.log(url);
console.log(' options:',info.count,'| preselected:',info.selected,'| first3:',JSON.stringify(info.first3),'| TR:',JSON.stringify(info.trLabel));
await p.close();
}
await chk('https://www.safemyident.de/tools/identitaets-generator/');
await chk('https://www.safemyident.de/en/tools/identity-generator/');
// end-to-end generate with a NEW country (TR) — real API
const p=await b.newPage();
await p.setCookie({name:'wordpress_logged_in_8ee7c555d1ecbc630d9be8fb20481a97',value:process.env.CVAL,domain:'www.safemyident.de',path:'/',httpOnly:true,secure:true});
await p.goto('https://www.safemyident.de/tools/identitaets-generator/',{waitUntil:'networkidle2',timeout:60000});
await p.select('#smi-idg-country','TR');
await p.click('#smi-idg-submit');
await p.waitForFunction(()=>document.querySelector('.smi-idg__card'),{timeout:20000}).catch(()=>{});
const res=await p.evaluate(()=>{const c=document.querySelector('.smi-idg__card');return c?c.textContent.replace(/\s+/g,' ').slice(0,160):'(no card)';});
console.log('TR generate ->', res);
await b.close();
})().catch(e=>{console.error('ERR',e.message);process.exit(1);});