
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
bing-chat-module
Advanced tools
This module is a Node.js client for the unofficial Bing Chat API. This module allows you to interact with Bing Chat using Node.js.
Before using this module, make sure you have installed Node.js on your computer. To install the module, use the following command:
npm install bing-chat
Make sure you use node >= 18
so that fetch
is available.
You need access to Bing Chat OR a valid cookie from someone who has access.
The cookie you need from Bing is the _U
cookie (or just all of the cookies concatenated together; both will work).
const { BingChat } = require('bing-chat-module');
const bingChatInstance = new BingChat({ cookie: 'your_bing_cookie_here' });
bingChatInstance.sendMessage('Hello, Bing Chat!')
.then(response => console.log(response))
.catch(error => console.error(error));
bingChatInstance.createConversation()
.then(result => console.log(result))
.catch(error => console.error(error));
Open a browser and go to Bing.com
Open a browser and visit Bing.com. -> Login to your Microsoft Account
Login to your Microsoft account. Make sure you are logged in before continuing. -> Open Developer Tools (Ctrl + Shift + I or F12)
Open Developer Tools in your browser. This can be done by pressing Ctrl + Shift + I or F12. -> Go to Network Tab
Select the "Network" tab in Developer Tools. -> Search Request to www.bing.com
Reload the Bing.com page and observe the request on the Network tab. -> Look for Cookies in the Request Header
Select the request to www.bing.com and see the "Headers" section. Look for the "Cookie" section in the request header. -> Copy Cookies
Copy the cookie value from the request header. This is what you will use as the cookie value when creating the BingChat object.
Thanks to KimzzDev
MIT © Travis Fischer
If you found this project interesting, please consider sponsoring me or following me on twitter
FAQs
Node.js client for the unofficial Bing Chat API.
The npm package bing-chat-module receives a total of 0 weekly downloads. As such, bing-chat-module popularity was classified as not popular.
We found that bing-chat-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.