
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
dump-cookie
Advanced tools
Open an empty Chrome browser, dump cookies on termination.
Puppeteer is a savior that save us from boring tasks by enabling us to build web automation tools, however, some sites block Puppeteer's magic wand through libraries like reCAPCHA. To bypass those circumstances, reusing a healthy cookie could be a help sometimes. This program dumps cookies for you.
git clone https://github.com/reedom/dump-cookie
cd dump-cookie
yarn install
Open a terminal window and invoke the program.
It will open a new Chrome window with 2 tabs.
The first tab contains a normal page.
The second tab is under the control of Puppeteer.
cd path/to/dump-cookie
yarn run start
Move to the first tab, and then visit any web site and do login, etc.
Open the same webpage in the second tab, with a hope that it'd load the same cookies with the first tab.
Back to the terminal window and press CTRL-C.
You'll have a cookies' dump string.
Save and use it in your program.
For example:
const cookies = JSON.parse(DUMPED_COOKIES);
await page.setCookie(...cookies);
MIT
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.