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
23454  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)

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

欢迎您 游客  

  • Precast Concrete Pipes : Manufactured off-site, these pipes are used for efficient large-scale installations. ElitePipe Factory in Iraq offers reliable precast concrete pipe solutions.

    8个月前
    回复
  • Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/ar-BH/register?ref=53551167

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

    9个月前
    回复
  • 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. https://www.binance.com/en-IN/register?ref=UM6SMJM3

    9个月前
    回复
  • 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.

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

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

    9个月前
    回复
  • 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.

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

    10个月前
    回复
  • 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?

    10个月前
    回复
  • 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.

    1年前
    回复
  • 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?

    1年前
    回复
  • Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

    1年前
    回复
  • 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?

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

    1年前
    回复
  • 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?

    1年前
    回复
  • 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?

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

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

    1年前
    回复
  • you are in reality a good webmaster. The website loading velocity is amazing. It sort of feels that you’re doing any distinctive trick. Also, The contents are masterwork. you have done a fantastic job in this topic!

    1年前
    回复
  • Elitepipe Plastic Factory’s HDPE fittings are renowned for their versatility, allowing for secure and efficient connections in diverse applications such as water supply, gas distribution, and industrial pipelines. Elitepipe Plastic Factory

    1年前
    回复
  • 大佬,你好,我想知道vcode,是填verifycode的值还是填pt_verifysession_v1的值呢

    3年前
    回复
    1. 橘色的猫

      我两个值都试了,都是账号密码错误

      3年前
      回复
  • 鐝啊

    人少

    4年前
    回复
  • CV

    啊哈

    4年前
    回复
  • Charles

    10000

    5年前
    回复
    1. 流逝中沉沦

      ???

      5年前
      回复
  • 回忆同年

    作者能出个宝塔搭建p值教程吗

    5年前
    回复
    1. 安装pm管理器即可,然后把文件上传任意目录,启动service文件,反代一下,非常简单

      5年前
      回复
      1. a'ゞ踏梦.

        可用pm2部署的不显示端口

        5年前
        回复
        1. 流逝中沉沦

          可能是端口占用问题,程序写死了1234端口,可以修改service.js文件里的端口试下,实在不会加我帮你看下,https://qlogin.clwl.online 这是部署好的接口

          5年前
          回复
  • Young年华

    api文档能提供一下吗

    5年前
    回复
    1. 流逝中沉沦

      get参数uin pwd vcode,md5加密可选

      5年前
      回复
  • 客服号

    已经用不了,失效了

    5年前
    回复
    1. 流逝中沉沦

      好的,修复好会上传到git

      5年前
      回复
    2. 流逝中沉沦

      已修复

      5年前
      回复
  • 茶白

    直接上传服务器即可对接使用吗

    5年前
    回复
    1. 需要node环境

      5年前
      回复
  • 梦

    服务端源码是怎么使用的

    5年前
    回复
    1. 梦

      这个怎么搭建成api

      5年前
      回复
      1. 使用node运行即可

        5年前
        回复
1 2 3
流逝中沉沦
12文章 50951评论 1470点赞 4370447浏览

随机文章
QQWeb登陆P值算法
5年前
归来仍是少年
5年前
YY模拟操作
5年前
c#通过句柄进行模拟操作
5年前
SinKingMusic免费开放使用
5年前
最新评论
+376
网站留言
Copyright © 2025 网站备案号: 皖ICP备18022767号-3
沉沦云网络. SinKingCloud
主页
页面
  • 个人技术栈
  • 留言
博主
流逝中沉沦
流逝中沉沦 管理员
一个热爱生活热爱技术的00后少年
12 文章 50951 评论 4370447 浏览
测试
测试

主题风格 设置选项


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

“扫一扫”分享到微信

赞赏作者

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

感谢您对作者的支持!

 支付宝 微信支付