Releases: f0ng/autoDecoder
Releases · f0ng/autoDecoder
0.23
2023.2.22 更新0.23
- 优化了插件的一些问题
- 案例移步autoDecoder-usages
0.22-beta1
2023.2.16 更新0.22-beta1
- 优化了读取密文的时候将
\u0000
去除的问题 - 在自带算法中,将请求包加解密、响应包加解密分离开,可以选中加密算法
null
表示不进行加解密,返回原数据包
0.22
0.21
0.20
0.19.0
0.19
0.18
0.17
0.16
2022.5.11 更新 0.16
- 增加响应头处理,传入参数同样为
dataHeaders
,感谢@gie-gie-gayhub 师傅反馈,#3
# -*- coding:utf-8 -*-
# author:f0ngf0ng
from flask import Flask,Response,request
from pyDes import *
import base64
app = Flask(__name__)
@app.route('/encode',methods=["POST"])
def encrypt():
body = request.form.get('dataBody') # 获取 post 参数 必需
headers = request.form.get('dataHeaders') # 获取 post 参数 可选
if headers != None: # 开启了请求头加密
headers = headers + "aaaa:bbbb\r\n"
headers = headers + "f0ng:test"
print(headers + "\r\n\r\n\r\n\r\n" + body)
return headers + "\r\n\r\n\r\n\r\n" + body # 返回值为固定格式,不可更改
return body
@app.route('/decode',methods=["POST"]) # 不解密
def decrypt():
body = request.form.get('dataBody') # 获取 post 参数 必需
headers = request.form.get('dataHeaders') # 获取 post 参数 可选
if headers != None: # 开启了响应头加密
print(headers + "\r\n\r\n\r\n\r\n" + body)
headers = headers + "yyyy:zzzz\r\n"
headers = headers + "f0ng:onlysecurity"
return headers + "\r\n\r\n\r\n\r\n" + body # 返回值为固定格式,不可更改
return body
if __name__ == '__main__':
app.debug = True # 设置调试模式,生产模式的时候要关掉debug
app.run(host="0.0.0.0",port="8888")
原始请求响应
经过autoDecoder处理后的响应
- 修复当请求体为空时候的报错
- 修复当关键词置空时造成多出一个换行符的问题