| 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']});
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.click('#smi-idg-submit');
await p.waitForFunction(()=>document.querySelector('.smi-idg__card'),{timeout:20000}).catch(()=>{});
async function vis(view){ await p.click('.smi-idg__view[data-view="'+view+'"]'); await new Promise(r=>setTimeout(r,150)); return p.$eval('#smi-idg-csv',el=>!el.hidden); }
console.log('CSV visible — cards:', await vis('cards'), '| table:', await vis('table'), '| json:', await vis('json'));
// confirm download still works from json view
const client=await p.target().createCDPSession();
await client.send('Page.setDownloadBehavior',{behavior:'allow',downloadPath:'/tmp/smi-dl'});
const fs=require('fs'); try{fs.rmSync('/tmp/smi-dl/safemyident-identities.csv')}catch(e){}
await p.click('#smi-idg-csv'); await new Promise(r=>setTimeout(r,800));
console.log('download from JSON view ->', fs.existsSync('/tmp/smi-dl/safemyident-identities.csv')?'OK':'FAIL');
await b.close();
})().catch(e=>{console.error('ERR',e.message);process.exit(1);});