pen4uin / java-memshell-generator

一款支持自定义的 Java 内存马生成工具|A customizable Java in-memory webshell generation tool.
1.69k stars 187 forks source link

JMG 1.8存在jvm适配问题 #17

Closed cvdv123 closed 4 months ago

cvdv123 commented 7 months ago

[*] Attaching to target JVM with PID: 8928 Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at TomcatAgentTransformer.attachAgentToTargetJvm(TomcatAgentTransformer.java:186) at TomcatAgentTransformer.main(TomcatAgentTransformer.java:151) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at TomcatAgentTransformer.attachAgentToTargetJvm(TomcatAgentTransformer.java:179) ... 1 more Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to attach to 32-bit process running under WOW64 at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method) at sun.tools.attach.WindowsVirtualMachine.(WindowsVirtualMachine.java:56) at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69) at io.earcam.wrapped.com.sun.tools.attach.Provider.attachVirtualMachine(Provider.java:74) at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208) ... 6 more

pen4uin commented 7 months ago

你看看目标进程用的 jdk 和你 attach 用的 jdk 是不是同一个

yu2lulu commented 5 months ago

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.024 s [INFO] Finished at: 2024-06-05T14:34:41+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project jmg-gui: Could not resolve dependencies for project jmg:jmg-gui:jar:1.0.8: The following artifacts could not be resolved: jmg:jmg-core:jar:1.0.8, me.gv7.woodpecker:jexpr-encoder-utils:jar:0.2.2, jmg:jmg-behinder:jar:1.0.8, jmg:jmg-antsword:jar:1.0.8, jmg:jmg-godzilla:jar:1.0.8, jmg:jmg-suo5:jar:1.0.8, jmg:jmg-neoregeorg:jar:1.0.8, jmg:jmg-custom:jar:1.0.8: Could not find artifact jmg:jmg-core:jar:1.0.8 in alimaven (http://maven.aliyun.com/nexus/content/groups/public/) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException