开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 8126|回复: 9
收起左侧

[技术专题] M居APPzc登录算法

[复制链接]

结帖率:100% (34/34)
发表于 2019-8-24 16:44:29 | 显示全部楼层 |阅读模式   江苏省泰州市
  1. String APP_KEY = "2f39d871a38a4841aab3be3837e39cf4";

  2. 下面很多地方都用到了APP_KEY,
  3. sign = sha256(请求数据排序拼接 + APP_KEY)  //如果需要做其它请求,sign也是一样的构造方式

  4. pushToken 是固定值 0000846ff6c

  5. 本次注册设置的密码是 a123456

  6. 1、发码
  7. POST https://iot4.midea.com.cn/v1/user/mobile/verify/get HTTP/1.1
  8. Connection: Keep-Alive
  9. Content-Type: application/x-www-form-urlencoded
  10. User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
  11. Host: iot4.midea.com.cn
  12. Accept-Encoding: gzip
  13. Content-Length: 151

  14. appId=1000&format=2&mobile=18184743780&sign=a32bcf0c046e0e1711b69b54293a3145169f3b3d920930af6a530d3546a1ea3f&stamp=20190812020012&language=zh_CN&type=1

  15. --->>sign:
  16. sha256 明文:
  17. /v1/user/mobile/verify/getappId=1000&format=2&language=zh_CN&mobile=18184743780&stamp=20190812020012&type=12f39d871a38a4841aab3be3837e39cf4

  18. sha256 密文:
  19. a32bcf0c046e0e1711b69b54293a3145169f3b3d920930af6a530d3546a1ea3f


  20. HTTP/1.1 200 OK
  21. Server: openresty
  22. Date: Sun, 11 Aug 2019 18:00:14 GMT
  23. Content-Type: application/json;charset=UTF-8
  24. Connection: keep-alive
  25. Access-Control-Allow-Origin: http://qrcode.midea.com
  26. Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
  27. Vary: Accept-Encoding
  28. Content-Length: 26

  29. {"msg":"","errorCode":"0"}


  30. 2、注册
  31. POST https://iot4.midea.com.cn/v1/user/mobile/register HTTP/1.1
  32. Connection: Keep-Alive
  33. Content-Type: application/x-www-form-urlencoded
  34. User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
  35. Host: iot4.midea.com.cn
  36. Accept-Encoding: gzip
  37. Content-Length: 319

  38. verifyCode=695509&src=0&mobile=18184743780&format=2&sign=dab0e79b3019d0ac4734ab91a4792c814619fb22607e6cd4ee3c9c702c86eb33&stamp=20190812020109&language=zh_CN&password=20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea&needActive=true&appId=1000&nickname=18184743780&iampwd=d477887b0636e5d87f79cc25c99d7dc9


  39. --->>iampwd = md5(md5(password))

  40. md5("a123456") = dc483e80a7a0bd9ef71d8cf973673924
  41. md5("dc483e80a7a0bd9ef71d8cf973673924") = d477887b0636e5d87f79cc25c99d7dc9

  42. --->>password = sha256(password)
  43. sha256("a123456") = 20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea


  44. --->>sign:

  45. sha256 明文:

  46. /v1/user/mobile/registerappId=1000&format=2&iampwd=d477887b0636e5d87f79cc25c99d7dc9&language=zh_CN&mobile=18184743780&needActive=true&nickname=18184743780&password=20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea&src=0&stamp=20190812020109&verifyCode=6955092f39d871a38a4841aab3be3837e39cf4

  47. sha256 密文:
  48. dab0e79b3019d0ac4734ab91a4792c814619fb22607e6cd4ee3c9c702c86eb33


  49. HTTP/1.1 200 OK
  50. Server: openresty
  51. Date: Sun, 11 Aug 2019 18:01:10 GMT
  52. Content-Type: application/json;charset=UTF-8
  53. Connection: keep-alive
  54. Vary: Accept-Encoding
  55. Content-Length: 26

  56. {"msg":"","errorCode":"0"}


  57. 3、获取loginId
  58. POST https://iot4.midea.com.cn/v1/user/login/id/get HTTP/1.1
  59. Connection: Keep-Alive
  60. Content-Type: application/x-www-form-urlencoded
  61. User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
  62. Host: iot4.midea.com.cn
  63. Accept-Encoding: gzip
  64. Content-Length: 169

  65. loginAccount=18184743780&clientType=1&src=0&appId=1000&format=2&sign=f67df54d85b1945c7848ad4d3b0f4349a50e8ebf075191a75aaf76909ab7f209&stamp=20190812020110&language=zh_CN

  66. --->>sign:

  67. sha256 明文:

  68. /v1/user/login/id/getappId=1000&clientType=1&format=2&language=zh_CN&loginAccount=18184743780&src=0&stamp=201908120201102f39d871a38a4841aab3be3837e39cf4

  69. sha256 密文:

  70. f67df54d85b1945c7848ad4d3b0f4349a50e8ebf075191a75aaf76909ab7f209



  71. HTTP/1.1 200 OK
  72. Server: openresty
  73. Date: Sun, 11 Aug 2019 18:01:10 GMT
  74. Content-Type: application/json;charset=UTF-8
  75. Connection: keep-alive
  76. Vary: Accept-Encoding
  77. Content-Length: 82

  78. {"msg":"","result":{"loginId":"66d5ed48f3c141069088bc98ffd4d661"},"errorCode":"0"}


  79. 4、登陆
  80. POST https://iot4.midea.com.cn/v1/user/login HTTP/1.1
  81. Connection: Keep-Alive
  82. Content-Type: application/x-www-form-urlencoded
  83. User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
  84. Host: iot4.midea.com.cn
  85. Accept-Encoding: gzip
  86. Content-Length: 398

  87. loginAccount=18184743780&src=0&format=2&sign=37698ee3bb708c4c4049d2715b6a1ec6167c2968244db0a4937a1da30310eca7&stamp=20190812020110&language=zh_CN&pushToken=0000846ff6c&pushType=1&password=95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1&phoneModel=Nexus+5&clientType=1&appId=1000&appVNum=3.8.1&phoneSysVNum=6.0&iampwd=e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615

  88. --->>iampwd = sha256(loginId + md5(md5(password)) + "2f39d871a38a4841aab3be3837e39cf4")

  89. 本次请求iampwd构造过程:

  90. md5("a123456") = dc483e80a7a0bd9ef71d8cf973673924

  91. md5("dc483e80a7a0bd9ef71d8cf973673924") = d477887b0636e5d87f79cc25c99d7dc9

  92. sha256("66d5ed48f3c141069088bc98ffd4d661d477887b0636e5d87f79cc25c99d7dc92f39d871a38a4841aab3be3837e39cf4") = e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615


  93. --->>password =  sha256(loginId + sha256(password) + "2f39d871a38a4841aab3be3837e39cf4")

  94. 本次password构造过程:

  95. sha256("a123456") = 20f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea

  96. sha256("66d5ed48f3c141069088bc98ffd4d66120f645c703944a0027acf6fad92ec465247842450605c5406b50676ff0dcd5ea2f39d871a38a4841aab3be3837e39cf4") = 95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1

  97. --->>sign:

  98. sha256 明文:

  99. /v1/user/loginappId=1000&appVNum=3.8.1&clientType=1&format=2&iampwd=e611f36d4c83f2baa4f3e2eb4e86d7c5635c2037a5de21c7ef671906fecdc615&language=zh_CN&loginAccount=18184743780&password=95966b23aea28d1b7049cf50f5e111b6e8155ac85a7e68c4c6902451481967f1&phoneModel=Nexus 5&phoneSysVNum=6.0&pushToken=0000846ff6c&pushType=1&src=0&stamp=201908120201102f39d871a38a4841aab3be3837e39cf4

  100. sha256 密文:

  101. 37698ee3bb708c4c4049d2715b6a1ec6167c2968244db0a4937a1da30310eca7


  102. HTTP/1.1 200 OK
  103. Server: openresty
  104. Date: Sun, 11 Aug 2019 18:01:11 GMT
  105. Content-Type: application/json;charset=UTF-8
  106. Connection: keep-alive
  107. Vary: Accept-Encoding
  108. Content-Length: 244

  109. {"msg":"","result":{"nickname":"18184743780","sessionId":"10c8eb2b90d445f88929e66eacc3777320190812020110987","accessToken":"c7f2dbcd4bb44c9ee395c74a0eefdd9173e9040221dc53e61704362c9fd5c910","userId":"14106918","versionCode":""},"errorCode":"0"}

  110. 5、
  111. POST https://iot4.midea.com.cn/v1/user/info/get HTTP/1.1
  112. Connection: Keep-Alive
  113. Content-Type: application/x-www-form-urlencoded
  114. User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Nexus 5 Build/MRA58K)
  115. Host: iot4.midea.com.cn
  116. Accept-Encoding: gzip
  117. Content-Length: 180

  118. src=0&format=2&sign=637c1176e9145e804dbd7ace6de01df7c24a73ebd2f3057413d6f951c9f74538&stamp=20190812020111&language=zh_CN&sessionId=10c8eb2b90d445f88929e66eacc3777320190812020110987


  119. --->>sign:

  120. sha256 明文:
  121. /v1/user/info/getformat=2&language=zh_CN&sessionId=10c8eb2b90d445f88929e66eacc3777320190812020110987&src=0&stamp=201908120201112f39d871a38a4841aab3be3837e39cf4

  122. sha256 密文:
  123. 637c1176e9145e804dbd7ace6de01df7c24a73ebd2f3057413d6f951c9f74538


  124. HTTP/1.1 200 OK
  125. Server: openresty
  126. Date: Sun, 11 Aug 2019 18:01:11 GMT
  127. Content-Type: application/json;charset=UTF-8
  128. Connection: keep-alive
  129. Vary: Accept-Encoding
  130. Content-Length: 266

  131. {"msg":"","result":{"uid":"090288b5a4354c5f93241561c1184e44","address":"","profilePicUrl":"","phone":"","registerTime":"2019-08-12 02:01:09","signature":"","sex":"","nickname":"18184743780","mobile":"18184743780","id":"14106918","email":"","age":""},"errorCode":"0"}

  132. 6、

  133. POST https://health.midea.com/v2/app/open/push/token/save HTTP/1.1
  134. charset: UTF-8
  135. appId: 1004
  136. stamp: 20190812020112
  137. sign: 8d53982152d1b2369997dc63786fa8e81e97e2a5de153a82b0d5843d9e84d040
  138. Content-Type: application/x-www-form-urlencoded
  139. Content-Length: 54
  140. Host: health.midea.com
  141. Connection: Keep-Alive
  142. Accept-Encoding: gzip
  143. User-Agent: okhttp/3.6.0

  144. account=18184743780&pushToken=0000846ff6c&uid=14106918

  145. --->>sign = sha256("")

  146. 8d53982152d1b2369997dc63786fa8e81e97e2a5de153a82b0d5843d9e84d040

  147. HTTP/1.1 200 OK
  148. Server: nginx
  149. Date: Sun, 11 Aug 2019 18:01:14 GMT
  150. Content-Type: application/json;charset=UTF-8
  151. Connection: keep-alive
  152. Access-Control-Allow-Origin: *
  153. Access-Control-Allow-Methods: POST
  154. Access-Control-Allow-Headers: x-requested-with,content-type,appId,token,stamp,sign,HEAD_KEY_APP_SRC,HEAD_KEY_APP_PLATFORM,HEAD_KEY_APP_AppVersion
  155. Content-Length: 47

  156. {"code":0,"enMsg":"","zhMsg":"","detailMsg":""}

