GithubHelp home page GithubHelp logo

hhy5277 / smartqq-for-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xqin/smartqq-for-raspberry-pi

0.0 1.0 0.0 48 KB

基于 SmartQQ 编写, 采用QQ安全中心的二维码做为登陆条件 的WebQQ客户端

License: GNU General Public License v3.0

Python 100.00%

smartqq-for-raspberry-pi's Introduction

SmartQQ-for-Raspberry-Pi(PiWebQQV2)

基于 SmartQQ 编写, 登陆时采用QQ安全中心的二维码做为登陆条件, 不需要在程序里输入QQ号码及QQ密码.

关于自动获取 QRCode 图片的方法: 我采用方法是让程序将图片保存到自己的Web站点下,然后自己通过Web方式访问得到QRCode, 然后用手机扫描.

在Pi上通过SSH后台运行的例子:

sudo nohup python WebQQ.py /data/http/v.jpg &

上面的命令在启动WebQQ之后会将QRCode保存到 /data/http/v.jpg 这个位置,然后用QQ安全中心 扫描这个QRCode完成登陆.

例子2:

sudo nohup python WebQQ.py /data/http/v.jpg 48080163 &

上面的命令执行后的效果与第一个例子中的不同之处在于, 启动后的WebQQ只对48080163这个QQ号发送过来的消息做响应,其他的会忽略掉. 这样做的好处在于, 如果你的QRCode被别人扫描了,那么WebQQ就会登陆别人的QQ,然后别人就可以控制你的Pi了, 但如果加了第二个参数48080163, 则就算登陆了别人的QQ, 但消息的发送者并不是48080163, 所以发送的指令并不会被Pi所执行,从而保证安全性. 如果省略掉第2个参数,则所有人给登陆到Pi上的这个QQ发送的消息都会被解析并执行.

V2版的好处在于不需要在程序里设置QQ号码和密码,在Pi所登陆的账号及密码由QQ安全中心中指定,而且登陆时也不再需要验证码了. QRCode 文件在登陆成功之后会被自动删除掉,以确保安全.

如需使用QQ号码和密码的方式登陆可以尝试V1版本. 地址: PiWebQQ

smartqq-for-raspberry-pi's People

Contributors

xqin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.