Repository: r00t4dm/aLIEz
Branch: main
Commit: c320f37d3aa1
Files: 12
Total size: 23.3 KB
Directory structure:
gitextract_n9bvatob/
├── .github/
│ └── ISSUE_TEMPLATE/
│ └── bug_report.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── SECURITY.md
├── pom.xml
└── src/
├── META-INF/
│ └── MANIFEST.MF
└── main/
└── java/
├── META-INF/
│ └── MANIFEST.MF
└── com/
└── r00t4dm/
├── CleanMemShellAgentMainAttach.java
├── CleanMemShellAgentmain.java
└── CleanMemShellTransformer.java
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
================================================
FILE: .gitignore
================================================
/.idea/
/libs/
/out/
/target/
*.iml
.DS_Store
dependency-reduced-pom.xml
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
r00t4dm@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2020 r00t4dm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# aLIEz
English
Use reflection to dynamically load JDK dependencies, and do not directly use transformers to modify bytecode. Now it is directly dumped and researchers are required to analyze it themselves.
Kill the memory of various JavaEE containers and middleware
Usage: java -jar aLIEz.jar JVMID aLIEz-agent-1.0-SNAPSHOT.jar
Usage
````
➜ java -jar aLIEz.jar
usage: java -jar clearMemShell.jar <JVMID> "AgentLocate"
32866: org.jetbrains.idea.maven.server.RemoteMavenServer36
43237: org.jetbrains.jps.cmdline.Launcher /Applications/IntelliJ IDEA.app/Contents/lib/netty-common-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-resolver-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/javac2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/httpclient-4.5.12.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-component-annotations-1.7.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-spi-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA.app/Contents/lib/qdox-2.0-M10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/asm-all-9.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/commons-lang3-3.10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jna.jar:/Applications/IntelliJ IDEA.app/Contents/lib/trove4j.jar:/Applications/IntelliJ IDEA.app/Contents/lib/nanoxml-2.2.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-api
45253: org.jetbrains.idea.maven.server.RemoteMavenServer36
69401: org.jetbrains.idea.maven.server.RemoteMavenServer36
51529: Behinder_v3.0_Beta6_mac.jar
56185: org.apache.catalina.startup.Bootstrap start
57449: aLIEz.jar
37197:
64783: org.jetbrains.idea.maven.server.RemoteMavenServer36
56879: Godzilla-V2.96.jar
15:18:23 in out/artifacts/aLIEz_jar
➜ java -jar aLIEz.jar 56185 "/Users/r00t4dm/Downloads/JavaAgent_CleanMemShell/target/aLIEz-agent-1.0-SNAPSHOT.jar"
[+]OK.i find a jvm.org.apache.catalina.startup.Bootstrap start
[+]agent is injected.
````
中文版本
采用反射动态加载JDK依赖,不会直接transformer去改bytecode 现在是直接dump出来依赖研究人员自己分析
杀各个JavaEE容器、中间件的内存马
使用方法:java -jar aLIEz.jar JVMID aLIEz-agent-1.0-SNAPSHOT.jar

