Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 403 error related to Sec-MS-GEC and Sec-MS-GEC-Version parameters #297

Closed
wants to merge 1 commit into from

Conversation

BG5T
Copy link
Contributor

@BG5T BG5T commented Nov 1, 2024

Fixed a 403 Forbidden error related to authorization and added optional parameters Sec-MS-GEC and Sec-MS-GEC-Version.

  • Sec-MS-GEC: Optional parameter for authentication.
  • Sec-MS-GEC-Version: Optional parameter to specify the version for validation.

Fixed a 403 Forbidden error related to authorization and added optional parameters Sec-MS-GEC and Sec-MS-GEC-Version.
- Sec-MS-GEC: Optional parameter for authentication.
- Sec-MS-GEC-Version: Optional parameter to specify the version for validation.
@BG5T BG5T closed this Nov 1, 2024
@BG5T BG5T reopened this Nov 1, 2024
@BG5T
Copy link
Contributor Author

BG5T commented Nov 1, 2024

I Created an online API for distributing Sec-MS-GEC tokens for emergency use.

@rany2
Copy link
Owner

rany2 commented Nov 2, 2024

How does the API work? Is it manually updated by you or did you crack the algorithm?

@BG5T
Copy link
Contributor Author

BG5T commented Nov 2, 2024

How does the API work? Is it manually updated by you or did you crack the algorithm?
I monitor the links created by EDGE, so there's no need to understand the algorithm. It periodically initiates voice reading of links from EDGE and retrieves the Sec-MS-GEC token from the URL, then updates it to the database without any manual intervention. This requires a server deployment of the EDGE browser and a sniffer tool.

@jianchang512
Copy link

jianchang512 commented Nov 2, 2024

I Created an online API for distributing Sec-MS-GEC tokens for emergency use.

Thank you for your work, can you please tell us if this api address is stable and available to the public, or is it possible to terminate the service at any time?

@rany2
Copy link
Owner

rany2 commented Nov 2, 2024

This solution is clunky but it could work. I'd rather it works out of the box without needing to manually set a token or relying on a web service other than Microsoft's.

@rany2
Copy link
Owner

rany2 commented Nov 3, 2024

Closing, I rather the token be derived by the program (i.e., it doesn't rely on third party API service).

@rany2 rany2 closed this Nov 3, 2024
@learnin9
Copy link

learnin9 commented Nov 5, 2024

那看来就是自己linux桌面先装个edge浏览器,然后让edge浏览器进行语音阅读,然后通过代码嗅探得到Sec-MS-GEC
然后再写入数据库了是吧?
最后再提供接口服务喽?
感觉有思路了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants