yzddmr6 / As-Exploits

中国蚁剑后渗透框架
893 stars 159 forks source link

「内存马管理」功能中的「获取所有组件」功能,报错(已排查并提供修改方案) #12

Open hi-unc1e opened 3 weeks ago

hi-unc1e commented 3 weeks ago

https://github.com/yzddmr6/As-Exploits/blob/aced295d2da1d1d071e940790e1d7b70f472bc73/core/memshell_manage/payload.js#L3

image

问题描述: 在尝试使用「内存马管理」功能中的「获取所有组件」并点击「exploit」时,我遇到了一个错误信息。错误详情如下:

ERROR:// java.lang.ClassCastException: org.apache.tomcat.util.threads.ThreadPoolExecutor cannot be cast to java.util.concurrent.ThreadPoolExecutor

问题定位: 经过仔细排查,发现问题出现在memshell_manage包中的依赖导入。当前导入的是java.util.concurrent.ThreadPoolExecutor,然而在运行环境中,应该使用org.apache.tomcat.util.threads.ThreadPoolExecutor

修改建议: 将import java.util.concurrent.ThreadPoolExecutor;更正为import org.apache.tomcat.util.threads.ThreadPoolExecutor;

ps:我已自测通过

image

hi-unc1e commented 3 weeks ago

image