Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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 1 weekly downloads. As such, bing-chat-module popularity was classified as not popular.
We found that bing-chat-module demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.