关于
本项目能够在QQ中获取当前窥屏用户的信息。
由于本项目性质,使用的人多了之后检测接口随时会失效,且用且珍惜。
开始使用
前置条件
- CSRF信息记录后端
- IP定位接口
CSRF后端
本项目的CSRF后端需要实现三个接口:
- 获取Key(用于标识一个会话用于收集CSRF信息)
- 渲染图片记录客户端信息
- 取出收集到的信息
目前仅支持PHP实现的后端,具体搭建见repeep-backend-php。
IP定位接口
目前采用IPUU提供的区县级定位接口,允许每天2000次免费调用,请开发者自行申请后将密钥填入配置项。
安装
使用 nb-cli 安装
nb plugin install nonebot-plugin-repeep
使用 pip 安装
pip install nonebot-plugin-repeep
配置项
配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可。
必填配置
CSRF后端
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| trace_secret | str |
无 | 后端接口的密钥 |
| trace_api | str |
无 | 后端接口的URL |
IP定位接口
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| geoip_api | str |
"ipuu" |
接口选项,目前仅支持ipuu接口 |
| ipuu_key | str |
无 | ipuu接口密钥 |
可选配置
XML样式
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| brief | str |
"I Got U" |
XML卡片简介 |
| url | str |
"https://www.p0ise.cn/" |
XML卡片跳转链接 |
| title | str |
"谁在窥屏" |
XML卡片标题 |
| content | str |
"抓住你了!" |
XML卡片内容 |
| source | str |
"I Got U" |
XML来源信息 |
| image | str |
"https://static-cdn.p0ise.cn/2022/11/20221120180503774.jpg" |
XML图片 |
用法
- 发送 Command :
谁在窥屏或者leakip
开发计划
-
优化IP位置数据精准度
-
优化信息样式,拟采用HTML渲染输出图片
-
增加指令选项,指定获取目标群、用户信息
-
优化基于UA的设备识别
-
增加对电脑的检测
-
智能选择CSRF方法
原理
机器人基于python的nonebot2框架,QQ协议基于go-cqhttp。
插件实现原理是QQ的跨站请求伪造。通过图片调起GET方法访问接口,从而获取客户端IP和UA信息。
根据IP,获取定位信息。基于ipuu的在线接口。
根据UA,获取设备信息。基于user_agents库,增加中文优化和型号名称优化。
CSRF原理参考:https://cloud.tencent.com/developer/article/1933686
贡献
Fork本仓库后进行更改,然后提交PR。
LICENSE
本项目采用 GPL 3.0 协议。
致谢
Metadata
Release files for nonebot-plugin-repeep 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_repeep-0.1.1.tar.gz | 19.3 kB | Without provenance | Details for nonebot_plugin_repeep-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_repeep-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_repeep-0.1.1-py3-none-any.whl |
Total release size: 38.2 kB
Release files / nonebot_plugin_repeep-0.1.1.tar.gz
| Download URL | nonebot_plugin_repeep-0.1.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36948adccbfb67efb34ad34974a8043b7667939d54bd57f812d009e6e2a1377c
|
|
BLAKE2b-256 checksum How to use checksums |
6d8f5339b53d4464dc318ef474bb293e90774cc566a10aa5388cd89a105ffc24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/5.15.74.2-microsoft-standard-WSL2
|
Release files / nonebot_plugin_repeep-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_repeep-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28e2e957a185cb37789c7c2b2672d77c2d58a44a7421e91e8024576282561982
|
|
BLAKE2b-256 checksum How to use checksums |
aea7f3a7ed701437270472c160b82d4a2b1c1102a5aca4cbc21a91bb4582e629
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/5.15.74.2-microsoft-standard-WSL2
|
Security for nonebot-plugin-repeep 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.