Hack Baidu to Bind Gmail
Contents
Introduction
Recently I switched my email account from hotmail to gmail and rebind all my accounts. But Baidu doesn’t allow us to bind gmail. I searched on Baidu and found someone on V2EX said he successfully bound gmail to his Baidu account and Baidu doesn’t have verification on the server side. I tried that and also succeeded.
Here I want to share the steps to bind your gmail to a Baidu account. Some basic knowledge about front-end web development is required to understand the process.
The Step
Send Verification Code to an Arbitrary Email via Web UI
- Open the network tab of your browser console, so you can see the HTTP requests.
- Input an random email in the text field, for example “hahahahaha@qq.com”.
- Check the HTTP request in the console. The URI will be like this:
https://passport.baidu.com/v2/?bindwidget-send&action=bindemail&…email=hahahahaha%40qq.com…
Send Verification Code to Your Gmail via the Browser Console
- Change the email in the parameters to your gmail. (If you use firefox, you can directly edit the HTTP request in the console.) Keep other parameters unchanged.
- Send the request.
- Check your gmail inbox.
Send Verification Code to Baidu via Web UI
- Keep the email unchanged. Input the verification code in the text field.
- Check the HTTP request in the console. The URI will be like this:
https://passport.baidu.com/v2/?bindwidget-bind&action=bindemail&…email=hahahahaha%40qq.com…
Send Verification Code to Baidu via the Browser Console
- Change the email parameter to your gmail.
- Send the request.
- Finally, refresh the page. You will see your gmail is now bound.