# qsnctf-python **Repository Path**: Moxin1044/qsnctf-python ## Basic Information - **Project Name**: qsnctf-python - **Description**: 青少年CTF的Python包,方便大家调用一些CTF常用功能。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-02 - **Last Updated**: 2023-02-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🤔What is QSNCTF? [青少年CTF训练平台](https://www.qsnctf.com/)是一个公益、免费、供给全国青少年学习、训练的CTF在线平台。
[(本仓库)](https://github.com/Moxin1044/qsnctf-python)qsnctf是青少年CTF训练平台进行编写的一个Python包程序,意图在Python中为大家快速使用一些CTF常用功能开发的开源包。这里有很多CTF常用功能,如Base编码、hash加密,甚至少见的社会主义核心价值观编码、quipqiup等都在其中。 注意:2023年01月09日发布的Ver:0.0.8.7已经支持了压缩包密码破解和下面的所有功能,Function的文档准备迁移至:https://docs.qsnctf.com/ 首次发布时间预计于2022年01月10日,敬请期待。 如果您有好的想法和建议,欢迎与我取得联系:QQ:1044631097。 ![Alt](https://repobeats.axiom.co/api/embed/351178f679198f07b9f9715948c6c3e011834759.svg "Repobeats analytics image") ## 文档 其他语种:[English](https://github.com/Moxin1044/qsnctf-python/blob/master/docs/README_en.md) 函数库:[使用说明](https://docs.qsnctf.com/qsnctf/41250.html) ## 安装 首先将GitHub上的项目下载下来后可以文件中有一个`setup.py` 打开终端然后输入 ```bash python setup.py install ``` 或者也可以直接使用pip来进行安装**(由于本Python库仍在开发,所以pip可能不是最新版,如果您有较高的需求,可以直接clone本仓库进行安装)** ```bash pip install qsnctf ``` 安装成功会显示 `Successfully installed PyExecJS-1.5.1 qsnctf-0.0.4` 也可以使用以下命令来更新此库 ```bash pip install --upgrade qsnctf ``` 如果你想知道具体怎么使用可以导入这个包,然后使用`help(qsnctf)`查看库的用法 ```bash >>> import qsnctf >>> help(qsnctf) Help on package qsnctf: NAME qsnctf PACKAGE CONTENTS base crypto hash main misc uuid FILE c:\users\xiniyi\appdata\local\programs\python\python39\lib\site-packages\qsnctf-0.0.4-py3.9.egg\qsnctf\__init__.py ``` 然后使用help(qsnctf.PACKAGE CONTENTS)来查看具体的使用方法 ## 演示 查看`base`的使用方法 ```bash >>> help(qsnctf.base) Help on module qsnctf.base in qsnct NAME qsnctf.base DESCRIPTION # Base编码解码功能 # 2023年1月1日 # 末心 FUNCTIONS base16_decode(text) base16_encode(text) base32_decode(text) base32_encode(text) base64_decode(text) base64_encode(text) base85_decode(text) >>> ``` # 功能列表 ### BASE | base16 | base32 | base36 | base58 | base62 | | :----------: | :----: | :----: | :----: | :-----: | | base64 | base85 | base91 | base92 | base100 | | 自定义base64 | | | | | ### CRYPTO | 凯撒密码 | 凯撒爆破 | 培根密码 | ROT5 | ROT13 | | :------: | :------: | :--------: | :--------------------: | :---: | | ROT18 | 八卦密码 | 埃特巴什码 | 摩斯密码(支持自定义) | | ### MD5 | md5 | sha1 | sha224 | sha256 | sha384 | | :------: | :------: | :------: | :---------: | :------: | | sha512 | shake128 | shake256 | HMAC-SHA256 | sha3-224 | | sha3-256 | sha3-385 | sha3-512 | | | ### MISC | 核心价值观加密解密 | 文本逆向 | url加密解密 | 位异或 | 文本逆向(步长2) | | :--------------------: | :--------: | :---------: | :---------: | :---------------: | | 文本逆向(自定义步长) | 获取uuid | ord转字符串 | 字符串转ord | 字符串分割 | | flag寻找 | 百家姓编码 | Qwerty编码 | HTM编码 | JSFUCK | | AAencode | str2hex | hex2str | ZIP密码爆破 | ZIP解压缩(高级) | ### API | quipqiup词频分析 | 飞书Webhook | 钉钉Talk | 微步在线 | FOFA | | :--------------: | :---------: | :--------: | :------: | :--: | | 大圣云沙箱 | 零零信安 | Go-CQ-HTTP | | | ### WEB | 目录扫描 | 网站存活检测 | 取网站标题 | 子域名扫描 | 取网站描述 | | :----------: | :-----------: | :-------------: | :--------: | :------------: | | 取网站关键字 | 取网站ICP | 取网站a标签地址 | 取网站注释 | 取网站响应时间 | | 取网站ICO | POST Webshell | GET Webshell | exec-shell | eval-shell | | WebShell爆破 | | | | | # 具体使用 ## 命令行使用 第一步导入`qsnctf`库 ```python from qsnctf import * ``` 例如需要使用`base64`编码 ```python base64_encode("需要编码的")# 6ZyA6KaB57yW56CB55qE ``` 相同如果使用`base64`解码的话就是 ```python base64_decode("6ZyA6KaB57yW56CB55qE")# 需要编码的 ``` 其他的编码解码类似 ------ ## 编译器使用 这里还是使用base64来演示,其他的编码解码类似。 ```python from qsnctf import qsnctf a=base64_encode("需要编码的") print(a) b=base64_decode("6ZyA6KaB57yW56CB55qE") print(b) ``` `返回信息` 需要编码的 ``` 6ZyA6KaB57yW56CB55qE ``` **Base62的encode值应该是整数!** ```python from qsnctf import qsnctf a = base62_encode(34441886726) print(a) b = base62_decode("base62") print(b) ``` ## 传参方法 文档移动到:[Function.md](https://github.com/Moxin1044/qsnctf-python/blob/master/docs/Function.md) ## 环境 ### 开发环境 `Windows11 + Python3.11 + PyCharm 2022.3.1 (Professional Edition)` ### 使用环境 支持 `python 3.x` 环境。 文档持续更新。 ## ✨ Contributors 感谢下面的所有人:

Moxin


xinyi


yiye-yfs