This script is for pentesting purposes
I have a love hate relationship with burpsuite. Is very useful but it kills my laptop.
This is my version of Burp Collaborator
sendcookies.js instructs your xss attack to communicate with your very own server and retrieve the loaded puppeteer session.
cookieserver.py Very basic server using http headers to retrieve the information and stores in a file.