| 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');
const MOCK={success:true,data:{count:2,data:[{id:'d1',first_name:'Manuel',last_name:'GarcĂa',gender:'male',birthdate:'1965-02-22',age:61,country:'ES',city:'Madrid',address:'Calle Mayor 184',email_dummy:'m@example.com',phone_dummy:'+34 0',synthetic:true,created_at:'2026-07-06T12:00:00+02:00'}]}};
(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']});
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.setRequestInterception(true);
p.on('request',r=>{if(r.method()==='POST'&&r.url().includes('admin-ajax.php'))r.respond({status:200,contentType:'application/json',body:JSON.stringify(MOCK)});else r.continue();});
await p.setViewport({width:1300,height:1000});
await p.goto('https://www.safemyident.de/tools/identitaets-generator/',{waitUntil:'networkidle2',timeout:60000});
await p.click('#smi-idg-submit');
await p.waitForFunction(()=>document.querySelector('.smi-idg__card'),{timeout:15000}).catch(()=>{});
await p.click('.smi-idg__view[data-view="table"]');
await p.waitForFunction(()=>document.querySelector('.smi-idg__table td'),{timeout:5000}).catch(()=>{});
const d=await p.evaluate(()=>{const td=document.querySelector('.smi-idg__table tbody td');const cs=getComputedStyle(td);
let el=td,chain=[];while(el&&el!==document.body){const c=getComputedStyle(el);chain.push(el.className+' op='+c.opacity+' fill='+c.webkitTextFillColor+' clip='+(c.webkitBackgroundClip||c.backgroundClip));el=el.parentElement;}
return{color:cs.color,fill:cs.webkitTextFillColor,opacity:cs.opacity,shadow:cs.textShadow,bgclip:cs.webkitBackgroundClip,chain:chain.slice(0,5)};});
console.log(JSON.stringify(d,null,2));await b.close();})().catch(e=>{console.error(e.message);process.exit(1);});