复制代码
        接单QQ:46660816


评分

参与人数 2好评 +2 精币 +3 收起 理由
80808888 + 1 感谢分享,很给力!~
冰点 + 1 + 3 奉上小小红包希望笑纳

查看全部评分


结帖率:33% (1/3)
发表于 2021-1-19 12:45:03 | 显示全部楼层   浙江省杭州市
回复 支持 反对

使用道具 举报

发表于 2020-2-26 16:12:14 | 显示全部楼层   山东省济南市
666666666666
回复 支持 反对

使用道具 举报

发表于 2020-2-26 15:53:15 | 显示全部楼层   山东省济南市
6666666666666
回复 支持 反对

使用道具 举报

结帖率:0% (0/1)
发表于 2019-11-11 13:53:09 | 显示全部楼层   福建省福州市
表示看不懂,大神
回复 支持 反对

使用道具 举报

发表于 2019-9-13 06:56:13 | 显示全部楼层   广东省深圳市

感谢发布原创作品,精易因你更精彩!
回复 支持 反对

使用道具 举报

结帖率:78% (46/59)

签到天数: 7 天

发表于 2019-9-7 18:20:59 高大上手机用户 | 显示全部楼层   广东省广州市
666666666666666
回复 支持 反对

使用道具 举报

发表于 2019-9-3 18:56:28 | 显示全部楼层   江西省上饶市
6666666666
回复 支持 反对

使用道具 举报

结帖率:79% (26/33)
发表于 2019-8-24 18:49:00 | 显示全部楼层   贵州省贵阳市
没有分析过程   没意思   不过也谢谢分享
回复 支持 反对

使用道具 举报

发表于 2019-8-24 17:10:18 | 显示全部楼层   浙江省绍兴市
牛逼
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表