使用方法
````
➜ java -jar aLIEz.jar
usage: java -jar clearMemShell.jar <JVMID> "AgentLocate"
32866: org.jetbrains.idea.maven.server.RemoteMavenServer36
43237: org.jetbrains.jps.cmdline.Launcher /Applications/IntelliJ IDEA.app/Contents/lib/netty-common-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/lib/netty-resolver-4.1.52.Final.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/javac2.jar:/Applications/IntelliJ IDEA.app/Contents/lib/httpclient-4.5.12.jar:/Applications/IntelliJ IDEA.app/Contents/lib/plexus-component-annotations-1.7.1.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-spi-1.3.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA.app/Contents/lib/qdox-2.0-M10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/asm-all-9.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/commons-lang3-3.10.jar:/Applications/IntelliJ IDEA.app/Contents/lib/jna.jar:/Applications/IntelliJ IDEA.app/Contents/lib/trove4j.jar:/Applications/IntelliJ IDEA.app/Contents/lib/nanoxml-2.2.3.jar:/Applications/IntelliJ IDEA.app/Contents/lib/maven-resolver-api
45253: org.jetbrains.idea.maven.server.RemoteMavenServer36
69401: org.jetbrains.idea.maven.server.RemoteMavenServer36
51529: Behinder_v3.0_Beta6_mac.jar
56185: org.apache.catalina.startup.Bootstrap start
57449: aLIEz.jar
37197:
64783: org.jetbrains.idea.maven.server.RemoteMavenServer36
56879: Godzilla-V2.96.jar
15:18:23 in out/artifacts/aLIEz_jar
➜ java -jar aLIEz.jar 56185 "/Users/r00t4dm/Downloads/JavaAgent_CleanMemShell/target/aLIEz-agent-1.0-SNAPSHOT.jar"
[+]OK.i find a jvm.org.apache.catalina.startup.Bootstrap start
[+]agent is injected.
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Supported Versions
Use this section to tell people about which versions of your project are
currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |
## Reporting a Vulnerability
Use this section to tell people how to report a vulnerability.
Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
================================================
FILE: pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>aLIEz-agent</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.8.0</version>
<scope>system</scope>
<systemPath>/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/lib/tools.jar</systemPath>
<!-- <systemPath>/Users/r00t4dm/Downloads/JavaAgent_CleanMemShell/tools.jar</systemPath>-->
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.20.0-GA</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Agent-Class>com.r00t4dm.CleanMemShellAgentmain</Agent-Class>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
<!-- <Premain-Class>com.r00t4dm.MyPremain</Premain-Class>-->
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/META-INF/MANIFEST.MF
================================================
Manifest-Version: 1.0
Main-Class: com.r00t4dm.CleanMemShellAgentMainAttach
================================================
FILE: src/main/java/META-INF/MANIFEST.MF
================================================
Manifest-Version: 1.0
Main-Class: com.r00t4dm.CleanMemShellAgentMainAttach
================================================
FILE: src/main/java/com/r00t4dm/CleanMemShellAgentMainAttach.java
================================================
package com.r00t4dm;
import com.sun.tools.attach.*;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
public class CleanMemShellAgentMainAttach {
private static final String TOOLS_CLASS_NAME = "com.sun.tools.attach.VirtualMachine";
private static final String VMD_CLASS_NAME = "com.sun.tools.attach.VirtualMachineDescriptor";
public static void main(String[] args) throws ClassNotFoundException, InvocationTargetException,
NoSuchMethodException, IllegalAccessException, MalformedURLException {
if (args.length == 0) {
System.err.println("usage: java -jar aLIEz.jar <JVMID> \"Agent-Locate\"");
listTargetVMs();
} else {
String vmdId = args[0];
String agentLocate = args[1];
attachToTargetVM(vmdId, agentLocate);
}
}
private static void attachToTargetVM(String vmdId, String agentLocate) throws ClassNotFoundException,
NoSuchMethodException, InvocationTargetException, IllegalAccessException, MalformedURLException {
File jarFile = new File(System.getProperty("java.home"));
System.out.println("java.home : " +System.getProperty("java.home"));
File toolsJar = new File(jarFile.getParentFile() + "/lib/", "tools.jar");
System.out.println("tools.jar path: " + toolsJar.getAbsolutePath());
URL[] urls = new URL[] {toolsJar.toURI().toURL()};
Class<?> vmClass = new URLClassLoader(urls).loadClass(TOOLS_CLASS_NAME);
Method attachMethod = vmClass.getDeclaredMethod("attach", String.class);
Object vmInstance = attachMethod.invoke(null, vmdId);
Method loadAgentMethod = vmClass.getDeclaredMethod("loadAgent", String.class);
loadAgentMethod.invoke(vmInstance, agentLocate);
System.out.println("[+]agent is injected.");
Method detachMethod = vmClass.getDeclaredMethod("detach");
detachMethod.invoke(vmInstance);
}
private static void listTargetVMs() throws ClassNotFoundException, NoSuchMethodException,
InvocationTargetException, IllegalAccessException, MalformedURLException {
File jarFile = new File(System.getProperty("java.home"));
File toolsJar = new File(jarFile.getParentFile() + "/lib/", "tools.jar");
System.out.println("java.home: " + System.getProperty("java.home"));
System.out.println("tools.jar path: " + toolsJar.getAbsolutePath());
URL[] urls = new URL[] {toolsJar.toURI().toURL()};
Class<?> vmClass = new URLClassLoader(urls).loadClass(TOOLS_CLASS_NAME);
Method listMethod = vmClass.getDeclaredMethod("list");
List<?> vms = (List<?>) listMethod.invoke(null);
for (Object vmObject : vms) {
Class<?> vmdClass = vmObject.getClass();
Method idMethod = vmdClass.getMethod("id");
Method displayNameMethod = vmdClass.getMethod("displayName");
String id = (String) idMethod.invoke(vmObject);
String displayName = (String) displayNameMethod.invoke(vmObject);
System.out.println(id + " : " + displayName);
}
}
}
================================================
FILE: src/main/java/com/r00t4dm/CleanMemShellAgentmain.java
================================================
package com.r00t4dm;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.instrument.Instrumentation;
import java.lang.instrument.UnmodifiableClassException;
import java.lang.management.ManagementFactory;
import java.util.HashSet;
import java.util.Set;
public class CleanMemShellAgentmain {
private static final Set<Class> setClasses = new HashSet<>();
public static String getCurrentPID() {
try {
String name = ManagementFactory.getRuntimeMXBean().getName();
return name.split("@")[0];
} catch (Exception e) {
return "";
}
}
/**
* @param agentOps 类名
* @param inst
* @throws UnmodifiableClassException
*/
public static void agentmain(String agentOps, Instrumentation inst)
throws UnmodifiableClassException, ClassNotFoundException, IOException {
for (Class clazz : inst.getAllLoadedClasses()) {
Class[] classes = clazz.getInterfaces();
for (int i = 0; i < classes.length; i++) {
if (classes[i].getName().equalsIgnoreCase("javax.servlet.Servlet") ||
classes[i].getName().equalsIgnoreCase("javax.servlet.Filter") ||
classes[i].getName().equalsIgnoreCase("javax.servlet.ServletRequestListener")) {
System.out.println("符合条件的类 :" + clazz.getName());
setClasses.add(clazz);
}
}
try {
if (clazz.getSuperclass().getName().contains("AbstractTranslet")) {
System.out.println("符合条件的类 :" + clazz.getName());
setClasses.add(clazz);
}
}
catch (NullPointerException nullPointerException) {
// not print
}
}
inst.addTransformer(new CleanMemShellTransformer(inst), true);
inst.retransformClasses(setClasses.toArray(new Class[setClasses.size()]));
}
}
================================================
FILE: src/main/java/com/r00t4dm/CleanMemShellTransformer.java
================================================
package com.r00t4dm;
import javassist.*;
import java.io.*;
import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.Instrumentation;
import java.security.ProtectionDomain;
public class CleanMemShellTransformer implements ClassFileTransformer {
private static final String CLASSNAME = "javax.servlet.Servlet";
private static final String FILTERNAME = "javax.servlet.Filter";
private static final String LISTENERNAME = "javax.servlet.ServletRequestListener";
private static final String TEMPLATENAME = "com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet";
private final Instrumentation inst;
public CleanMemShellTransformer(Instrumentation inst) {
this.inst = inst;
}
@Override
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined,
ProtectionDomain protectionDomain, byte[] classfileBuffer) {
try {
if (isMemshell(loader, classBeingRedefined, classfileBuffer)) {
return dumpClasses(classBeingRedefined, classfileBuffer);
}
} catch (NotFoundException | IOException | ClassNotFoundException | NoSuchMethodException e) {
System.out.println("dump MemShell Error : " + e.getMessage());
} catch (Exception e) {
e.printStackTrace();
}
// 不是内存马不修改字节码并返回
return classfileBuffer;
}
/**
* dump bytecode to class file.
* @param classBeingRedefined
* @param classfileBuffer
* @return
*/
private byte[] dumpClasses(Class<?> classBeingRedefined, byte[] classfileBuffer) throws IOException {
String className = classBeingRedefined.getName();
File file = new File("/tmp/memshell/"+className);
file.mkdirs();
File newFile = new File(file, classBeingRedefined.getSimpleName() + ".class");
FileOutputStream fos = new FileOutputStream(newFile);
fos.write(classfileBuffer);
fos.flush();
fos.close();
return classfileBuffer;
}
/**
* 根据特征判断是否是内存马
* @param loader
* @param aClass
* @param bytes
* @return true代表是内存马,false代表不是
*/
private static boolean isMemshell(ClassLoader loader, Class aClass, byte[] bytes) throws NotFoundException,
ClassNotFoundException, IOException, NoSuchMethodException {
Class servletClass = loader.loadClass(CLASSNAME);
Class filterClass = loader.loadClass(FILTERNAME);
Class listenerClass = loader.loadClass(LISTENERNAME);
Class templateClass = loader.loadClass(TEMPLATENAME);
if (templateClass.isAssignableFrom(aClass)) {
return true;
}
if (servletClass.isAssignableFrom(aClass) ||
filterClass.isAssignableFrom(aClass) ||
listenerClass.isAssignableFrom(aClass)) {
return true;
}
return false;
}
/**
*
* @param MemShell 内存马
* @param byteMemShell 内存马的字节码
* @return 清理后的字节码
* @throws NotFoundException
* @throws CannotCompileException
* @throws IOException
*/
private static byte[] killMemShell (Class MemShell, byte[] byteMemShell)
throws IOException {
String className = MemShell.getName();
File file = new File("/tmp/"+className);
file.mkdirs();
File newFile = new File(file, MemShell.getSimpleName() + ".class");
FileOutputStream fos = new FileOutputStream(newFile);
fos.write(byteMemShell);
fos.flush();
fos.close();
return byteMemShell;
}
}
gitextract_n9bvatob/
├── .github/
│ └── ISSUE_TEMPLATE/
│ └── bug_report.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── SECURITY.md
├── pom.xml
└── src/
├── META-INF/
│ └── MANIFEST.MF
└── main/
└── java/
├── META-INF/
│ └── MANIFEST.MF
└── com/
└── r00t4dm/
├── CleanMemShellAgentMainAttach.java
├── CleanMemShellAgentmain.java
└── CleanMemShellTransformer.java
SYMBOL INDEX (13 symbols across 3 files)
FILE: src/main/java/com/r00t4dm/CleanMemShellAgentMainAttach.java
class CleanMemShellAgentMainAttach (line 14) | public class CleanMemShellAgentMainAttach {
method main (line 18) | public static void main(String[] args) throws ClassNotFoundException, ...
method attachToTargetVM (line 30) | private static void attachToTargetVM(String vmdId, String agentLocate)...
method listTargetVMs (line 51) | private static void listTargetVMs() throws ClassNotFoundException, NoS...
FILE: src/main/java/com/r00t4dm/CleanMemShellAgentmain.java
class CleanMemShellAgentmain (line 13) | public class CleanMemShellAgentmain {
method getCurrentPID (line 17) | public static String getCurrentPID() {
method agentmain (line 31) | public static void agentmain(String agentOps, Instrumentation inst)
FILE: src/main/java/com/r00t4dm/CleanMemShellTransformer.java
class CleanMemShellTransformer (line 9) | public class CleanMemShellTransformer implements ClassFileTransformer {
method CleanMemShellTransformer (line 18) | public CleanMemShellTransformer(Instrumentation inst) {
method transform (line 22) | @Override
method dumpClasses (line 44) | private byte[] dumpClasses(Class<?> classBeingRedefined, byte[] classf...
method isMemshell (line 64) | private static boolean isMemshell(ClassLoader loader, Class aClass, by...
method killMemShell (line 99) | private static byte[] killMemShell (Class MemShell, byte[] byteMemShell)
Condensed preview — 12 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (25K chars).
[
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md",
"chars": 834,
"preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the b"
},
{
"path": ".gitignore",
"chars": 72,
"preview": "/.idea/\n/libs/\n/out/\n/target/\n*.iml\n.DS_Store\ndependency-reduced-pom.xml"
},
{
"path": "CODE_OF_CONDUCT.md",
"chars": 5219,
"preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participa"
},
{
"path": "LICENSE",
"chars": 1064,
"preview": "MIT License\n\nCopyright (c) 2020 r00t4dm\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof"
},
{
"path": "README.md",
"chars": 3974,
"preview": "# aLIEz\n\nEnglish\n\nUse reflection to dynamically load JDK dependencies, and do not directly use transformers to modify by"
},
{
"path": "SECURITY.md",
"chars": 619,
"preview": "# Security Policy\n\n## Supported Versions\n\nUse this section to tell people about which versions of your project are\ncurre"
},
{
"path": "pom.xml",
"chars": 2853,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "src/META-INF/MANIFEST.MF",
"chars": 79,
"preview": "Manifest-Version: 1.0\r\nMain-Class: com.r00t4dm.CleanMemShellAgentMainAttach\r\n\r\n"
},
{
"path": "src/main/java/META-INF/MANIFEST.MF",
"chars": 79,
"preview": "Manifest-Version: 1.0\r\nMain-Class: com.r00t4dm.CleanMemShellAgentMainAttach\r\n\r\n"
},
{
"path": "src/main/java/com/r00t4dm/CleanMemShellAgentMainAttach.java",
"chars": 3332,
"preview": "package com.r00t4dm;\n\nimport com.sun.tools.attach.*;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.lang."
},
{
"path": "src/main/java/com/r00t4dm/CleanMemShellAgentmain.java",
"chars": 2053,
"preview": "package com.r00t4dm;\n\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.FileOutputStream;\nimport"
},
{
"path": "src/main/java/com/r00t4dm/CleanMemShellTransformer.java",
"chars": 3659,
"preview": "package com.r00t4dm;\n\nimport javassist.*;\nimport java.io.*;\nimport java.lang.instrument.ClassFileTransformer;\nimport jav"
}
]
About this extraction
This page contains the full source code of the r00t4dm/aLIEz GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 12 files (23.3 KB), approximately 5.9k tokens, and a symbol index with 13 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.