
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.