transitive-bullshit / bing-chat

Node.js client for Bing's new AI-powered search. It's like ChatGPT on steroids 🔥
MIT License
1.22k stars 127 forks source link

_U Cookie Generation #57

Open tuikat opened 1 year ago

tuikat commented 1 year ago

Unsure if this is even something that is possible, but has anyone looked into reverse engineering the _U cookie generation such that it would not have to be manually refreshed every few days? This would be super useful if a new cookie can be generated through an endpoint or node.js so that a service might be totally self sufficient.

evankozliner commented 1 year ago

I haven't, but I've thought about it. Wonder if it would be possible with a headless browser?

Right now the API isn't working for a lot of folks, so we've got bigger problems haha

tuikat commented 1 year ago

Just to give an update, I have been working on a headless browser implementation to generate _U cookies on the fly. Additionally, I realized that with the new implementation with copilot, you are now able to access it through any browser and without being signed in so there may be an opportunity to instead make a second version where the headless browser communicates to Bing Chat through an anonymous conversation. Will update if either of these work.

gerkim62 commented 10 months ago

it is possible to extract the cookie using a browser extension,