Last active
December 14, 2015 20:08
Revisions
-
c9n revised this gist
Mar 12, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ "exectime": 9 } == form data == entry:weibo gateway:1 -
c9n created this gist
Mar 12, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,48 @@ /* * Author: lynn * Date: 2013-03-12 * */ /* == prelogin == request url: http://login.sina.com.cn/sso/prelogin.php?entry=weibo&su=aDBtbGVhbiU0MHNpbmEuY24%3D&rsakt=mod&checkpin=1&client=ssologin.js(v1.4.5) prelogin result: { "retcode": 0, "servertime": 1363060593, "pcid": "yf-4086bc1b307e3d668bb7f3ec56c3ced0eb15", "nonce": "JD4RL8", "pubkey": "EB2A38568661887FA180BDDB5CABD5F21C7BFD59C090CB2D245A87AC253062882729293E5506350508E7F9AA3BB77F4333231490F915F6D63C55FE2F08A49B353F444AD3993CACC02DB784ABBB8E42A9B1BBFFFB38BE18D78E87A0E41B9B8F73A928EE0CCEE1F6739884B9777E4FE9E88A1BBE495927AC4A799B3181D6442443", "rsakv": "1330428213", "showpin": 0, "exectime": 9 } == entry:weibo gateway:1 from:weibo savestate:7 useticket:1 pagerefer:123.sogou.com vsnf:1 service:miniblog pwencode:rsa2 rsakv:1330428213 encoding:UTF-8 prelt:23 url:http%3A%2F%2Fweibo.com%2Fajaxlogin.php%3Fframelogin%3D1%26callback%3Dparent.sinaSSOController.feedBackUrlCallBack returntype:META servertime: * get from prelogin request * nonce: * get from prelogin request * su: * encodeURIComponent(base64.encode(encodeURIComponent('user_id'))) * sp: * rsa encode with servertime & nonce & password * */