User-Profile-Image
hankin
  • 5
  • 首页
  • 留言
  • 仓库
  • 云端
  • 分类
    • 随笔
    • 安卓逆向
    • php
    • node.js
    • C#
  • 页面
    • 个人技术栈
    • 留言
  • 友链
    • 沉沦云API
    • 沉沦云端
    • SinKingMusic
    • 美和易思刷课
    • 神奇的七云
    • khaos编程小站
    • 小九实验室
    • 一叶三秋
    • 青年的故事
    • :李白云博客
    • 噜阿噜-资源站
    • 小k
Help?

Please contact us on our email for need any support

Support
    首页   ›   node.js   ›   正文
node.js

QQWeb登陆P值算法

2020-05-08 13:05:04
23467  81 27

QloginPCode

腾讯WEB登陆协议p值算法,node.js编写

更新日志

2020/07/19
1.修复p值失效
2.增加md5加密选项
3.更改返回值为json

使用方法

安装node环境
node service.js
项目即可运行

点击下载

接口文档

以下为部署过的接口,可直接使用

密码为明文时:
https://qlogin.clwl.online/?uin=账号&pwd=密码&vcode=安全码&md5=false

密码为md5加密后时:
https://qlogin.clwl.online/?uin=账号&pwd=密码&vcode=安全码

/**
 * QQ登陆p值算法
 * Author:流逝中沉沦
 * @QQ:1178710004
 * Blog:https://www.clwl.online
 */
var http = require('http');
var RequestUrl = require('url');
var login = require('./login');
http.createServer(function (request, response) {
    var obj = RequestUrl.parse(request.url, true);
    var get = obj.query;
    response.setHeader("Content-type","text/json;charset=utf8");
    response.setHeader("status",200);
    if (get.uin == undefined || get.uin == '') {
        response.end(JSON.stringify({ code: 0, msg: "QQ不能为空!" }));
    }
    if (get.pwd == undefined || get.pwd == '') {
        response.end(JSON.stringify({ code: 0, msg: "密码不能为空!" }));
    }
    if (get.vcode == undefined || get.vcode == '') {
        response.end(JSON.stringify({ code: 0, msg: "VCODE不能为空!" }));
    }
    if (get.md5 == undefined || get.md5 == '') {
        var ismd5 = false;
    }else{
        var ismd5 = true;
    }
    var uin = get.uin;
    var pwd = get.pwd;
    var vcode = get.vcode;
    try {
        var p = login.getmd5(uin, pwd, vcode,ismd5);
    } catch (error) {
        var p = error;
    }
    response.end(JSON.stringify({ code: 1, msg: "获取成功",data:p }));
}).listen(1234);//端口号
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38

如本文“对您有用”,欢迎随意打赏作者,让我们坚持创作!

27 打赏
评论 (90)

回复给 点击这里取消回复。

欢迎您 游客  

  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    7天前
    回复
  • Your article helped me a lot, is there any more related content? Thanks!

    2周前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    2周前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    2周前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    2周前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    4周前
    回复
  • Your article helped me a lot, is there any more related content? Thanks!

    4周前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    4周前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

    2个月前
    回复
  • Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/ar-BH/register-person?ref=V2H9AFPY

    2个月前
    回复
  • Your article helped me a lot, is there any more related content? Thanks!

    2个月前
    回复
  • I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

    2个月前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/en-IN/register?ref=UM6SMJM3

    2个月前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    2个月前
    回复
  • Your article helped me a lot, is there any more related content? Thanks!

    2个月前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    2个月前
    回复
  • Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

    3个月前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

    3个月前
    回复
  • I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

    3个月前
    回复
1 2 3
流逝中沉沦
12文章 50951评论 1470点赞 4381628浏览

随机文章
SinKingMusic免费开放使用
5年前
美和易思app协议分析及功能实现(美和易思刷课)
5年前
归来仍是少年
5年前
SinKingPHP个人MVC框架
5年前
QQWeb登陆P值算法
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50951 评论 4381628 浏览
测试
测试

主题风格 设置选项


布局
背景颜色
背景渐变
背景图片
微信 QQ空间 QQ好友 新浪微博

“扫一扫”分享到微信

赞赏作者

请通过微信、支付宝 APP 扫一扫

感谢您对作者的支持!

 支付宝 微信支付